pub enum ExtensionFileSourceCode {
IncludedInBinary(FastStaticString),
LoadedFromFsDuringSnapshot(&'static str),
LoadedFromMemoryDuringSnapshot(FastStaticString),
Computed(Arc<str>),
}
Variants§
IncludedInBinary(FastStaticString)
👎Deprecated: Use ExtensionFileSource::new
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(&'static str)
LoadedFromMemoryDuringSnapshot(FastStaticString)
Computed(Arc<str>)
Source code may be computed at runtime.
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ExtensionFileSourceCode
impl Send for ExtensionFileSourceCode
impl Sync for ExtensionFileSourceCode
impl Unpin for ExtensionFileSourceCode
impl UnwindSafe for ExtensionFileSourceCode
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