pub struct VersionDirective(pub u8, pub u8);Expand description
Document version directive.
Tuple Fields§
§0: u8§1: u8Implementations§
Source§impl VersionDirective
impl VersionDirective
Sourcepub fn from_raw(raw: yaml_version_directive_t) -> Self
pub fn from_raw(raw: yaml_version_directive_t) -> Self
Convert from yaml_version_directive_t.
Sourcepub fn into_raw(self) -> yaml_version_directive_t
pub fn into_raw(self) -> yaml_version_directive_t
Convert to yaml_version_directive_t.
Trait Implementations§
Source§impl Clone for VersionDirective
impl Clone for VersionDirective
Source§fn clone(&self) -> VersionDirective
fn clone(&self) -> VersionDirective
Returns a duplicate of the value. Read more
1.0.0 · 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 VersionDirective
impl Debug for VersionDirective
Source§impl Hash for VersionDirective
impl Hash for VersionDirective
Source§impl Ord for VersionDirective
impl Ord for VersionDirective
Source§fn cmp(&self, other: &VersionDirective) -> Ordering
fn cmp(&self, other: &VersionDirective) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VersionDirective
impl PartialEq for VersionDirective
Source§impl PartialOrd for VersionDirective
impl PartialOrd for VersionDirective
impl Copy for VersionDirective
impl Eq for VersionDirective
impl StructuralPartialEq for VersionDirective
Auto Trait Implementations§
impl Freeze for VersionDirective
impl RefUnwindSafe for VersionDirective
impl Send for VersionDirective
impl Sync for VersionDirective
impl Unpin for VersionDirective
impl UnwindSafe for VersionDirective
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