pub struct DocblockTag { /* private fields */ }Expand description
Lightweight PHPDoc tag metadata.
Implementations§
Source§impl DocblockTag
impl DocblockTag
pub fn new(name: TagName) -> DocblockTag
pub const fn with_kind(self, kind: DocblockTagKind) -> DocblockTag
pub fn with_type_string(self, type_string: DocblockTypeString) -> DocblockTag
pub fn with_description(self, description: &str) -> DocblockTag
pub const fn name(&self) -> &TagName
pub const fn kind(&self) -> Option<DocblockTagKind>
pub const fn type_string(&self) -> Option<&DocblockTypeString>
pub fn description(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for DocblockTag
impl Clone for DocblockTag
Source§fn clone(&self) -> DocblockTag
fn clone(&self) -> DocblockTag
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 DocblockTag
impl Debug for DocblockTag
Source§impl PartialEq for DocblockTag
impl PartialEq for DocblockTag
Source§fn eq(&self, other: &DocblockTag) -> bool
fn eq(&self, other: &DocblockTag) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DocblockTag
impl StructuralPartialEq for DocblockTag
Auto Trait Implementations§
impl Freeze for DocblockTag
impl RefUnwindSafe for DocblockTag
impl Send for DocblockTag
impl Sync for DocblockTag
impl Unpin for DocblockTag
impl UnsafeUnpin for DocblockTag
impl UnwindSafe for DocblockTag
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