Struct vectorscan::matchers::ExpressionIndex
source · #[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
.
Tuple Fields§
§0: c_uint
This corresponds to the value of an
ExprId
argument provided during expression
set compilation, but 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 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 ExpressionIndex
impl Debug for ExpressionIndex
source§impl Display for ExpressionIndex
impl Display for ExpressionIndex
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§fn eq(&self, other: &ExpressionIndex) -> bool
fn eq(&self, other: &ExpressionIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ExpressionIndex
impl PartialOrd for ExpressionIndex
source§fn partial_cmp(&self, other: &ExpressionIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &ExpressionIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ExpressionIndex
impl Eq for ExpressionIndex
impl StructuralEq for ExpressionIndex
impl StructuralPartialEq for ExpressionIndex
Auto Trait Implementations§
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<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.