Struct kodept_ast::InitializedVariable
source · pub struct InitializedVariable { /* private fields */ }Implementations§
source§impl InitializedVariable
impl InitializedVariable
pub fn variable<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, InitializedVariable, ContainerT<Identity<Variable>>>
pub fn variable_mut<'a>(&self, tree: &'a mut SyntaxTree)
source§impl InitializedVariable
impl InitializedVariable
pub fn expr<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, InitializedVariable, ContainerT<Identity<Operation>>>
pub fn expr_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl Debug for InitializedVariable
impl Debug for InitializedVariable
source§impl From<InitializedVariable> for GenericASTNode
impl From<InitializedVariable> for GenericASTNode
source§fn from(original: InitializedVariable) -> GenericASTNode
fn from(original: InitializedVariable) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Identity<Operation> as FromOptVec>::T> for InitializedVariable
impl HasChildrenMarker<<Identity<Operation> as FromOptVec>::T> for InitializedVariable
type Container = Identity<Operation>
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 HasChildrenMarker<<Identity<Variable> as FromOptVec>::T> for InitializedVariable
impl HasChildrenMarker<<Identity<Variable> as FromOptVec>::T> for InitializedVariable
type Container = Identity<Variable>
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 InitializedVariable
impl Identifiable for InitializedVariable
source§impl PartialEq for InitializedVariable
impl PartialEq for InitializedVariable
source§fn eq(&self, other: &InitializedVariable) -> bool
fn eq(&self, other: &InitializedVariable) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime InitializedVariable
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime InitializedVariable
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut InitializedVariable
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut InitializedVariable
source§impl TryFrom<GenericASTNode> for InitializedVariable
impl TryFrom<GenericASTNode> for InitializedVariable
impl StructuralPartialEq for InitializedVariable
Auto Trait Implementations§
impl RefUnwindSafe for InitializedVariable
impl Send for InitializedVariable
impl Sync for InitializedVariable
impl Unpin for InitializedVariable
impl UnwindSafe for InitializedVariable
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