pub struct SiteFlags(pub u8);Expand description
One byte per occurrence site, stored beside the range. Bits combine
(READ | WRITE for x += 1); unknown bits are preserved.
Tuple Fields§
§0: u8Implementations§
Source§impl SiteFlags
impl SiteFlags
Source§impl SiteFlags
impl SiteFlags
Sourcepub fn names(self) -> impl Iterator<Item = &'static str>
pub fn names(self) -> impl Iterator<Item = &'static str>
Names of the set bits, in bit order (read, write, receiver).
Sourcepub fn from_names<'a>(
names: impl IntoIterator<Item = &'a str>,
) -> Option<SiteFlags>
pub fn from_names<'a>( names: impl IntoIterator<Item = &'a str>, ) -> Option<SiteFlags>
Inverse of Self::names; None for an unknown name.
Trait Implementations§
Source§impl BitOrAssign for SiteFlags
impl BitOrAssign for SiteFlags
Source§fn bitor_assign(&mut self, o: SiteFlags)
fn bitor_assign(&mut self, o: SiteFlags)
Performs the
|= operation. Read moreimpl Copy for SiteFlags
impl Eq for SiteFlags
Source§impl Ord for SiteFlags
impl Ord for SiteFlags
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for SiteFlags
impl PartialOrd for SiteFlags
impl StructuralPartialEq for SiteFlags
Auto Trait Implementations§
impl Forget for SiteFlags
impl Freeze for SiteFlags
impl Move for SiteFlags
impl RefUnwindSafe for SiteFlags
impl Send for SiteFlags
impl Sync for SiteFlags
impl Unpin for SiteFlags
impl UnsafeUnpin for SiteFlags
impl UnwindSafe for SiteFlags
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