Struct bitvec::access::BitSafeU64 [−][src]
#[repr(transparent)]pub struct BitSafeU64 { /* fields omitted */ }
Expand description
Read-Only Shared-Mutable Handle
This type marks a handle to a shared-mutable type that may be modified through
other handles, but cannot be modified through this one. It is used when a
BitSlice
region has partial ownership of an element and wishes to expose the
entire underlying raw element to the user without granting them write
permissions.
Under the feature = "atomic"
build setting, this uses radium
’s best-effort
atomic alias; when this feature is disabled, it reverts to Cell
.
Trait Implementations
The element type used in the memory region underlying a BitSlice
. It
is always one of the unsigned integer fundamentals. Read more
A type that selects the appropriate load/store instructions when
accessing the memory bus. It determines what instructions are used when
moving a Self::Mem
value between the processor and the memory system. Read more
type Alias = Self
type Alias = Self
A sibling BitStore
implementor that is known to be alias-safe. It is
used when a BitSlice
introduces multiple handles that view the same
memory location, and at least one of them has write capabilities to it.
It must have the same underlying memory type, and can only change access
patterns or public-facing usage. Read more
The inverse of ::Alias
. It is used when a BitSlice
removes the
conditions that required a T -> T::Alias
transition. Read more
Loads a value out of the memory system according to the ::Access
rules. This may be called when the value is aliased by a write-capable
reference. Read more
Stores a value into the memory system. This is only called when there
are no other handles to the value, and it may bypass ::Access
constraints. Read more
All implementors are required to have their alignment match their size. Read more
All implementors are required to have Self
and Self::Alias
be equal
in representation. This is true by fiat for all types except the
unsigned integers. Read more
Auto Trait Implementations
impl RefUnwindSafe for BitSafeU64
impl Send for BitSafeU64
impl Sync for BitSafeU64
impl Unpin for BitSafeU64
impl UnwindSafe for BitSafeU64
Blanket Implementations
type Store = T
type Store = T
The underlying element type.
Views a memory region as an immutable bit-slice.
Attempts to view a memory region as an immutable bit-slice. Read more
pub fn view_bits_mut<O>(&mut Self) -> &mut BitSlice<T, O>ⓘ where
O: BitOrder,
pub fn view_bits_mut<O>(&mut Self) -> &mut BitSlice<T, O>ⓘ where
O: BitOrder,
Views a memory region as a mutable bit-slice.
pub fn try_view_bits_mut<O>(
&mut Self
) -> Result<&mut BitSlice<T, O>, BitSpanError<T>> where
O: BitOrder,
pub fn try_view_bits_mut<O>(
&mut Self
) -> Result<&mut BitSlice<T, O>, BitSpanError<T>> where
O: BitOrder,
Attempts to view a memory region as a mutable bit-slice. Read more
Views the type as a slice of its elements.
Views the type as a mutable slice of its elements.
Wraps self
in a BitArray
.
Mutably borrows from an owned value. Read more
Causes self
to use its Binary
implementation when Debug
-formatted. Read more
Causes self
to use its Display
implementation when
Debug
-formatted. Read more
Causes self
to use its LowerExp
implementation when
Debug
-formatted. Read more
Causes self
to use its LowerHex
implementation when
Debug
-formatted. Read more
Causes self
to use its Octal
implementation when Debug
-formatted. Read more
Causes self
to use its Pointer
implementation when
Debug
-formatted. Read more
Causes self
to use its UpperExp
implementation when
Debug
-formatted. Read more
Causes self
to use its UpperHex
implementation when
Debug
-formatted. Read more
Pipes by value. This is generally the method you want to use. Read more
Borrows self
and passes that borrow into the pipe function. Read more
Mutably borrows self
and passes that borrow into the pipe function. Read more
Borrows self
, then passes self.borrow()
into the pipe function. Read more
Mutably borrows self
, then passes self.borrow_mut()
into the pipe
function. Read more
Borrows self
, then passes self.as_ref()
into the pipe function.
Mutably borrows self
, then passes self.as_mut()
into the pipe
function. Read more
Borrows self
, then passes self.deref()
into the pipe function.
Immutable access to the Borrow<B>
of a value. Read more
Mutable access to the BorrowMut<B>
of a value. Read more
Immutable access to the AsRef<R>
view of a value. Read more
Mutable access to the AsMut<R>
view of a value. Read more
Immutable access to the Deref::Target
of a value. Read more
Mutable access to the Deref::Target
of a value. Read more
Calls .tap()
only in debug builds, and is erased in release builds.
Calls .tap_mut()
only in debug builds, and is erased in release
builds. Read more
Calls .tap_borrow()
only in debug builds, and is erased in release
builds. Read more
Calls .tap_borrow_mut()
only in debug builds, and is erased in release
builds. Read more
Calls .tap_ref()
only in debug builds, and is erased in release
builds. Read more
Calls .tap_ref_mut()
only in debug builds, and is erased in release
builds. Read more
Calls .tap_deref()
only in debug builds, and is erased in release
builds. Read more