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