pub struct SourceTree { /* private fields */ }Expand description
A source tree that is used to queue files that need to be generated.
Implementations§
Source§impl SourceTree
impl SourceTree
Sourcepub fn new() -> SourceTree
pub fn new() -> SourceTree
Creates a new empty source tree that can be written to disk.
Sourcepub fn copy(&mut self, name: &str, contents: &'static [u8])
pub fn copy(&mut self, name: &str, contents: &'static [u8])
Queues a copy of the given contents to a file with the given name.
Auto Trait Implementations§
impl Freeze for SourceTree
impl RefUnwindSafe for SourceTree
impl Send for SourceTree
impl Sync for SourceTree
impl Unpin for SourceTree
impl UnwindSafe for SourceTree
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