pub struct RubyVersion {
pub engine: String,
pub version: String,
}Expand description
A parsed Ruby interpreter version from a Gemfile.lock RUBY VERSION section.
Example inputs:
"ruby 3.0.0p0"-> engine=“ruby”, version=“3.0.0”"jruby 9.3.6.0"-> engine=“jruby”, version=“9.3.6.0”"ruby 3.2.1"-> engine=“ruby”, version=“3.2.1”
Fields§
§engine: StringThe Ruby engine (e.g., “ruby”, “jruby”, “mruby”).
version: StringThe version string with patchlevel stripped (e.g., “3.0.0”).
Implementations§
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 PartialEq for RubyVersion
impl PartialEq 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.