pub trait VcCast: Sealed {
type Output;
// Required method
fn cast(content: TypedCellContent) -> Result<Self::Output>;
}
Expand description
Trait defined to share behavior between values and traits within
ReadRawVcFuture
. See VcValueTypeCast
and
VcValueTraitCast
.
This trait is sealed and cannot be implemented by users.
Required Associated Types§
Required Methods§
fn cast(content: TypedCellContent) -> Result<Self::Output>
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.