Struct rb_sys_env::RubyVersion
source · pub struct RubyVersion { /* private fields */ }Expand description
The current Ruby version.
Implementations
sourceimpl 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
sourceimpl Clone for RubyVersion
impl Clone for RubyVersion
sourcefn clone(&self) -> RubyVersion
fn clone(&self) -> RubyVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RubyVersion
impl Debug for RubyVersion
sourceimpl From<(u8, u8)> for RubyVersion
impl From<(u8, u8)> for RubyVersion
sourceimpl From<u8> for RubyVersion
impl From<u8> for RubyVersion
sourceimpl PartialEq<RubyVersion> for RubyVersion
impl PartialEq<RubyVersion> for RubyVersion
sourcefn eq(&self, other: &RubyVersion) -> bool
fn eq(&self, other: &RubyVersion) -> bool
impl Copy for RubyVersion
impl Eq for RubyVersion
impl StructuralEq for RubyVersion
impl StructuralPartialEq for RubyVersion
Auto Trait Implementations
impl RefUnwindSafe for RubyVersion
impl Send for RubyVersion
impl Sync for RubyVersion
impl Unpin for RubyVersion
impl UnwindSafe for RubyVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more