[][src]Struct pyoxidizerlib::py_packaging::resource::ExtensionModuleData

pub struct ExtensionModuleData {
    pub name: String,
    pub init_fn: String,
    pub extension_file_suffix: String,
    pub extension_data: Option<Vec<u8>>,
    pub object_file_data: Vec<Vec<u8>>,
    pub is_package: bool,
    pub libraries: Vec<String>,
    pub library_dirs: Vec<PathBuf>,
}

Represents an extension module built during packaging.

This is like a light version of ExtensionModule.

Fields

name: String

The module name this extension module is providing.

init_fn: String

Name of the C function initializing this extension module.

extension_file_suffix: String

Filename suffix to use when writing extension module data.

extension_data: Option<Vec<u8>>

File data for linked extension module.

object_file_data: Vec<Vec<u8>>

File data for object files linked together to produce this extension module.

is_package: bool

Whether this extension module is a package.

libraries: Vec<String>

Names of libraries that we need to link when building extension module.

library_dirs: Vec<PathBuf>

Paths to directories holding libraries needed for extension module.

Methods

impl ExtensionModuleData[src]

pub fn file_name(&self) -> String[src]

The file name (without parent components) this extension module should be realized with.

pub fn package_parts(&self) -> Vec<String>[src]

Returns the part strings constituting the package name.

pub fn add_to_file_manifest(
    &self,
    manifest: &mut FileManifest,
    prefix: &str
) -> Result<()>
[src]

Trait Implementations

impl Clone for ExtensionModuleData[src]

impl Debug for ExtensionModuleData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,