pub struct DriverVersion(/* private fields */);Implementations§
Source§impl DriverVersion
impl DriverVersion
Sourcepub fn new(input: impl AsRef<str>) -> Result<DriverVersion, DriverError>
pub fn new(input: impl AsRef<str>) -> Result<DriverVersion, DriverError>
Creates a driver/backend metadata label.
§Errors
Returns DriverError when the label is empty or contains control characters.
Trait Implementations§
Source§impl Clone for DriverVersion
impl Clone for DriverVersion
Source§fn clone(&self) -> DriverVersion
fn clone(&self) -> DriverVersion
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 DriverVersion
impl Debug for DriverVersion
Source§impl Display for DriverVersion
impl Display for DriverVersion
Source§impl Hash for DriverVersion
impl Hash for DriverVersion
Source§impl Ord for DriverVersion
impl Ord for DriverVersion
Source§fn cmp(&self, other: &DriverVersion) -> Ordering
fn cmp(&self, other: &DriverVersion) -> 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
Source§impl PartialEq for DriverVersion
impl PartialEq for DriverVersion
Source§fn eq(&self, other: &DriverVersion) -> bool
fn eq(&self, other: &DriverVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DriverVersion
impl PartialOrd for DriverVersion
impl Eq for DriverVersion
impl StructuralPartialEq for DriverVersion
Auto Trait Implementations§
impl Freeze for DriverVersion
impl RefUnwindSafe for DriverVersion
impl Send for DriverVersion
impl Sync for DriverVersion
impl Unpin for DriverVersion
impl UnsafeUnpin for DriverVersion
impl UnwindSafe for DriverVersion
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