pub struct VarDecl {
pub kind: VariableKind,
pub name: String,
/* private fields */
}
Fields§
§kind: VariableKind
§name: String
Implementations§
Source§impl VarDecl
impl VarDecl
pub fn uninit(kind: VariableKind, name: String) -> Uninit<Self>
pub fn into_uninit(self) -> Uninit<Self>
Source§impl VarDecl
impl VarDecl
pub fn assigned_type<'a>( &self, tree: &'a SyntaxTree, token: &'a PermTkn, ) -> ChildrenRef<'a, VarDecl, ContainerT<Option<Type>>, 0>
pub fn assigned_type_mut<'a>( &self, tree: &'a SyntaxTree, ) -> ChildrenMut<'a, VarDecl, ContainerT<Option<Type>>, 0>
Trait Implementations§
Source§impl HasChildrenMarker<<Option<Type> as FromOptVec>::T, 0> for VarDecl
impl HasChildrenMarker<<Option<Type> as FromOptVec>::T, 0> for VarDecl
type Container = Option<Type>
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 VarDecl
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime VarDecl
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut VarDecl
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut VarDecl
impl StructuralPartialEq for VarDecl
Auto Trait Implementations§
impl !Freeze for VarDecl
impl !RefUnwindSafe for VarDecl
impl Send for VarDecl
impl !Sync for VarDecl
impl Unpin for VarDecl
impl UnwindSafe for VarDecl
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