Struct RemixRouteFileName
pub struct RemixRouteFileName(/* private fields */);Expand description
Validated Remix route file name metadata.
Implementations§
§impl RemixRouteFileName
impl RemixRouteFileName
pub 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§
§impl Clone for RemixRouteFileName
impl Clone for RemixRouteFileName
§fn clone(&self) -> RemixRouteFileName
fn clone(&self) -> RemixRouteFileName
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 RemixRouteFileName
impl Debug for RemixRouteFileName
§impl Display for RemixRouteFileName
impl Display for RemixRouteFileName
§impl FromStr for RemixRouteFileName
impl FromStr for RemixRouteFileName
§type Err = RemixNameError
type Err = RemixNameError
The associated error which can be returned from parsing.
§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 more§impl Hash for RemixRouteFileName
impl Hash for RemixRouteFileName
§impl Ord for RemixRouteFileName
impl Ord for RemixRouteFileName
§fn cmp(&self, other: &RemixRouteFileName) -> Ordering
fn cmp(&self, other: &RemixRouteFileName) -> Ordering
1.21.0 · 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
§impl PartialEq for RemixRouteFileName
impl PartialEq for RemixRouteFileName
§impl PartialOrd for RemixRouteFileName
impl PartialOrd for RemixRouteFileName
§impl TryFrom<&str> for RemixRouteFileName
impl TryFrom<&str> for RemixRouteFileName
§type Error = RemixNameError
type Error = RemixNameError
The type returned in the event of a conversion error.
§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