pub struct KTowerCascade<T, const DEPTH: usize> {
pub indices: [u32; DEPTH],
/* private fields */
}Expand description
Position-independent N-level cascade pointer.
Fields§
§indices: [u32; DEPTH]Implementations§
Source§impl<T, const DEPTH: usize> KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> KTowerCascade<T, DEPTH>
pub const fn new(indices: [u32; DEPTH]) -> Self
Sourcepub const fn from_raw(indices: [u32; DEPTH]) -> Self
pub const fn from_raw(indices: [u32; DEPTH]) -> Self
Construct from raw u32 array (alias of new for symmetry
with other primitives).
Sourcepub const fn raw(self) -> [u32; DEPTH]
pub const fn raw(self) -> [u32; DEPTH]
Extract the raw u32 array. Stable cross-process representation.
Sourcepub fn with_level(self, level: usize, value: u32) -> Self
pub fn with_level(self, level: usize, value: u32) -> Self
Return a new cascade with one level replaced.
Trait Implementations§
Source§impl<T, const DEPTH: usize> Clone for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> Clone for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> Copy for KTowerCascade<T, DEPTH>
Source§impl<T, const DEPTH: usize> Default for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> Default for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> Eq for KTowerCascade<T, DEPTH>
Source§impl<T, const DEPTH: usize> Hash for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> Hash for KTowerCascade<T, DEPTH>
Source§impl<T, const DEPTH: usize> PartialEq for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> PartialEq for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> Send for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> Sync for KTowerCascade<T, DEPTH>
Auto Trait Implementations§
impl<T, const DEPTH: usize> Freeze for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> RefUnwindSafe for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> Unpin for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> UnsafeUnpin for KTowerCascade<T, DEPTH>
impl<T, const DEPTH: usize> UnwindSafe for KTowerCascade<T, DEPTH>
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