pub struct RubyVersion { /* private fields */ }
Expand description
The current Ruby version.
Implementations§
Source§impl RubyVersion
impl RubyVersion
Sourcepub fn major_minor_teeny(&self) -> (u8, u8, u8)
pub fn major_minor_teeny(&self) -> (u8, u8, u8)
The Ruby version as a u8 triple.
Sourcepub fn major_minor(&self) -> (u8, u8)
pub fn major_minor(&self) -> (u8, u8)
The Ruby version as a u8 pair.
pub fn print_cargo_rustc_cfg(&self)
Trait Implementations§
Source§impl Clone for RubyVersion
impl Clone for RubyVersion
Source§fn clone(&self) -> RubyVersion
fn clone(&self) -> RubyVersion
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 RubyVersion
impl Debug for RubyVersion
Source§impl From<u8> for RubyVersion
impl From<u8> for RubyVersion
Source§impl PartialEq for RubyVersion
impl PartialEq for RubyVersion
impl Copy for RubyVersion
impl Eq for RubyVersion
impl StructuralPartialEq for RubyVersion
Auto Trait Implementations§
impl Freeze for RubyVersion
impl RefUnwindSafe for RubyVersion
impl Send for RubyVersion
impl Sync for RubyVersion
impl Unpin for RubyVersion
impl UnwindSafe for RubyVersion
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