pub struct YamlDirective {
pub version: String,
pub node: NodeId,
}Expand description
Parsed %YAML directive metadata.
Fields§
§version: StringDirective version text, such as 1.2.
node: NodeIdCST directive node.
Trait Implementations§
Source§impl Clone for YamlDirective
impl Clone for YamlDirective
Source§fn clone(&self) -> YamlDirective
fn clone(&self) -> YamlDirective
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 moreSource§impl Debug for YamlDirective
impl Debug for YamlDirective
impl Eq for YamlDirective
Source§impl PartialEq for YamlDirective
impl PartialEq for YamlDirective
impl StructuralPartialEq for YamlDirective
Auto Trait Implementations§
impl Freeze for YamlDirective
impl RefUnwindSafe for YamlDirective
impl Send for YamlDirective
impl Sync for YamlDirective
impl Unpin for YamlDirective
impl UnsafeUnpin for YamlDirective
impl UnwindSafe for YamlDirective
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