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