pub struct RoxygenTag(/* private fields */);Implementations§
Source§impl RoxygenTag
impl RoxygenTag
Sourcepub fn at(&self) -> Option<SyntaxToken<RLanguage>>
pub fn at(&self) -> Option<SyntaxToken<RLanguage>>
The @ token.
Sourcepub fn name(&self) -> Option<SmolStr>
pub fn name(&self) -> Option<SmolStr>
The tag name (e.g. param, examples), without the leading @.
Sourcepub fn arg(&self) -> Option<SyntaxToken<RLanguage>>
pub fn arg(&self) -> Option<SyntaxToken<RLanguage>>
The name argument for arg-bearing tags (e.g. x in @param x ...).
Sourcepub fn text(&self) -> Option<SyntaxToken<RLanguage>>
pub fn text(&self) -> Option<SyntaxToken<RLanguage>>
The remaining prose content of the tag, if any.
Sourcepub fn is_examples(&self) -> bool
pub fn is_examples(&self) -> bool
Whether this is an @examples/@examplesIf tag (embedded R code).
Trait Implementations§
Source§impl AstNode for RoxygenTag
impl AstNode for RoxygenTag
Source§impl Clone for RoxygenTag
impl Clone for RoxygenTag
Source§fn clone(&self) -> RoxygenTag
fn clone(&self) -> RoxygenTag
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 RoxygenTag
impl Debug for RoxygenTag
impl Eq for RoxygenTag
Source§impl Hash for RoxygenTag
impl Hash for RoxygenTag
Source§impl PartialEq for RoxygenTag
impl PartialEq for RoxygenTag
impl StructuralPartialEq for RoxygenTag
Auto Trait Implementations§
impl !RefUnwindSafe for RoxygenTag
impl !Send for RoxygenTag
impl !Sync for RoxygenTag
impl !UnwindSafe for RoxygenTag
impl Freeze for RoxygenTag
impl Unpin for RoxygenTag
impl UnsafeUnpin for RoxygenTag
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