Enum serde_path_to_error::Segment
source · [−]pub enum Segment {
Seq {
index: usize,
},
Map {
key: String,
},
Enum {
variant: String,
},
Unknown,
}
Expand description
Single segment of a path.
Variants
Seq
Fields
index: usize
Map
Fields
key: String
Enum
Fields
variant: String
Unknown
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more