pub struct BoxPipe<V>(/* private fields */);Expand description
A trait object type for Pipe, help to store a concrete Pipe
or just a value.
This type not implement Pipe trait to avoid boxing the Pipe twice and
has a better conversion from Pipe to BoxPipe.
Call into_pipe to convert it to a Pipe type.
Implementations§
Trait Implementations§
Source§impl<M, T: 'static, V> FromAnother<T, [M; 0]> for BoxPipe<V>where
V: ChildFrom<T, M> + 'static,
impl<M, T: 'static, V> FromAnother<T, [M; 0]> for BoxPipe<V>where
V: ChildFrom<T, M> + 'static,
fn from_another(value: T, ctx: &BuildCtx<'_>) -> Self
Source§impl<T, V, M> FromAnother<T, [M; 1]> for BoxPipe<V>
impl<T, V, M> FromAnother<T, [M; 1]> for BoxPipe<V>
fn from_another(value: T, ctx: &BuildCtx<'_>) -> Self
Source§impl<T, Item, V, M> FromAnother<T, [M; 2]> for BoxPipe<Vec<V>>
impl<T, Item, V, M> FromAnother<T, [M; 2]> for BoxPipe<Vec<V>>
fn from_another(value: T, ctx: &BuildCtx<'_>) -> Self
Auto Trait Implementations§
impl<V> !RefUnwindSafe for BoxPipe<V>
impl<V> !Send for BoxPipe<V>
impl<V> !Sync for BoxPipe<V>
impl<V> !UnwindSafe for BoxPipe<V>
impl<V> Freeze for BoxPipe<V>
impl<V> Unpin for BoxPipe<V>
impl<V> UnsafeUnpin for BoxPipe<V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<C, T, M> ChildFrom<C, (M,)> for Twhere
T: FromAnother<C, M>,
impl<C, T, M> ChildFrom<C, (M,)> for Twhere
T: FromAnother<C, M>,
fn child_from(value: C, ctx: &BuildCtx<'_>) -> T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.