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