pub struct PerlVersion {
pub major: u32,
pub minor: u32,
}Expand description
Parsed Perl version from a lexical use v...; or use 5.xxx; pragma.
Fields§
§major: u32Major Perl version component.
minor: u32Minor Perl version component.
Implementations§
Trait Implementations§
Source§impl Clone for PerlVersion
impl Clone for PerlVersion
Source§fn clone(&self) -> PerlVersion
fn clone(&self) -> PerlVersion
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 PerlVersion
impl Debug for PerlVersion
Source§impl Ord for PerlVersion
impl Ord for PerlVersion
Source§fn cmp(&self, other: &PerlVersion) -> Ordering
fn cmp(&self, other: &PerlVersion) -> 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 PerlVersion
impl PartialEq for PerlVersion
Source§impl PartialOrd for PerlVersion
impl PartialOrd for PerlVersion
impl Copy for PerlVersion
impl Eq for PerlVersion
impl StructuralPartialEq for PerlVersion
Auto Trait Implementations§
impl Freeze for PerlVersion
impl RefUnwindSafe for PerlVersion
impl Send for PerlVersion
impl Sync for PerlVersion
impl Unpin for PerlVersion
impl UnsafeUnpin for PerlVersion
impl UnwindSafe for PerlVersion
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