Struct kodept_ast::BlockLevel
source · pub struct BlockLevel(/* private fields */);Implementations§
source§impl BlockLevel
impl BlockLevel
pub fn as_func(&self) -> Option<&BodiedFunctionDeclaration>
pub fn as_func_mut(&mut self) -> Option<&mut BodiedFunctionDeclaration>
pub fn as_init_var(&self) -> Option<&InitializedVariable>
pub fn as_init_var_mut(&mut self) -> Option<&mut InitializedVariable>
pub fn as_operation(&self) -> Option<&Operation>
pub fn as_operation_mut(&mut self) -> Option<&mut Operation>
Trait Implementations§
source§impl Debug for BlockLevel
impl Debug for BlockLevel
source§impl From<BlockLevel> for GenericASTNode
impl From<BlockLevel> for GenericASTNode
source§fn from(original: BlockLevel) -> Self
fn from(original: BlockLevel) -> Self
Converts to this type from the input type.
source§impl From<GenericASTNode> for BlockLevel
impl From<GenericASTNode> for BlockLevel
source§fn from(original: GenericASTNode) -> BlockLevel
fn from(original: GenericASTNode) -> BlockLevel
Converts to this type from the input type.
source§impl NodeUnion for BlockLevel
impl NodeUnion for BlockLevel
fn contains(node: &GenericASTNode) -> bool
fn wrap(node: &GenericASTNode) -> &Self
fn wrap_mut(node: &mut GenericASTNode) -> &mut Self
source§impl PartialEq for BlockLevel
impl PartialEq for BlockLevel
source§fn eq(&self, other: &BlockLevel) -> bool
fn eq(&self, other: &BlockLevel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> TryFrom<&'a GenericASTNode> for &'a BlockLevel
impl<'a> TryFrom<&'a GenericASTNode> for &'a BlockLevel
§type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error
type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error
The type returned in the event of a conversion error.
source§impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut BlockLevel
impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut BlockLevel
§type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error
type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error
The type returned in the event of a conversion error.
impl StructuralPartialEq for BlockLevel
Auto Trait Implementations§
impl RefUnwindSafe for BlockLevel
impl Send for BlockLevel
impl Sync for BlockLevel
impl Unpin for BlockLevel
impl UnwindSafe for BlockLevel
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