Skip to main content

SourceTransform

Trait SourceTransform 

Source
pub trait SourceTransform:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn transform(
        self: Vc<Self>,
        source: Vc<Box<dyn Source>>,
        asset_context: Vc<Box<dyn AssetContext>>,
    ) -> Vc<Box<dyn Source>>
       where Self: Sized;
}

Required Methods§

Source

fn transform( self: Vc<Self>, source: Vc<Box<dyn Source>>, asset_context: Vc<Box<dyn AssetContext>>, ) -> Vc<Box<dyn Source>>
where Self: Sized,

Trait Implementations§

Source§

impl TraitVtablePrototype for Box<dyn SourceTransform>

Source§

const LEN: usize = 1usize

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl VcValueTrait for Box<dyn SourceTransform>

Source§

const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>

The per-trait vtable registry, populated at program load by #[ctor::ctor] functions emitted by each #[turbo_tasks::value_impl] expansion. Read more
Source§

type ValueTrait = dyn SourceTransform

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

impl Dynamic<Box<dyn SourceTransform>> for Box<dyn SourceTransform>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn SourceTransform>

Available on debug-assertions enabled only.
Source§

impl Upcast<Box<dyn SourceTransform>> for Box<dyn SourceTransform>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn SourceTransform>

Available on debug-assertions enabled only.
Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn SourceTransform>

Available on debug-assertions enabled only.

Implementors§

Source§

impl<T> SourceTransform for T
where T: Dynamic<Box<dyn SourceTransform>> + Send + Sync + NonLocalValue + ValueDebug,