#[repr(C)]pub struct FigPathSegment {
pub kind: i32,
pub key_ptr: *const u8,
pub key_len: usize,
pub index: usize,
}Expand description
One step of a path: kind == 0 selects mapping key key_ptr[0..key_len];
kind == 1 selects sequence element index. Mirrors FigPathSegment in
fig.h.
Fields§
§kind: i32§key_ptr: *const u8§key_len: usize§index: usizeTrait Implementations§
Source§impl Clone for FigPathSegment
impl Clone for FigPathSegment
Source§fn clone(&self) -> FigPathSegment
fn clone(&self) -> FigPathSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FigPathSegment
Auto Trait Implementations§
impl !Send for FigPathSegment
impl !Sync for FigPathSegment
impl Freeze for FigPathSegment
impl RefUnwindSafe for FigPathSegment
impl Unpin for FigPathSegment
impl UnsafeUnpin for FigPathSegment
impl UnwindSafe for FigPathSegment
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