pub struct CanonicalBytes(/* private fields */);Expand description
Canonical record/checkpoint bytes.
Native bindings project this to bytes / Uint8Array. The JSON projection used by
diagnostics and exports is explicit: {"encoding":"base64","data":"…"}. A bare string
would be indistinguishable from text, and a number array would double in size and invite
per-language element typing.
Implementations§
Trait Implementations§
Source§impl Clone for CanonicalBytes
impl Clone for CanonicalBytes
Source§fn clone(&self) -> CanonicalBytes
fn clone(&self) -> CanonicalBytes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanonicalBytes
impl Debug for CanonicalBytes
Source§impl Default for CanonicalBytes
impl Default for CanonicalBytes
Source§fn default() -> CanonicalBytes
fn default() -> CanonicalBytes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CanonicalBytes
impl<'de> Deserialize<'de> for CanonicalBytes
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CanonicalBytes
Source§impl Hash for CanonicalBytes
impl Hash for CanonicalBytes
Source§impl PartialEq for CanonicalBytes
impl PartialEq for CanonicalBytes
Source§impl Serialize for CanonicalBytes
impl Serialize for CanonicalBytes
impl StructuralPartialEq for CanonicalBytes
Auto Trait Implementations§
impl Freeze for CanonicalBytes
impl RefUnwindSafe for CanonicalBytes
impl Send for CanonicalBytes
impl Sync for CanonicalBytes
impl Unpin for CanonicalBytes
impl UnsafeUnpin for CanonicalBytes
impl UnwindSafe for CanonicalBytes
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