[−][src]Enum jsonc_parser::ast::Comment
pub enum Comment { Line(CommentLine), Block(CommentBlock), }
JSONC comment.
Variants
Line(CommentLine)
Block(CommentBlock)
Implementations
impl Comment
[src][−]
pub fn text(&self) -> &str
[src][−]
Gets the text of the comment.
pub fn kind(&self) -> CommentKind
[src][−]
Gets the comment kind.
Trait Implementations
impl Clone for Comment
[src][+]
impl Debug for Comment
[src][+]
impl PartialEq<Comment> for Comment
[src][+]
impl Ranged for Comment
[src][+]
impl StructuralPartialEq for Comment
[src]
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
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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,