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