pub struct YamlVersion {
pub major: u32,
pub minor: u32,
}Expand description
YAML version declared by a %YAML directive.
Fields§
§major: u32Major version number.
minor: u32Minor version number.
Implementations§
Trait Implementations§
Source§impl Clone for YamlVersion
impl Clone for YamlVersion
Source§fn clone(&self) -> YamlVersion
fn clone(&self) -> YamlVersion
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 YamlVersion
Source§impl Debug for YamlVersion
impl Debug for YamlVersion
impl Eq for YamlVersion
Source§impl Hash for YamlVersion
impl Hash for YamlVersion
Source§impl PartialEq for YamlVersion
impl PartialEq for YamlVersion
Source§fn eq(&self, other: &YamlVersion) -> bool
fn eq(&self, other: &YamlVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for YamlVersion
Auto Trait Implementations§
impl Freeze for YamlVersion
impl RefUnwindSafe for YamlVersion
impl Send for YamlVersion
impl Sync for YamlVersion
impl Unpin for YamlVersion
impl UnsafeUnpin for YamlVersion
impl UnwindSafe for YamlVersion
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