pub struct SourceUnit {
pub uses: Vec<Use>,
pub items: Vec<Item>,
pub span: Span,
}Expand description
One .cove file. Every file in a directory is an implementation unit of the
same module.
Fields§
§uses: Vec<Use>§items: Vec<Item>§span: SpanTrait Implementations§
Source§impl Clone for SourceUnit
impl Clone for SourceUnit
Source§fn clone(&self) -> SourceUnit
fn clone(&self) -> SourceUnit
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 moreAuto Trait Implementations§
impl Freeze for SourceUnit
impl RefUnwindSafe for SourceUnit
impl Send for SourceUnit
impl Sync for SourceUnit
impl Unpin for SourceUnit
impl UnsafeUnpin for SourceUnit
impl UnwindSafe for SourceUnit
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