pub enum JsonPointeeType {
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 JsonPointeeType
impl JsonPointeeType
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 JsonPointeeType
impl Clone for JsonPointeeType
Source§fn clone(&self) -> JsonPointeeType
fn clone(&self) -> JsonPointeeType
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 JsonPointeeType
impl Debug for JsonPointeeType
Source§impl Display for JsonPointeeType
impl Display for JsonPointeeType
Source§impl PartialEq for JsonPointeeType
impl PartialEq for JsonPointeeType
impl Copy for JsonPointeeType
impl Eq for JsonPointeeType
impl StructuralPartialEq for JsonPointeeType
Auto Trait Implementations§
impl Freeze for JsonPointeeType
impl RefUnwindSafe for JsonPointeeType
impl Send for JsonPointeeType
impl Sync for JsonPointeeType
impl Unpin for JsonPointeeType
impl UnsafeUnpin for JsonPointeeType
impl UnwindSafe for JsonPointeeType
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