#[non_exhaustive]#[repr(C)]pub struct YamlNodeT {
pub type_: YamlNodeTypeT,
pub tag: *mut u8,
pub data: UnnamedYamlNodeTData,
pub start_mark: YamlMarkT,
pub end_mark: YamlMarkT,
}
Expand description
The node structure.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type_: YamlNodeTypeT
The node type.
tag: *mut u8
The node tag.
data: UnnamedYamlNodeTData
The node data.
union {
/// The scalar parameters (for YamlScalarNode).
scalar: struct {
/// The scalar value.
value: *mut u8,
/// The length of the scalar value.
length: u64,
/// The scalar style.
style: YamlScalarStyleT,
},
/// The sequence parameters (for YamlSequenceNode).
sequence: struct {
/// The stack of sequence items.
items: YamlStackT<YamlNodeItemT>,
/// The sequence style.
style: YamlSequenceStyleT,
},
/// The mapping parameters (for YamlMappingNode).
mapping: struct {
/// The stack of mapping pairs (key, value).
pairs: YamlStackT<YamlNodePairT>,
/// The mapping style.
style: YamlMappingStyleT,
},
}
start_mark: YamlMarkT
The beginning of the node.
end_mark: YamlMarkT
The end of the node.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for YamlNodeT
impl RefUnwindSafe for YamlNodeT
impl !Send for YamlNodeT
impl !Sync for YamlNodeT
impl Unpin for YamlNodeT
impl UnwindSafe for YamlNodeT
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)