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