pub struct File {
pub items: Vec<Item>,
}Expand description
Parsed Draxl file.
Fields§
§items: Vec<Item>Implementations§
Source§impl File
impl File
Sourcepub fn without_spans(&self) -> Self
pub fn without_spans(&self) -> Self
Returns a clone with all spans stripped for semantic comparisons.
Sourcepub fn clear_spans(&mut self)
pub fn clear_spans(&mut self)
Removes span data from the file in place.
Sourcepub fn to_json_pretty(&self) -> String
pub fn to_json_pretty(&self) -> String
Emits deterministic JSON for the file.
Trait Implementations§
impl Eq for File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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