[−][src]Struct ra_ap_syntax::ast::Comment
Implementations
impl Comment
[src]
pub fn kind(&self) -> CommentKind
[src]
pub fn is_inner(&self) -> bool
[src]
pub fn is_outer(&self) -> bool
[src]
pub fn prefix(&self) -> &'static str
[src]
pub fn doc_comment(&self) -> Option<&str>
[src]
Returns the textual content of a doc comment block as a single string.
That is, strips leading ///
(+ optional 1 character of whitespace),
trailing */
, trailing whitespace and then joins the lines.
Trait Implementations
impl AstToken for Comment
[src]
pub fn can_cast(kind: SyntaxKind) -> bool
[src]
pub fn cast(syntax: SyntaxToken) -> Option<Self>
[src]
pub fn syntax(&self) -> &SyntaxToken
[src]
pub fn text(&self) -> &SmolStr
[src]
impl Clone for Comment
[src]
impl Debug for Comment
[src]
impl Display for Comment
[src]
impl Eq for Comment
[src]
impl Hash for Comment
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Comment> for Comment
[src]
impl StructuralEq for Comment
[src]
impl StructuralPartialEq for Comment
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Comment
[src]
impl !Send for Comment
[src]
impl !Sync for Comment
[src]
impl Unpin for Comment
[src]
impl !UnwindSafe for Comment
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,