pub struct ReferenceExpression {
pub cells: Vec<CellExpression>,
}
Expand description
A collection of Cell Expression which represents one logical object.
Fields§
§cells: Vec<CellExpression>
Implementations§
source§impl ReferenceExpression
impl ReferenceExpression
sourcepub fn from_cell(cell_expr: CellExpression) -> Self
pub fn from_cell(cell_expr: CellExpression) -> Self
Builds a reference expression containing only a single cell
sourcepub fn try_unpack<const SIZE: usize>(
&self
) -> Result<&[CellExpression; SIZE], InvocationError>
pub fn try_unpack<const SIZE: usize>( &self ) -> Result<&[CellExpression; SIZE], InvocationError>
If returns the cells as an array of the requested size if the size is correct.
sourcepub fn try_unpack_single(&self) -> Result<&CellExpression, InvocationError>
pub fn try_unpack_single(&self) -> Result<&CellExpression, InvocationError>
If there is only one cell in the ReferenceExpression returns the contained CellExpression.
Trait Implementations§
source§impl ApplyApChange for ReferenceExpression
impl ApplyApChange for ReferenceExpression
source§fn apply_known_ap_change(self, ap_change: usize) -> Option<Self>
fn apply_known_ap_change(self, ap_change: usize) -> Option<Self>
Attempts to apply ap change, fail on overflow only.
source§fn can_apply_unknown(&self) -> bool
fn can_apply_unknown(&self) -> bool
Can unknown ap change be applied.
source§fn apply_ap_change(self, ap_change: ApChange) -> Result<Self, ApChangeError>
fn apply_ap_change(self, ap_change: ApChange) -> Result<Self, ApChangeError>
Attempts to apply ap change.
source§fn unchecked_apply_known_ap_change(self, ap_change: usize) -> Self
fn unchecked_apply_known_ap_change(self, ap_change: usize) -> Self
Same as Self::apply_known_ap_change but unchecked.
source§impl Clone for ReferenceExpression
impl Clone for ReferenceExpression
source§fn clone(&self) -> ReferenceExpression
fn clone(&self) -> ReferenceExpression
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 ReferenceExpression
impl Debug for ReferenceExpression
source§impl PartialEq for ReferenceExpression
impl PartialEq for ReferenceExpression
source§fn eq(&self, other: &ReferenceExpression) -> bool
fn eq(&self, other: &ReferenceExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ReferenceExpression
impl StructuralEq for ReferenceExpression
impl StructuralPartialEq for ReferenceExpression
Auto Trait Implementations§
impl RefUnwindSafe for ReferenceExpression
impl Send for ReferenceExpression
impl Sync for ReferenceExpression
impl Unpin for ReferenceExpression
impl UnwindSafe for ReferenceExpression
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.