pub struct SourceCode { /* private fields */ }Implementations§
Source§impl SourceCode
impl SourceCode
pub fn empty() -> Self
pub fn set_preamble(self, preamble: NonDocComments) -> Self
pub fn set_mod_decls(self, mod_decls: ModuleDeclarations) -> Self
pub fn set_mod_defs(self, mod_defs: Vec<ModDef>) -> Self
Trait Implementations§
Source§impl Clone for SourceCode
impl Clone for SourceCode
Source§fn clone(&self) -> SourceCode
fn clone(&self) -> SourceCode
Returns a duplicate of the value. Read more
1.0.0 · 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 SourceCode
impl Debug for SourceCode
Auto Trait Implementations§
impl Freeze for SourceCode
impl RefUnwindSafe for SourceCode
impl Send for SourceCode
impl Sync for SourceCode
impl Unpin for SourceCode
impl UnwindSafe for SourceCode
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