Skip to main content

DependencyCodeGeneration

Trait DependencyCodeGeneration 

Source
pub trait DependencyCodeGeneration:
    Debug
    + DynClone
    + Sync
    + Send
    + AsAny
    + SerializeDyn {
    // Provided methods
    fn update_hash(
        &self,
        _hasher: &mut dyn Hasher,
        _compilation: &Compilation,
        _runtime: Option<&RuntimeSpec>,
    ) { ... }
    fn dependency_template(&self) -> Option<DependencyTemplateType> { ... }
}

Provided Methods§

Source

fn update_hash( &self, _hasher: &mut dyn Hasher, _compilation: &Compilation, _runtime: Option<&RuntimeSpec>, )

Source

fn dependency_template(&self) -> Option<DependencyTemplateType>

Trait Implementations§

Source§

impl ArchiveUnsized for dyn DependencyCodeGeneration

Source§

type Archived = dyn DeserializeDependencyCodeGeneration

The archived counterpart of this type. Unlike Archive, it may be unsized. Read more
Source§

fn archived_metadata(&self) -> ArchivedMetadata<Self>

Creates the archived version of the metadata for this value.
Source§

impl LayoutRaw for dyn DependencyCodeGeneration

Source§

fn layout_raw( metadata: <Self as Pointee>::Metadata, ) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl Pointee for dyn DependencyCodeGeneration

Source§

type Metadata = DynMetadata<dyn DependencyCodeGeneration>

The metadata type for pointers and references to this type.
Source§

impl SerializeUnsized<Strategy<Serializer<AlignedVec, ArenaHandle<'_>, Share>, Error>> for dyn DependencyCodeGeneration

Source§

fn serialize_unsized( &self, serializer: &mut Serializer<'_>, ) -> Result<usize, Error>

Writes the object and returns the position of the archived type.

Implementors§