Struct OutputDebug

Source
pub struct OutputDebug<T, O>
where O: Output<T>,
{ /* private fields */ }

Implementations§

Source§

impl<T, O> OutputDebug<T, O>
where O: Output<T>,

Source

pub fn into_inner(self) -> O

Unwraps self and returns the inner output (without ever panicking)

Trait Implementations§

Source§

impl<T, O> Drop for OutputDebug<T, O>
where O: Output<T>,

Available on debug-assertions enabled only.
Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<T, O> Output<T> for OutputDebug<T, O>
where O: Output<T>,

Source§

fn write(self, item: T)

Stores a value

Auto Trait Implementations§

§

impl<T, O> Freeze for OutputDebug<T, O>
where O: Freeze,

§

impl<T, O> RefUnwindSafe for OutputDebug<T, O>
where O: RefUnwindSafe,

§

impl<T, O> Send for OutputDebug<T, O>
where O: Send,

§

impl<T, O> Sync for OutputDebug<T, O>
where O: Sync,

§

impl<T, O> Unpin for OutputDebug<T, O>
where O: Unpin,

§

impl<T, O> UnwindSafe for OutputDebug<T, O>
where O: 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§

fn chain_mut(&mut self) -> Chain<&mut Self>

Source§

impl<T> Encode for T

Source§

fn encode<E>(self) -> <E as Encoding>::EncodeOutput
where T: Encodable<E>, E: Encoding,

Source§

fn decode<E>(self) -> <E as Encoding>::DecodeOutput
where T: Decodable<E>, E: Encoding,

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> WithSelf for T

Source§

fn with_self(self, f: impl FnOnce(&mut Self)) -> Self

Takes ownership of the value, passing a mutable reference of it to a closure, then returning ownership of the value again