pub struct DatabasePath(/* private fields */);Expand description
A database URL path component.
Implementations§
Source§impl DatabasePath
impl DatabasePath
Sourcepub fn new(input: impl AsRef<str>) -> Result<Self, DatabaseUrlError>
pub fn new(input: impl AsRef<str>) -> Result<Self, DatabaseUrlError>
Creates a path wrapper. Empty paths are allowed and represent no path metadata.
§Errors
Returns DatabaseUrlError::ControlCharacter when text contains control characters.
Trait Implementations§
Source§impl Clone for DatabasePath
impl Clone for DatabasePath
Source§fn clone(&self) -> DatabasePath
fn clone(&self) -> DatabasePath
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 DatabasePath
impl Debug for DatabasePath
Source§impl Default for DatabasePath
impl Default for DatabasePath
Source§fn default() -> DatabasePath
fn default() -> DatabasePath
Returns the “default value” for a type. Read more
Source§impl Display for DatabasePath
impl Display for DatabasePath
Source§impl Hash for DatabasePath
impl Hash for DatabasePath
Source§impl Ord for DatabasePath
impl Ord for DatabasePath
Source§fn cmp(&self, other: &DatabasePath) -> Ordering
fn cmp(&self, other: &DatabasePath) -> 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 DatabasePath
impl PartialEq for DatabasePath
Source§fn eq(&self, other: &DatabasePath) -> bool
fn eq(&self, other: &DatabasePath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DatabasePath
impl PartialOrd for DatabasePath
impl Eq for DatabasePath
impl StructuralPartialEq for DatabasePath
Auto Trait Implementations§
impl Freeze for DatabasePath
impl RefUnwindSafe for DatabasePath
impl Send for DatabasePath
impl Sync for DatabasePath
impl Unpin for DatabasePath
impl UnsafeUnpin for DatabasePath
impl UnwindSafe for DatabasePath
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