Skip to main content

Header

Struct Header 

Source
pub struct Header<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T: Debug> Debug for Header<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Edge for Header<T>

Source§

fn count(&self) -> &Count

Source§

fn is_empty(&self) -> bool

Source§

fn is_unique(&self) -> bool

Source§

unsafe fn activate(&self)

Starts the first live owner with one store. Read more
Source§

unsafe fn start_pair(&self)

Starts exactly two live owners in an exclusively held empty domain. Read more
Source§

unsafe fn retire(&self)

Transfers the sole counted edge into exclusive uncounted ownership. Read more
Source§

unsafe fn try_retain(&self) -> Result<(), Error>

Adds one owner or leaves the exhausted domain unchanged. Read more
Source§

unsafe fn release(&self) -> Release

Consumes exactly one live owner edge and stores the resulting count. Read more
Source§

impl<T> Handle<T> for &Header<T>

Source§

fn header(&self) -> &Header<T>

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> Target for Header<T>

Source§

unsafe fn destroy(pointer: NonNull<Self>)

Safety Read more

Auto Trait Implementations§

§

impl<T> !Freeze for Header<T>

§

impl<T> !RefUnwindSafe for Header<T>

§

impl<T> !Send for Header<T>

§

impl<T> !Sync for Header<T>

§

impl<T> !UnwindSafe for Header<T>

§

impl<T> Unpin for Header<T>
where Store<Item<T>>: Unpin,

§

impl<T> UnsafeUnpin for Header<T>
where Store<Item<T>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.