pub struct DatabaseEngine(/* private fields */);Implementations§
Source§impl DatabaseEngine
impl DatabaseEngine
Sourcepub fn new(input: impl AsRef<str>) -> Result<DatabaseEngine, DatabaseError>
pub fn new(input: impl AsRef<str>) -> Result<DatabaseEngine, 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§type Err = DatabaseError
type Err = DatabaseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<DatabaseEngine, <DatabaseEngine as FromStr>::Err>
fn from_str( input: &str, ) -> Result<DatabaseEngine, <DatabaseEngine as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§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
Source§type Error = DatabaseError
type Error = DatabaseError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<DatabaseEngine, <DatabaseEngine as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<DatabaseEngine, <DatabaseEngine as TryFrom<&str>>::Error>
Performs the conversion.
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