ModuleDependency

Trait ModuleDependency 

Source
pub trait ModuleDependency: Dependency + SerializeDyn {
    // Required methods
    fn request(&self) -> &str;
    fn factorize_info(&self) -> &FactorizeInfo;
    fn factorize_info_mut(&mut self) -> &mut FactorizeInfo;

    // Provided methods
    fn user_request(&self) -> &str { ... }
    fn weak(&self) -> bool { ... }
    fn get_optional(&self) -> bool { ... }
    fn get_condition(&self) -> Option<DependencyCondition> { ... }
}

Required Methods§

Provided Methods§

Trait Implementations§

Source§

impl ArchiveUnsized for dyn ModuleDependency

Source§

type Archived = dyn DeserializeModuleDependency

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 DeserializeDyn<dyn ModuleDependency> for ArchivedEntryDependency

Source§

fn deserialize_dyn( &self, deserializer: &mut Deserializer, out: *mut dyn ModuleDependency, ) -> Result<(), DeserializeError>

Deserializes this value into the given out pointer.
Source§

fn deserialized_pointer_metadata(&self) -> DynMetadata<dyn ModuleDependency>

Returns the pointer metadata for the deserialized form of this type.
Source§

impl DeserializeDyn<dyn ModuleDependency> for ArchivedLoaderImportDependency

Source§

fn deserialize_dyn( &self, deserializer: &mut Deserializer, out: *mut dyn ModuleDependency, ) -> Result<(), DeserializeError>

Deserializes this value into the given out pointer.
Source§

fn deserialized_pointer_metadata(&self) -> DynMetadata<dyn ModuleDependency>

Returns the pointer metadata for the deserialized form of this type.
Source§

impl LayoutRaw for dyn ModuleDependency

Source§

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

Returns the layout of the type.
Source§

impl Pointee for dyn ModuleDependency

Source§

type Metadata = DynMetadata<dyn ModuleDependency>

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

impl SerializeUnsized<Strategy<Serializer<AlignedVec, ArenaHandle<'_>, Share>, SerializeError>> for dyn ModuleDependency

Source§

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

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

Implementors§