pub struct Element<T> {
pub bitoff: T,
pub bitlen: T,
/* private fields */
}Expand description
An element representing a run of set bits in an RleBitmapBase.
Fields§
§bitoff: TThe start offset of this run of 1-bits.
bitlen: TThe number of 1-bits in this run.
Implementations§
Trait Implementations§
Source§impl<T> DoublyLinkedListContainable<Element<T>> for Element<T>
impl<T> DoublyLinkedListContainable<Element<T>> for Element<T>
Source§fn get_node(&self) -> &DoublyLinkedListNode<Element<T>>
fn get_node(&self) -> &DoublyLinkedListNode<Element<T>>
Returns a reference to the list node.
Source§impl<T> Recyclable for Element<T>
impl<T> Recyclable for Element<T>
Source§impl<T> UninitRecyclable for Element<T>
impl<T> UninitRecyclable for Element<T>
Source§unsafe fn recycle_uninit(ptr: NonNull<MaybeUninit<Self>>)
unsafe fn recycle_uninit(ptr: NonNull<MaybeUninit<Self>>)
Recycles an uninitialized object. Read more
Source§fn allocate_uninit() -> Result<NonNull<MaybeUninit<Self>>, AllocError>
fn allocate_uninit() -> Result<NonNull<MaybeUninit<Self>>, AllocError>
Allocates a new uninitialized instance of
Self.Auto Trait Implementations§
impl<T> !Freeze for Element<T>
impl<T> !RefUnwindSafe for Element<T>
impl<T> !Send for Element<T>
impl<T> !Sync for Element<T>
impl<T> !UnwindSafe for Element<T>
impl<T> Unpin for Element<T>where
T: Unpin,
impl<T> UnsafeUnpin for Element<T>where
T: UnsafeUnpin,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), !>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), !>
Initializes
slot. Read moreSource§fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
First initializes the value using
self then calls the function f with the initialized
value. Read more