pub enum AccessType {
Default,
Slice(RangeExpr),
Index(usize),
Matrix(usize, usize),
}
Expand description
Represents the way an identifier is accessed/referenced in the source.
Variants§
Default
Access refers to the entire bound value
Slice(RangeExpr)
Access binds a sub-slice of a vector
Index(usize)
Access binds the value at a specific index of an aggregate value (i.e. vector or matrix)
The result type may be either a scalar or a vector, depending on the type of the aggregate
Matrix(usize, usize)
Access binds the value at a specific row and column of a matrix value
Trait Implementations§
Source§impl Clone for AccessType
impl Clone for AccessType
Source§fn clone(&self) -> AccessType
fn clone(&self) -> AccessType
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 AccessType
impl Debug for AccessType
Source§impl Default for AccessType
impl Default for AccessType
Source§fn default() -> AccessType
fn default() -> AccessType
Returns the “default value” for a type. Read more
Source§impl Display for AccessType
impl Display for AccessType
Source§impl Hash for AccessType
impl Hash for AccessType
Source§impl PartialEq for AccessType
impl PartialEq for AccessType
impl Eq for AccessType
impl StructuralPartialEq for AccessType
Auto Trait Implementations§
impl Freeze for AccessType
impl RefUnwindSafe for AccessType
impl Send for AccessType
impl Sync for AccessType
impl Unpin for AccessType
impl UnwindSafe for AccessType
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> CallHasher for T
impl<T> CallHasher for T
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more