Struct kodept_ast::Variable
source · pub struct Variable {
pub kind: VariableKind,
pub name: String,
/* private fields */
}Fields§
§kind: VariableKind§name: StringImplementations§
source§impl Variable
impl Variable
pub fn assigned_type<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, Variable, ContainerT<Option<Type>>>
pub fn assigned_type_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl From<Variable> for GenericASTNode
impl From<Variable> for GenericASTNode
source§fn from(original: Variable) -> GenericASTNode
fn from(original: Variable) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Option<Type> as FromOptVec>::T> for Variable
impl HasChildrenMarker<<Option<Type> as FromOptVec>::T> for Variable
type Container = Option<Type>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b GhostToken
) -> ChildrenRef<'b, Self, Child>where
for<'a> &'a Child: TryFrom<&'a GenericASTNode>,
Self: 'static,
for<'a> <&'a GenericASTNode as TryInto<&'a Child>>::Error: Debug,
fn for_children_mut<'b, F, T>(
&self,
tree: &'b mut SyntaxTree,
handler: F
) -> Vec<T>where
for<'a> &'a mut Child: TryFrom<&'a mut GenericASTNode>,
Self: 'static,
F: FnMut(&mut Child) -> T,
source§impl Identifiable for Variable
impl Identifiable for Variable
source§impl PartialEq for Variable
impl PartialEq for Variable
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Variable
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Variable
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Variable
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Variable
source§impl TryFrom<GenericASTNode> for Variable
impl TryFrom<GenericASTNode> for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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