pub enum ExtensionFileSourceCode {
IncludedInBinary(&'static str),
LoadedFromFsDuringSnapshot(PathBuf),
}
Variants§
IncludedInBinary(&'static str)
Source code is included in the binary produced. Either by being defined
inline, or included using include_str!()
. If you are snapshotting, this
will result in two copies of the source code being included - one in the
snapshot, the other the static string in the Extension
.
LoadedFromFsDuringSnapshot(PathBuf)
Trait Implementations§
source§impl Clone for ExtensionFileSourceCode
impl Clone for ExtensionFileSourceCode
source§fn clone(&self) -> ExtensionFileSourceCode
fn clone(&self) -> ExtensionFileSourceCode
Returns a copy 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 more