Struct ConvertContainer

Source
pub struct ConvertContainer<Cont, T, U>(/* private fields */);

Implementations§

Source§

impl<Cont, ContT, T> ConvertContainer<Cont, ContT, T>

Source

pub fn get(&self) -> &Cont

Trait Implementations§

Source§

impl<Cont, T, U> Container for ConvertContainer<Cont, T, U>
where Cont: Container,

Source§

type Data = <Cont as Container>::Data

Source§

fn init(data: Self::Data) -> Self

Source§

impl<'a, Cont, T, U, Deps> ResolveContainer<'a, U, Deps> for ConvertContainer<Cont, T, U>
where Cont: ResolveContainer<'a, T, Deps>, T: Into<U>,

Source§

fn resolve_container<F: Fn() -> Deps>(ct: &'a Self, deps: F) -> U

Auto Trait Implementations§

§

impl<Cont, T, U> Freeze for ConvertContainer<Cont, T, U>
where Cont: Freeze,

§

impl<Cont, T, U> RefUnwindSafe for ConvertContainer<Cont, T, U>

§

impl<Cont, T, U> Send for ConvertContainer<Cont, T, U>
where Cont: Send, T: Send, U: Send,

§

impl<Cont, T, U> Sync for ConvertContainer<Cont, T, U>
where Cont: Sync, T: Sync, U: Sync,

§

impl<Cont, T, U> Unpin for ConvertContainer<Cont, T, U>
where Cont: Unpin, T: Unpin, U: Unpin,

§

impl<Cont, T, U> UnwindSafe for ConvertContainer<Cont, T, U>
where Cont: UnwindSafe, T: UnwindSafe, U: 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<Choices> CoproductSubsetter<CNil, HNil> for Choices

Source§

type Remainder = Choices

Source§

fn subset( self, ) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, S> GetDependencies<'a, HNil, HNil> for S

Source§

fn get_deps(&'a self) -> HNil

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, I> LiftInto<U, I> for T
where U: LiftFrom<T, I>,

Source§

fn lift_into(self) -> U

Performs the indexed conversion.
Source§

impl<'this, 'cont, Cont, T, U, SP, Index, Deps, Infer> Resolver<'this, &'cont ConvertContainer<Cont, T, U>, U, (Index, Deps, Infer)> for SP
where SP: SelectContainer<'this, &'cont ConvertContainer<Cont, T, U>, Index> + GetDependencies<'this, Deps, Infer>, ConvertContainer<Cont, T, U>: ResolveContainer<'cont, U, Deps>, Cont: 'cont, T: Into<U> + 'cont, U: 'cont, Deps: 'cont,

Source§

fn resolve(&'this self) -> U

Source§

impl<Source> Sculptor<HNil, HNil> for Source

Source§

type Remainder = Source

Source§

fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)

Consumes the current HList and returns an HList with the requested shape. Read more
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.