pub enum JsonPointeeTy {
Struct(JsonPointeeStructTy),
Variant(&'static str, JsonPointeeStructTy),
Named(&'static str),
}Expand description
The name of a pointed-to type, for reporting traversal errors.
Variants§
Implementations§
Source§impl JsonPointeeTy
impl JsonPointeeTy
pub fn struct_named(ty: &'static str) -> Self
pub fn tuple_struct_named(ty: &'static str) -> Self
pub fn unit_struct_named(ty: &'static str) -> Self
pub fn struct_variant_named(ty: &'static str, variant: &'static str) -> Self
pub fn tuple_variant_named(ty: &'static str, variant: &'static str) -> Self
pub fn unit_variant_named(ty: &'static str, variant: &'static str) -> Self
pub fn named<T: ?Sized>() -> Self
pub fn name_of<T: ?Sized>(value: &T) -> Self
Trait Implementations§
Source§impl Clone for JsonPointeeTy
impl Clone for JsonPointeeTy
Source§fn clone(&self) -> JsonPointeeTy
fn clone(&self) -> JsonPointeeTy
Returns a duplicate 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 JsonPointeeTy
impl Debug for JsonPointeeTy
Source§impl Display for JsonPointeeTy
impl Display for JsonPointeeTy
Source§impl PartialEq for JsonPointeeTy
impl PartialEq for JsonPointeeTy
impl Copy for JsonPointeeTy
impl Eq for JsonPointeeTy
impl StructuralPartialEq for JsonPointeeTy
Auto Trait Implementations§
impl Freeze for JsonPointeeTy
impl RefUnwindSafe for JsonPointeeTy
impl Send for JsonPointeeTy
impl Sync for JsonPointeeTy
impl Unpin for JsonPointeeTy
impl UnwindSafe for JsonPointeeTy
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§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