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