pub struct ReleaseMetadata<'a> {
pub copyright: &'a str,
pub description: &'a str,
pub engine: &'a str,
pub engine_version: &'a str,
pub patchlevel: &'a str,
pub platform: &'a str,
pub release_date: &'a str,
pub revision: &'a str,
pub ruby_version: &'a str,
pub compiler_version: Option<&'a str>,
}
Fields
copyright: &'a str
description: &'a str
engine: &'a str
engine_version: &'a str
patchlevel: &'a str
platform: &'a str
release_date: &'a str
revision: &'a str
ruby_version: &'a str
compiler_version: Option<&'a str>
Implementations
sourceimpl<'a> ReleaseMetadata<'a>
impl<'a> ReleaseMetadata<'a>
pub const fn new() -> Self
pub fn with_ruby_copyright(self, copyright: &'a str) -> Self
pub fn with_ruby_description(self, description: &'a str) -> Self
pub fn with_ruby_engine(self, engine: &'a str) -> Self
pub fn with_ruby_engine_version(self, engine_version: &'a str) -> Self
pub fn with_ruby_patchlevel(self, patchlevel: &'a str) -> Self
pub fn with_ruby_platform(self, platform: &'a str) -> Self
pub fn with_ruby_release_date(self, release_date: &'a str) -> Self
pub fn with_ruby_revision(self, revision: &'a str) -> Self
pub fn with_ruby_version(self, ruby_version: &'a str) -> Self
pub fn with_artichoke_compiler_version(
self,
compiler_version: Option<&'a str>
) -> Self
pub const fn ruby_copyright(&self) -> &str
pub const fn ruby_description(&self) -> &str
pub const fn ruby_engine(&self) -> &str
pub const fn ruby_engine_version(&self) -> &str
pub const fn ruby_patchlevel(&self) -> &str
pub const fn ruby_platform(&self) -> &str
pub const fn ruby_release_date(&self) -> &str
pub const fn ruby_revision(&self) -> &str
pub const fn ruby_version(&self) -> &str
pub const fn artichoke_compiler_version(&self) -> Option<&str>
Trait Implementations
sourceimpl<'a> Clone for ReleaseMetadata<'a>
impl<'a> Clone for ReleaseMetadata<'a>
sourcefn clone(&self) -> ReleaseMetadata<'a>
fn clone(&self) -> ReleaseMetadata<'a>
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 more
sourceimpl<'a> Debug for ReleaseMetadata<'a>
impl<'a> Debug for ReleaseMetadata<'a>
sourceimpl<'a> Default for ReleaseMetadata<'a>
impl<'a> Default for ReleaseMetadata<'a>
sourceimpl<'a> Hash for ReleaseMetadata<'a>
impl<'a> Hash for ReleaseMetadata<'a>
sourceimpl<'a> Ord for ReleaseMetadata<'a>
impl<'a> Ord for ReleaseMetadata<'a>
sourceimpl<'a> PartialEq<ReleaseMetadata<'a>> for ReleaseMetadata<'a>
impl<'a> PartialEq<ReleaseMetadata<'a>> for ReleaseMetadata<'a>
sourcefn eq(&self, other: &ReleaseMetadata<'a>) -> bool
fn eq(&self, other: &ReleaseMetadata<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReleaseMetadata<'a>) -> bool
fn ne(&self, other: &ReleaseMetadata<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<ReleaseMetadata<'a>> for ReleaseMetadata<'a>
impl<'a> PartialOrd<ReleaseMetadata<'a>> for ReleaseMetadata<'a>
sourcefn partial_cmp(&self, other: &ReleaseMetadata<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ReleaseMetadata<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<'a> ReleaseMetadata for ReleaseMetadata<'a>
impl<'a> ReleaseMetadata for ReleaseMetadata<'a>
sourcefn ruby_copyright(&self) -> &str
fn ruby_copyright(&self) -> &str
Copyright information. Read more
sourcefn ruby_description(&self) -> &str
fn ruby_description(&self) -> &str
A description of the current build. Read more
sourcefn ruby_engine(&self) -> &str
fn ruby_engine(&self) -> &str
The engine, or VM, used in the current build. Read more
sourcefn ruby_engine_version(&self) -> &str
fn ruby_engine_version(&self) -> &str
The version of the engine, or VM, used in the current build. Read more
sourcefn ruby_patchlevel(&self) -> &str
fn ruby_patchlevel(&self) -> &str
The patch level the current build. Read more
sourcefn ruby_platform(&self) -> &str
fn ruby_platform(&self) -> &str
The target triple of the platform this build targets. Read more
sourcefn ruby_release_date(&self) -> &str
fn ruby_release_date(&self) -> &str
The build date of this release. Read more
sourcefn ruby_revision(&self) -> &str
fn ruby_revision(&self) -> &str
The revision count of the Artichoke git repository used for this build. Read more
sourcefn ruby_version(&self) -> &str
fn ruby_version(&self) -> &str
The target MRI Ruby version for this build. Read more
sourcefn artichoke_compiler_version(&self) -> Option<&str>
fn artichoke_compiler_version(&self) -> Option<&str>
A description of the compiler used to build Artichoke. Read more
impl<'a> Copy for ReleaseMetadata<'a>
impl<'a> Eq for ReleaseMetadata<'a>
impl<'a> StructuralEq for ReleaseMetadata<'a>
impl<'a> StructuralPartialEq for ReleaseMetadata<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ReleaseMetadata<'a>
impl<'a> Send for ReleaseMetadata<'a>
impl<'a> Sync for ReleaseMetadata<'a>
impl<'a> Unpin for ReleaseMetadata<'a>
impl<'a> UnwindSafe for ReleaseMetadata<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more