pub struct SkeletonV1(pub Skeleton);
Expand description
This struct is a public wrapper around the internal Skeleton
struct.
This allows access to the serialization and deserialization capabilities, without exposing the internals of the skeleton machinery.
The Skeleton
is an “exotic type” in the serialization process, and handles its own
custom serialization practices.
🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Tuple Fields§
§0: Skeleton
Trait Implementations§
source§impl Clone for SkeletonV1
impl Clone for SkeletonV1
source§fn clone(&self) -> SkeletonV1
fn clone(&self) -> SkeletonV1
Returns a copy of the value. Read more
1.0.0 · 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 SkeletonV1
impl Debug for SkeletonV1
source§impl Ord for SkeletonV1
impl Ord for SkeletonV1
source§fn cmp(&self, other: &SkeletonV1) -> Ordering
fn cmp(&self, other: &SkeletonV1) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SkeletonV1
impl PartialEq for SkeletonV1
source§impl PartialOrd for SkeletonV1
impl PartialOrd for SkeletonV1
source§impl TryFrom<&str> for SkeletonV1
impl TryFrom<&str> for SkeletonV1
source§type Error = SkeletonError
type Error = SkeletonError
The type returned in the event of a conversion error.
source§fn try_from(
skeleton_string: &str,
) -> Result<SkeletonV1, <SkeletonV1 as TryFrom<&str>>::Error>
fn try_from( skeleton_string: &str, ) -> Result<SkeletonV1, <SkeletonV1 as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for SkeletonV1
impl StructuralPartialEq for SkeletonV1
Auto Trait Implementations§
impl Freeze for SkeletonV1
impl RefUnwindSafe for SkeletonV1
impl Send for SkeletonV1
impl Sync for SkeletonV1
impl Unpin for SkeletonV1
impl UnwindSafe for SkeletonV1
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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