#[repr(u8)]pub enum CoFastFlag {
ArgPos = 1,
ArgKw = 2,
ArgVar = 3,
Hidden = 4,
Local = 5,
Cell = 6,
Free = 7,
}Expand description
Per-slot kind flags for localsplus (co_localspluskinds).
Values are bit positions (Local is bit 5 → mask 0x20).
Variants§
Trait Implementations§
Source§impl BitFlag for CoFastFlag
impl BitFlag for CoFastFlag
Source§impl BitFlagSet<CoFastFlag, u8> for CoFastFlags
impl BitFlagSet<CoFastFlag, u8> for CoFastFlags
const BITS: u8
fn empty() -> CoFastFlags
fn from_bits_retain(raw: u8) -> CoFastFlags
fn from_element(element: CoFastFlag) -> CoFastFlags
fn first(&self) -> Option<CoFastFlag>
fn last(&self) -> Option<CoFastFlag>
fn pop_first(&mut self) -> Option<CoFastFlag>
fn pop_last(&mut self) -> Option<CoFastFlag>
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn insert(&mut self, value: CoFastFlag) -> bool
fn remove(&mut self, value: CoFastFlag) -> bool
fn is_subset(&self, other: &CoFastFlags) -> bool
fn is_superset(&self, other: &CoFastFlags) -> bool
fn is_disjoint(&self, other: &CoFastFlags) -> bool
fn contains(&self, value: &CoFastFlag) -> bool
fn retain(&mut self, f: impl FnMut(CoFastFlag) -> bool)
fn iter(&self) -> PrimBitSetIter<u8, CoFastFlag> ⓘ
fn to_vec(&self) -> Vec<T>
Source§impl Clone for CoFastFlag
impl Clone for CoFastFlag
Source§fn clone(&self) -> CoFastFlag
fn clone(&self) -> CoFastFlag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CoFastFlag
Source§impl Debug for CoFastFlag
impl Debug for CoFastFlag
impl Eq for CoFastFlag
Source§impl Extend<CoFastFlag> for CoFastFlags
impl Extend<CoFastFlag> for CoFastFlags
Source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = CoFastFlag>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = CoFastFlag>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<CoFastFlag> for CoFastFlags
impl FromIterator<CoFastFlag> for CoFastFlags
Source§fn from_iter<I>(iter: I) -> CoFastFlagswhere
I: IntoIterator<Item = CoFastFlag>,
fn from_iter<I>(iter: I) -> CoFastFlagswhere
I: IntoIterator<Item = CoFastFlag>,
Creates a value from an iterator. Read more
Source§impl Hash for CoFastFlag
impl Hash for CoFastFlag
Source§impl Index<CoFastFlag> for CoFastFlags
impl Index<CoFastFlag> for CoFastFlags
Source§impl PartialEq for CoFastFlag
impl PartialEq for CoFastFlag
impl StructuralPartialEq for CoFastFlag
Auto Trait Implementations§
impl Freeze for CoFastFlag
impl RefUnwindSafe for CoFastFlag
impl Send for CoFastFlag
impl Sync for CoFastFlag
impl Unpin for CoFastFlag
impl UnsafeUnpin for CoFastFlag
impl UnwindSafe for CoFastFlag
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Helper for T
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
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