pub struct RemixRoutePath(/* private fields */);Expand description
Validated Remix route path metadata.
Implementations§
Source§impl RemixRoutePath
impl RemixRoutePath
Sourcepub fn new(input: &str) -> Result<RemixRoutePath, RemixNameError>
pub fn new(input: &str) -> Result<RemixRoutePath, RemixNameError>
Creates Remix route path metadata.
§Errors
Returns RemixNameError when input is empty or contains control characters.
Trait Implementations§
Source§impl Clone for RemixRoutePath
impl Clone for RemixRoutePath
Source§fn clone(&self) -> RemixRoutePath
fn clone(&self) -> RemixRoutePath
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 RemixRoutePath
impl Debug for RemixRoutePath
Source§impl Display for RemixRoutePath
impl Display for RemixRoutePath
Source§impl FromStr for RemixRoutePath
impl FromStr for RemixRoutePath
Source§type Err = RemixNameError
type Err = RemixNameError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<RemixRoutePath, <RemixRoutePath as FromStr>::Err>
fn from_str( input: &str, ) -> Result<RemixRoutePath, <RemixRoutePath as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for RemixRoutePath
impl Hash for RemixRoutePath
Source§impl Ord for RemixRoutePath
impl Ord for RemixRoutePath
Source§fn cmp(&self, other: &RemixRoutePath) -> Ordering
fn cmp(&self, other: &RemixRoutePath) -> 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 RemixRoutePath
impl PartialEq for RemixRoutePath
Source§fn eq(&self, other: &RemixRoutePath) -> bool
fn eq(&self, other: &RemixRoutePath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RemixRoutePath
impl PartialOrd for RemixRoutePath
Source§impl TryFrom<&str> for RemixRoutePath
impl TryFrom<&str> for RemixRoutePath
Source§type Error = RemixNameError
type Error = RemixNameError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<RemixRoutePath, <RemixRoutePath as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<RemixRoutePath, <RemixRoutePath as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for RemixRoutePath
impl StructuralPartialEq for RemixRoutePath
Auto Trait Implementations§
impl Freeze for RemixRoutePath
impl RefUnwindSafe for RemixRoutePath
impl Send for RemixRoutePath
impl Sync for RemixRoutePath
impl Unpin for RemixRoutePath
impl UnsafeUnpin for RemixRoutePath
impl UnwindSafe for RemixRoutePath
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