Skip to main content

Chain

Struct Chain 

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

Implementations§

Source§

impl<T> Chain<T>

Source

pub const fn from_inner(inner: T) -> Self

Source

pub fn into_inner(self) -> T

Source

pub const fn as_inner(&self) -> &T

Source

pub const fn as_inner_mut(&mut self) -> &mut T

Source

pub const fn as_inner_chain(&self) -> Chain<&T>

Source

pub const fn as_inner_mut_chain(&mut self) -> Chain<&mut T>

Source

pub fn with_inner<F>(self, f: F) -> Self
where F: FnOnce(&T),

Source

pub fn with_inner_mut<F>(self, f: F) -> Self
where F: FnOnce(&mut T),

Source§

impl<T> Chain<Vec<T>>

Source

pub fn new() -> Self

Chaining function for Vec::new, see its documentation for details

Source

pub fn with_capacity(capacity: usize) -> Self

Chaining function for Vec::with_capacity, see its documentation for details

Source

pub unsafe fn from_raw_parts( ptr: *mut T, length: usize, capacity: usize, ) -> Self

Chaining function for Vec::from_raw_parts, see its documentation for details

Source

pub fn append(self, other: &mut Vec<T>) -> Self

Source

pub fn capacity(self) -> Self

Source

pub fn capacity_output(self, chain_output: impl Output<usize>) -> Self

Source

pub fn clear(self) -> Self

Source

pub fn push(self, value: T) -> Self

Auto Trait Implementations§

§

impl<T> Freeze for Chain<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Chain<T>
where T: RefUnwindSafe,

§

impl<T> Send for Chain<T>
where T: Send,

§

impl<T> Sync for Chain<T>
where T: Sync,

§

impl<T> Unpin for Chain<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for Chain<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for Chain<T>
where T: UnwindSafe,

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> ChainInner for T

Source§

fn from_chain(chain: Chain<Self>) -> Self

Source§

fn into_chain(self) -> Chain<Self>

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.