pub struct ProfileSelection { /* private fields */ }Expand description
Exact four-field key selecting one revisioned engine profile.
Implementations§
Source§impl ProfileSelection
impl ProfileSelection
Sourcepub fn new(
family: impl Into<String>,
profile_revision: u32,
engine_version: impl Into<String>,
importer: impl Into<String>,
) -> Self
pub fn new( family: impl Into<String>, profile_revision: u32, engine_version: impl Into<String>, importer: impl Into<String>, ) -> Self
Construct an exact profile selection without aliases or version ranges.
Sourcepub const fn profile_revision(&self) -> u32
pub const fn profile_revision(&self) -> u32
Exact profile revision.
Sourcepub fn engine_version(&self) -> &str
pub fn engine_version(&self) -> &str
Exact target engine version.
Trait Implementations§
Source§impl Clone for ProfileSelection
impl Clone for ProfileSelection
Source§fn clone(&self) -> ProfileSelection
fn clone(&self) -> ProfileSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProfileSelection
impl Debug for ProfileSelection
impl Eq for ProfileSelection
Source§impl Ord for ProfileSelection
impl Ord for ProfileSelection
Source§fn cmp(&self, other: &ProfileSelection) -> Ordering
fn cmp(&self, other: &ProfileSelection) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProfileSelection
impl PartialEq for ProfileSelection
Source§impl PartialOrd for ProfileSelection
impl PartialOrd for ProfileSelection
impl StructuralPartialEq for ProfileSelection
Auto Trait Implementations§
impl Freeze for ProfileSelection
impl RefUnwindSafe for ProfileSelection
impl Send for ProfileSelection
impl Sync for ProfileSelection
impl Unpin for ProfileSelection
impl UnsafeUnpin for ProfileSelection
impl UnwindSafe for ProfileSelection
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