pub struct PsrMetadata { /* private fields */ }Expand description
PHP-FIG PSR metadata record.
Implementations§
Source§impl PsrMetadata
impl PsrMetadata
pub const fn new( number: PsrNumber, title: PsrTitle, status: PsrStatus, category: PsrCategory, ) -> PsrMetadata
pub const fn number(&self) -> PsrNumber
pub const fn title(&self) -> &PsrTitle
pub const fn status(&self) -> PsrStatus
pub const fn category(&self) -> PsrCategory
pub fn identifier(&self) -> String
Trait Implementations§
Source§impl Clone for PsrMetadata
impl Clone for PsrMetadata
Source§fn clone(&self) -> PsrMetadata
fn clone(&self) -> PsrMetadata
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 PsrMetadata
impl Debug for PsrMetadata
Source§impl PartialEq for PsrMetadata
impl PartialEq for PsrMetadata
Source§fn eq(&self, other: &PsrMetadata) -> bool
fn eq(&self, other: &PsrMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PsrMetadata
impl StructuralPartialEq for PsrMetadata
Auto Trait Implementations§
impl Freeze for PsrMetadata
impl RefUnwindSafe for PsrMetadata
impl Send for PsrMetadata
impl Sync for PsrMetadata
impl Unpin for PsrMetadata
impl UnsafeUnpin for PsrMetadata
impl UnwindSafe for PsrMetadata
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