pub enum GuardedIndex {
Known(u32),
Expression(Handle<Expression>),
}
Expand description
An index that may be statically known, or may need to be computed at runtime.
This enum lets us handle both Access
and AccessIndex
expressions
with the same code.
Variants§
Known(u32)
Expression(Handle<Expression>)
Trait Implementations§
Source§impl Clone for GuardedIndex
impl Clone for GuardedIndex
Source§fn clone(&self) -> GuardedIndex
fn clone(&self) -> GuardedIndex
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 GuardedIndex
impl Debug for GuardedIndex
impl Copy for GuardedIndex
Auto Trait Implementations§
impl Freeze for GuardedIndex
impl RefUnwindSafe for GuardedIndex
impl Send for GuardedIndex
impl Sync for GuardedIndex
impl Unpin for GuardedIndex
impl UnwindSafe for GuardedIndex
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)