Existential

Struct Existential 

Source
pub struct Existential<'lower_bound, C>
where C: TyCon,
{ /* private fields */ }

Implementations§

Source§

impl<'lower_bound, C> Existential<'lower_bound, C>
where C: TyCon,

Source

pub fn new<'a: 'lower_bound>( inner: Apply<'a, C>, ) -> Existential<'lower_bound, C>

Source

pub fn with<'s, F, O>(&'s self, f: F) -> O
where F: for<'a> FnOnce(&'s Apply<'a, C>, PhantomData<&'lower_bound &'a ()>) -> O,

Source

pub fn with_mut<'s, F, O>(&'s mut self, f: F) -> O
where F: for<'a> FnOnce(&'s mut Apply<'a, C>, PhantomData<&'lower_bound &'a ()>) -> O,

Source

pub fn with_owned<F, O>(self, f: F) -> O
where F: for<'a> FnOnce(Apply<'a, C>, PhantomData<&'lower_bound &'a ()>) -> O,

Auto Trait Implementations§

§

impl<'lower_bound, C> Freeze for Existential<'lower_bound, C>
where <C as TyConFor<'lower_bound>>::Applied: Freeze,

§

impl<'lower_bound, C> RefUnwindSafe for Existential<'lower_bound, C>
where <C as TyConFor<'lower_bound>>::Applied: RefUnwindSafe,

§

impl<'lower_bound, C> Send for Existential<'lower_bound, C>
where <C as TyConFor<'lower_bound>>::Applied: Send,

§

impl<'lower_bound, C> Sync for Existential<'lower_bound, C>
where <C as TyConFor<'lower_bound>>::Applied: Sync,

§

impl<'lower_bound, C> Unpin for Existential<'lower_bound, C>
where <C as TyConFor<'lower_bound>>::Applied: Unpin,

§

impl<'lower_bound, C> UnwindSafe for Existential<'lower_bound, C>
where <C as TyConFor<'lower_bound>>::Applied: 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> 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.