pub struct ModDecl {
pub kind: ModuleKind,
pub name: String,
/* private fields */
}
Fields§
§kind: ModuleKind
§name: String
Implementations§
Source§impl ModDecl
impl ModDecl
pub fn uninit(kind: ModuleKind, name: String) -> Uninit<Self>
pub fn into_uninit(self) -> Uninit<Self>
Source§impl ModDecl
impl ModDecl
pub fn contents<'a>( &self, tree: &'a SyntaxTree, token: &'a PermTkn, ) -> ChildrenRef<'a, ModDecl, ContainerT<Vec<TopLevel>>, 0>
pub fn contents_mut<'a>( &self, tree: &'a SyntaxTree, ) -> ChildrenMut<'a, ModDecl, ContainerT<Vec<TopLevel>>, 0>
Trait Implementations§
Source§impl HasChildrenMarker<<Vec<TopLevel> as FromOptVec>::T, 0> for ModDecl
impl HasChildrenMarker<<Vec<TopLevel> as FromOptVec>::T, 0> for ModDecl
type Container = Vec<TopLevel>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b PermTkn,
) -> ChildrenRef<'b, Self, Child, TAG>where
AnyNode: ConvertibleToRef<Child>,
fn get_children_mut<'b>(
&self,
tree: &'b SyntaxTree,
) -> ChildrenMut<'b, Self, Child, TAG>where
AnyNode: ConvertibleToMut<Child>,
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime ModDecl
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime ModDecl
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut ModDecl
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut ModDecl
impl StructuralPartialEq for ModDecl
Auto Trait Implementations§
impl !Freeze for ModDecl
impl !RefUnwindSafe for ModDecl
impl Send for ModDecl
impl !Sync for ModDecl
impl Unpin for ModDecl
impl UnwindSafe for ModDecl
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