pub struct RoxygenBlock(/* private fields */);Implementations§
Source§impl RoxygenBlock
impl RoxygenBlock
Sourcepub fn sections(&self) -> impl Iterator<Item = RoxygenSection> + '_
pub fn sections(&self) -> impl Iterator<Item = RoxygenSection> + '_
The logical sections of this block, in source order: the intro section
(untagged leading prose) and one section per @tag.
The tags of this block, in source order (@param, @export, …).
Sourcepub fn has_tag(&self, name: &str) -> bool
pub fn has_tag(&self, name: &str) -> bool
Whether any tag of this block is named name (without the leading @).
Sourcepub fn intro(&self) -> Option<RoxygenSection>
pub fn intro(&self) -> Option<RoxygenSection>
The intro section — the untagged leading prose whose first paragraph is
the topic title. None when the block starts with a tag.
Trait Implementations§
Source§impl AstNode for RoxygenBlock
impl AstNode for RoxygenBlock
Source§impl Clone for RoxygenBlock
impl Clone for RoxygenBlock
Source§impl Debug for RoxygenBlock
impl Debug for RoxygenBlock
impl Eq for RoxygenBlock
Source§impl Hash for RoxygenBlock
impl Hash for RoxygenBlock
Source§impl PartialEq for RoxygenBlock
impl PartialEq for RoxygenBlock
impl StructuralPartialEq for RoxygenBlock
Auto Trait Implementations§
impl !RefUnwindSafe for RoxygenBlock
impl !Send for RoxygenBlock
impl !Sync for RoxygenBlock
impl !UnwindSafe for RoxygenBlock
impl Freeze for RoxygenBlock
impl Unpin for RoxygenBlock
impl UnsafeUnpin for RoxygenBlock
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