pub enum SourceFileContents {
Template(&'static str),
Copy(&'static [u8]),
}Expand description
Represents the contents of a source file that needs to be generated.
Variants§
Template(&'static str)
Represents a template. The template will be invoked with the spec
contained in Polyhorn.toml.
Copy(&'static [u8])
Copies the contents of a file from the given slice without any string interpolation.
Auto Trait Implementations§
impl Freeze for SourceFileContents
impl RefUnwindSafe for SourceFileContents
impl Send for SourceFileContents
impl Sync for SourceFileContents
impl Unpin for SourceFileContents
impl UnwindSafe for SourceFileContents
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