pub trait Object<Extra: 'static = ()>:
'static
+ Sized
+ Send
+ Sync
+ FullHash<Extra>
+ for<'a> Parse<Input<'a, Extra>> {
// Provided methods
fn extension(&self, typeid: TypeId) -> Result<&dyn Any> { ... }
fn point_extra(self, extra: Extra) -> Point<Self, Extra>
where Self: Clone,
Extra: Send + Sync + Clone { ... }
fn to_resolve(&self) -> Arc<dyn Resolve>
where Self: Clone { ... }
}Provided Methods§
fn extension(&self, typeid: TypeId) -> Result<&dyn Any>
fn point_extra(self, extra: Extra) -> Point<Self, Extra>
fn to_resolve(&self) -> Arc<dyn Resolve>where
Self: Clone,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.