#[non_exhaustive]pub struct PhpDoc {
pub summary: Option<PhpDocText>,
pub description: Option<PhpDocText>,
pub tags: Vec<PhpDocTag>,
pub span: Span,
}Expand description
A parsed docblock.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.summary: Option<PhpDocText>Leading summary text.
description: Option<PhpDocText>Description following the summary.
Block-level tags in source order.
span: SpanAlways Span::new(0, text.len() as u32).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PhpDoc
impl RefUnwindSafe for PhpDoc
impl Send for PhpDoc
impl Sync for PhpDoc
impl Unpin for PhpDoc
impl UnsafeUnpin for PhpDoc
impl UnwindSafe for PhpDoc
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