#[repr(transparent)]pub struct ExpressionIndex(pub c_uint);
Expand description
Reference to the source expression that produced a match result or error.
This is provided to match results such as Match
as well as errors like
CompileError
, although note that its value
should be interpreted differently when received as part of a compile error.
Tuple Fields§
§0: c_uint
This corresponds to the value of an
ExprId
argument provided during expression
set compilation using e.g.
ExpressionSet::with_ids()
.
This value will be 0
if only a single expression was compiled or if no
expression ids were provided.
Trait Implementations§
Source§impl Clone for ExpressionIndex
impl Clone for ExpressionIndex
Source§fn clone(&self) -> ExpressionIndex
fn clone(&self) -> ExpressionIndex
Returns a duplicate 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 ExpressionIndex
impl Debug for ExpressionIndex
Source§impl Display for ExpressionIndex
impl Display for ExpressionIndex
Source§impl From<ExpressionIndex> for c_uint
impl From<ExpressionIndex> for c_uint
Source§fn from(x: ExpressionIndex) -> Self
fn from(x: ExpressionIndex) -> Self
Converts to this type from the input type.
Source§impl From<u32> for ExpressionIndex
impl From<u32> for ExpressionIndex
Source§impl Hash for ExpressionIndex
impl Hash for ExpressionIndex
Source§impl Ord for ExpressionIndex
impl Ord for ExpressionIndex
Source§fn cmp(&self, other: &ExpressionIndex) -> Ordering
fn cmp(&self, other: &ExpressionIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExpressionIndex
impl PartialEq for ExpressionIndex
Source§impl PartialOrd for ExpressionIndex
impl PartialOrd for ExpressionIndex
impl Copy for ExpressionIndex
impl Eq for ExpressionIndex
impl StructuralPartialEq for ExpressionIndex
Auto Trait Implementations§
impl Freeze for ExpressionIndex
impl RefUnwindSafe for ExpressionIndex
impl Send for ExpressionIndex
impl Sync for ExpressionIndex
impl Unpin for ExpressionIndex
impl UnwindSafe for ExpressionIndex
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.