Struct tlfs_crdt::Ref [−][src]
pub struct Ref<T> { /* fields omitted */ }
Expand description
Owned zero copy bytes encoding T
.
Implementations
pub fn checked<'a>(buffer: &'a [u8]) -> Result<Self> where
Archived<T>: CheckBytes<DefaultValidator<'a>> + 'static,
pub fn checked<'a>(buffer: &'a [u8]) -> Result<Self> where
Archived<T>: CheckBytes<DefaultValidator<'a>> + 'static,
Checks the byte slice and copies it into an owned buffer.
Serializes T
into a zero-copy byte slice.
Deserializes the owned bytes.
Returns the serialized byte slice.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Ref<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Ref<T> where
T: UnwindSafe,
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more