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