#[repr(C)]pub enum FigNodeKind {
Invalid = -1,
Null = 0,
Bool = 1,
Int = 2,
Float = 3,
String = 4,
Sequence = 5,
Mapping = 6,
Keyvalue = 7,
Alias = 8,
}Variants§
Invalid = -1
Null = 0
Bool = 1
Int = 2
Float = 3
String = 4
Sequence = 5
Mapping = 6
Keyvalue = 7
Alias = 8
Implementations§
Source§impl FigNodeKind
impl FigNodeKind
Sourcepub fn from_c(raw: c_int) -> Self
pub fn from_c(raw: c_int) -> Self
Map the raw c_int returned by fig_node_kind onto a FigNodeKind.
Unknown / future kinds collapse to FigNodeKind::Invalid rather than
being reinterpreted as an out-of-range enum value — which, for a value
returned by an extern "C" function into a Rust enum, is undefined
behavior. This is the only place a raw kind crosses into the enum.
Trait Implementations§
Source§impl Clone for FigNodeKind
impl Clone for FigNodeKind
Source§fn clone(&self) -> FigNodeKind
fn clone(&self) -> FigNodeKind
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 FigNodeKind
Source§impl Debug for FigNodeKind
impl Debug for FigNodeKind
impl Eq for FigNodeKind
Source§impl PartialEq for FigNodeKind
impl PartialEq for FigNodeKind
impl StructuralPartialEq for FigNodeKind
Auto Trait Implementations§
impl Freeze for FigNodeKind
impl RefUnwindSafe for FigNodeKind
impl Send for FigNodeKind
impl Sync for FigNodeKind
impl Unpin for FigNodeKind
impl UnsafeUnpin for FigNodeKind
impl UnwindSafe for FigNodeKind
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