pub enum TransformPluginMetadataContextKind {
Filename,
Env,
Cwd,
}
Expand description
Indexable key to the metadata context for a transform plugin, avoiding serialization & allocation to the host by using incremental number. TransformPluginMetadataContext does not implement Index trait, instead host does manual matching to corresponding value.
Variants
Filename
Env
Cwd
Trait Implementations
sourceimpl Clone for TransformPluginMetadataContextKind
impl Clone for TransformPluginMetadataContextKind
sourcefn clone(&self) -> TransformPluginMetadataContextKind
fn clone(&self) -> TransformPluginMetadataContextKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl From<u32> for TransformPluginMetadataContextKind
impl From<u32> for TransformPluginMetadataContextKind
sourcefn from(key: u32) -> TransformPluginMetadataContextKind
fn from(key: u32) -> TransformPluginMetadataContextKind
Converts to this type from the input type.
impl Copy for TransformPluginMetadataContextKind
Auto Trait Implementations
impl RefUnwindSafe for TransformPluginMetadataContextKind
impl Send for TransformPluginMetadataContextKind
impl Sync for TransformPluginMetadataContextKind
impl Unpin for TransformPluginMetadataContextKind
impl UnwindSafe for TransformPluginMetadataContextKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more