[][src]Struct c2rust_transpile::rust_ast::comment_store::CommentStore

pub struct CommentStore { /* fields omitted */ }

Methods

impl CommentStore[src]

pub fn new() -> Self[src]

pub fn into_comment_traverser(self) -> CommentTraverser[src]

pub fn into_comments(self) -> Vec<Comment>[src]

Convert the comment context into the accumulated (and ordered) libsyntax comments.

pub fn add_comment(&mut self, cmmt: Comment) -> Span[src]

Add a Comment at the current position, then return the Span that should be given to something we want associated with this comment.

pub fn add_comment_lines(&mut self, lines: Vec<String>) -> Span[src]

Add a comment at the current position, then return the Span that should be given to something we want associated with this comment.

Auto Trait Implementations

impl !Send for CommentStore

impl !Sync for CommentStore

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<E> SpecializationError for E[src]

impl<T> Erased for T[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> Make for T[src]

impl<T> MaybeResult for T[src]

impl<'a, T> Captures for T where
    T: ?Sized
[src]

impl<T> Erased for T