Struct DatabaseEngine
pub struct DatabaseEngine(/* private fields */);Implementations§
§impl DatabaseEngine
impl DatabaseEngine
pub 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.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the label and returns the owned string.
Trait Implementations§
§impl AsRef<str> for DatabaseEngine
impl AsRef<str> for DatabaseEngine
§impl Clone for DatabaseEngine
impl Clone for DatabaseEngine
§fn clone(&self) -> DatabaseEngine
fn clone(&self) -> DatabaseEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for DatabaseEngine
impl Debug for DatabaseEngine
§impl Display for DatabaseEngine
impl Display for DatabaseEngine
§impl FromStr for DatabaseEngine
impl FromStr for DatabaseEngine
§type Err = DatabaseError
type Err = DatabaseError
The associated error which can be returned from parsing.
§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 more§impl Hash for DatabaseEngine
impl Hash for DatabaseEngine
§impl Ord for DatabaseEngine
impl Ord for DatabaseEngine
§impl PartialEq for DatabaseEngine
impl PartialEq for DatabaseEngine
§impl PartialOrd for DatabaseEngine
impl PartialOrd for DatabaseEngine
§impl TryFrom<&str> for DatabaseEngine
impl TryFrom<&str> for DatabaseEngine
§type Error = DatabaseError
type Error = DatabaseError
The type returned in the event of a conversion error.
§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