pub struct Psr4Prefix(/* private fields */);Expand description
PSR-4 namespace prefix metadata.
Implementations§
Source§impl Psr4Prefix
impl Psr4Prefix
pub fn new(input: &str) -> Result<Psr4Prefix, PhpAutoloadError>
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for Psr4Prefix
impl Clone for Psr4Prefix
Source§fn clone(&self) -> Psr4Prefix
fn clone(&self) -> Psr4Prefix
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 Psr4Prefix
impl Debug for Psr4Prefix
Source§impl Display for Psr4Prefix
impl Display for Psr4Prefix
Source§impl FromStr for Psr4Prefix
impl FromStr for Psr4Prefix
Source§type Err = PhpAutoloadError
type Err = PhpAutoloadError
The associated error which can be returned from parsing.
Source§fn from_str(input: &str) -> Result<Psr4Prefix, <Psr4Prefix as FromStr>::Err>
fn from_str(input: &str) -> Result<Psr4Prefix, <Psr4Prefix as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for Psr4Prefix
impl Hash for Psr4Prefix
Source§impl Ord for Psr4Prefix
impl Ord for Psr4Prefix
Source§fn cmp(&self, other: &Psr4Prefix) -> Ordering
fn cmp(&self, other: &Psr4Prefix) -> 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 Psr4Prefix
impl PartialEq for Psr4Prefix
Source§fn eq(&self, other: &Psr4Prefix) -> bool
fn eq(&self, other: &Psr4Prefix) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Psr4Prefix
impl PartialOrd for Psr4Prefix
impl Eq for Psr4Prefix
impl StructuralPartialEq for Psr4Prefix
Auto Trait Implementations§
impl Freeze for Psr4Prefix
impl RefUnwindSafe for Psr4Prefix
impl Send for Psr4Prefix
impl Sync for Psr4Prefix
impl Unpin for Psr4Prefix
impl UnsafeUnpin for Psr4Prefix
impl UnwindSafe for Psr4Prefix
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