Struct ra_ap_syntax::ast::Comment
source · pub struct Comment { /* private fields */ }Implementations§
source§impl Comment
impl Comment
pub fn kind(&self) -> CommentKind
pub fn is_doc(&self) -> bool
pub fn is_inner(&self) -> bool
pub fn is_outer(&self) -> bool
pub fn prefix(&self) -> &'static str
sourcepub fn doc_comment(&self) -> Option<&str>
pub fn doc_comment(&self) -> Option<&str>
Returns the textual content of a doc comment node as a single string with prefix and suffix removed.
Trait Implementations§
source§impl PartialEq<Comment> for Comment
impl PartialEq<Comment> for Comment
impl Eq for Comment
impl StructuralEq for Comment
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl !RefUnwindSafe for Comment
impl !Send for Comment
impl !Sync for Comment
impl Unpin for Comment
impl !UnwindSafe for Comment
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.