pub struct BitroundDataTypePlugin {
pub type_id: TypeId,
pub caster: fn(&(dyn Any + 'static)) -> Option<&dyn BitroundDataTypeTraits>,
}Available on crate feature
bitround only.Expand description
Plugin for registering bitround codec support for a data type.
Use the register_data_type_extension_codec macro to register.
Fields§
§type_id: TypeIdThe data type’s TypeId.
caster: fn(&(dyn Any + 'static)) -> Option<&dyn BitroundDataTypeTraits>Function that casts from &dyn Any to the codec trait.
Trait Implementations§
impl Collect for BitroundDataTypePlugin
Auto Trait Implementations§
impl Freeze for BitroundDataTypePlugin
impl Send for BitroundDataTypePlugin
impl Sync for BitroundDataTypePlugin
impl RefUnwindSafe for BitroundDataTypePlugin
impl Unpin for BitroundDataTypePlugin
impl UnsafeUnpin for BitroundDataTypePlugin
impl UnwindSafe for BitroundDataTypePlugin
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more