pub struct Psr4Mapping { /* private fields */ }Expand description
PSR-4 prefix-to-path mapping metadata.
Implementations§
Source§impl Psr4Mapping
impl Psr4Mapping
pub fn new(prefix: Psr4Prefix) -> Psr4Mapping
pub fn with_path(self, path: AutoloadPath) -> Psr4Mapping
pub const fn prefix(&self) -> &Psr4Prefix
pub fn paths(&self) -> &[AutoloadPath]
Trait Implementations§
Source§impl Clone for Psr4Mapping
impl Clone for Psr4Mapping
Source§fn clone(&self) -> Psr4Mapping
fn clone(&self) -> Psr4Mapping
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 Psr4Mapping
impl Debug for Psr4Mapping
Source§impl PartialEq for Psr4Mapping
impl PartialEq for Psr4Mapping
Source§fn eq(&self, other: &Psr4Mapping) -> bool
fn eq(&self, other: &Psr4Mapping) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Psr4Mapping
impl StructuralPartialEq for Psr4Mapping
Auto Trait Implementations§
impl Freeze for Psr4Mapping
impl RefUnwindSafe for Psr4Mapping
impl Send for Psr4Mapping
impl Sync for Psr4Mapping
impl Unpin for Psr4Mapping
impl UnsafeUnpin for Psr4Mapping
impl UnwindSafe for Psr4Mapping
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