pub enum Attribute {
DocCommentLine(Extent),
DocCommentBlock(Extent),
Literal(AttributeLiteral),
}Variants§
Implementations§
Source§impl Attribute
impl Attribute
pub fn into_doc_comment_line(self) -> Option<Extent>
pub fn into_doc_comment_block(self) -> Option<Extent>
pub fn into_literal(self) -> Option<AttributeLiteral>
pub fn as_doc_comment_line(&self) -> Option<&Extent>
pub fn as_doc_comment_block(&self) -> Option<&Extent>
pub fn as_literal(&self) -> Option<&AttributeLiteral>
pub fn is_doc_comment_line(&self) -> bool
pub fn is_doc_comment_block(&self) -> bool
pub fn is_literal(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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