pub trait Atom:
'static
+ Copy
+ Debug
+ Default
+ Send
+ Sync {
const BYTE_SIZE: usize;
// Required methods
fn to_bytes(&self) -> Vec<u8> ⓘ;
fn try_from_bytes(bytes: &[u8]) -> CoreResult<Self>
where Self: Sized;
}
Required Associated Constants§
Required Methods§
fn to_bytes(&self) -> Vec<u8> ⓘ
fn try_from_bytes(bytes: &[u8]) -> CoreResult<Self>where
Self: Sized,
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.