pub struct SourceMetadata { /* private fields */ }Expand description
Metadata extracted from source text for the formatter.
Implementations§
Source§impl SourceMetadata
impl SourceMetadata
pub fn comments(&self) -> &[SpannedComment] ⓘ
pub fn blank_lines(&self) -> &[BlankLine]
Trait Implementations§
Source§impl Clone for SourceMetadata
impl Clone for SourceMetadata
Source§fn clone(&self) -> SourceMetadata
fn clone(&self) -> SourceMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceMetadata
impl Debug for SourceMetadata
Source§impl Default for SourceMetadata
impl Default for SourceMetadata
Source§fn default() -> SourceMetadata
fn default() -> SourceMetadata
Returns the “default value” for a type. Read more
impl Eq for SourceMetadata
Source§impl PartialEq for SourceMetadata
impl PartialEq for SourceMetadata
Source§fn eq(&self, other: &SourceMetadata) -> bool
fn eq(&self, other: &SourceMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceMetadata
Auto Trait Implementations§
impl Freeze for SourceMetadata
impl RefUnwindSafe for SourceMetadata
impl Send for SourceMetadata
impl Sync for SourceMetadata
impl Unpin for SourceMetadata
impl UnsafeUnpin for SourceMetadata
impl UnwindSafe for SourceMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.