Struct flow_expression_parser::ast::BlockExpression
source · pub struct BlockExpression { /* private fields */ }
Expand description
A block expression.
Implementations§
source§impl BlockExpression
impl BlockExpression
sourcepub fn new(expressions: Vec<FlowExpression>) -> Self
pub fn new(expressions: Vec<FlowExpression>) -> Self
Create a new BlockExpression from a vector of FlowExpressions.
sourcepub fn into_parts(self) -> Vec<FlowExpression>
pub fn into_parts(self) -> Vec<FlowExpression>
Get the owned parts of the block expression.
sourcepub fn inner(&self) -> &[FlowExpression]
pub fn inner(&self) -> &[FlowExpression]
Get a list of the inner expressions.
sourcepub fn inner_mut(&mut self) -> &mut Vec<FlowExpression>
pub fn inner_mut(&mut self) -> &mut Vec<FlowExpression>
Get a mutable list of the inner expressions.
sourcepub fn iter_mut(&mut self) -> impl Iterator<Item = &mut FlowExpression>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut FlowExpression>
Get the expressions in the block as a mutable iterator.
sourcepub fn iter(&self) -> impl Iterator<Item = &FlowExpression>
pub fn iter(&self) -> impl Iterator<Item = &FlowExpression>
Get the expressions in the block as an iterator.
Trait Implementations§
source§impl Clone for BlockExpression
impl Clone for BlockExpression
source§fn clone(&self) -> BlockExpression
fn clone(&self) -> BlockExpression
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlockExpression
impl Debug for BlockExpression
source§impl PartialEq<BlockExpression> for BlockExpression
impl PartialEq<BlockExpression> for BlockExpression
source§fn eq(&self, other: &BlockExpression) -> bool
fn eq(&self, other: &BlockExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BlockExpression
impl Serialize for BlockExpression
impl StructuralPartialEq for BlockExpression
Auto Trait Implementations§
impl RefUnwindSafe for BlockExpression
impl Send for BlockExpression
impl Sync for BlockExpression
impl Unpin for BlockExpression
impl UnwindSafe for BlockExpression
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