Struct boomerang::builder::TypedPortKey
source · pub struct TypedPortKey<T: PortData>(_, _);
Implementations§
source§impl<T: PortData> TypedPortKey<T>
impl<T: PortData> TypedPortKey<T>
pub fn new(port_key: BuilderPortKey) -> Self
Trait Implementations§
source§impl<T: Clone + PortData> Clone for TypedPortKey<T>
impl<T: Clone + PortData> Clone for TypedPortKey<T>
source§fn clone(&self) -> TypedPortKey<T>
fn clone(&self) -> TypedPortKey<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: PortData> From<TypedPortKey<T>> for BuilderPortKey
impl<T: PortData> From<TypedPortKey<T>> for BuilderPortKey
source§fn from(builder_port_key: TypedPortKey<T>) -> Self
fn from(builder_port_key: TypedPortKey<T>) -> Self
Converts to this type from the input type.
impl<T: Copy + PortData> Copy for TypedPortKey<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for TypedPortKey<T>where T: RefUnwindSafe,
impl<T> Send for TypedPortKey<T>
impl<T> Sync for TypedPortKey<T>
impl<T> Unpin for TypedPortKey<T>where T: Unpin,
impl<T> UnwindSafe for TypedPortKey<T>where T: UnwindSafe,
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§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.§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.