[−][src]Struct swc_common::comments::Comments
Methods
impl Comments
[src]
pub fn add_leading(&self, pos: BytePos, cmt: Vec<Comment>)
[src]
pub fn add_trailing(&self, pos: BytePos, cmt: Comment)
[src]
pub fn take_trailing_comments(&self, pos: BytePos) -> Option<Vec<Comment>>
[src]
pub fn trailing_comments(
&self,
pos: BytePos
) -> Option<Ref<BytePos, Vec<Comment>, FxBuildHasher>>
[src]
&self,
pos: BytePos
) -> Option<Ref<BytePos, Vec<Comment>, FxBuildHasher>>
pub fn take_leading_comments(&self, pos: BytePos) -> Option<Vec<Comment>>
[src]
pub fn leading_comments(
&self,
pos: BytePos
) -> Option<Ref<BytePos, Vec<Comment>, FxBuildHasher>>
[src]
&self,
pos: BytePos
) -> Option<Ref<BytePos, Vec<Comment>, FxBuildHasher>>
pub fn move_leading(&self, from: BytePos, to: BytePos)
[src]
pub fn move_trailing(&self, from: BytePos, to: BytePos)
[src]
pub fn take_all(self) -> (CommentMap, CommentMap)
[src]
Takes all the comments as (leading, trailing).
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Comments
impl Send for Comments
impl Sync for Comments
impl Unpin for Comments
impl UnwindSafe for Comments
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,