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 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 moreAuto Trait Implementations§
impl Freeze for ExtensionFileSourceCode
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