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 for Comment
impl PartialEq for Comment
impl Eq 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<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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.