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