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