pub struct ModuleKorok<'a> {
pub ast: &'a ItemMod,
pub attributes: Attributes<'a>,
pub items: Vec<ItemKorok<'a>>,
pub node: Option<Node>,
}
Fields§
§ast: &'a ItemMod
§attributes: Attributes<'a>
§items: Vec<ItemKorok<'a>>
§node: Option<Node>
Implementations§
Source§impl<'a> ModuleKorok<'a>
impl<'a> ModuleKorok<'a>
pub fn parse( item: &'a Item, file_modules: &'a [FileModuleStore], file_module_index: &mut usize, ) -> Result<ModuleKorok<'a>, CodamaError>
Trait Implementations§
Source§impl<'a> Debug for ModuleKorok<'a>
impl<'a> Debug for ModuleKorok<'a>
Source§impl<'a, 'b> From<&'b ModuleKorok<'a>> for Korok<'a, 'b>
impl<'a, 'b> From<&'b ModuleKorok<'a>> for Korok<'a, 'b>
Source§fn from(value: &'b ModuleKorok<'a>) -> Korok<'a, 'b>
fn from(value: &'b ModuleKorok<'a>) -> Korok<'a, 'b>
Converts to this type from the input type.
Source§impl<'a, 'b> From<&'b mut ModuleKorok<'a>> for KorokMut<'a, 'b>
impl<'a, 'b> From<&'b mut ModuleKorok<'a>> for KorokMut<'a, 'b>
Source§fn from(value: &'b mut ModuleKorok<'a>) -> KorokMut<'a, 'b>
fn from(value: &'b mut ModuleKorok<'a>) -> KorokMut<'a, 'b>
Converts to this type from the input type.
Source§impl KorokTrait for ModuleKorok<'_>
impl KorokTrait for ModuleKorok<'_>
Source§impl KorokVisitable for ModuleKorok<'_>
impl KorokVisitable for ModuleKorok<'_>
fn accept(&mut self, visitor: &mut dyn KorokVisitor) -> Result<(), CodamaError>
fn get_children(&mut self) -> Vec<&mut dyn KorokVisitable>
Source§impl<'a> PartialEq for ModuleKorok<'a>
impl<'a> PartialEq for ModuleKorok<'a>
impl<'a> StructuralPartialEq for ModuleKorok<'a>
Auto Trait Implementations§
impl<'a> Freeze for ModuleKorok<'a>
impl<'a> RefUnwindSafe for ModuleKorok<'a>
impl<'a> !Send for ModuleKorok<'a>
impl<'a> !Sync for ModuleKorok<'a>
impl<'a> Unpin for ModuleKorok<'a>
impl<'a> UnwindSafe for ModuleKorok<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more