[−][src]Struct pyoxidizerlib::py_packaging::resource::SourceModule
A Python source module agnostic of location.
Fields
name: String
source: DataLocation
is_package: bool
Methods
impl SourceModule
[src]
pub fn package(&self) -> String
[src]
pub fn as_python_resource(&self) -> PythonResource
[src]
pub fn as_bytecode_module(
&self,
optimize_level: BytecodeOptimizationLevel
) -> BytecodeModule
[src]
&self,
optimize_level: BytecodeOptimizationLevel
) -> BytecodeModule
Convert the instance to a BytecodeModule.
pub fn add_to_file_manifest(
&self,
manifest: &mut FileManifest,
prefix: &str
) -> Result<()>
[src]
&self,
manifest: &mut FileManifest,
prefix: &str
) -> Result<()>
Add this source module to a FileManifest
.
The reference added to FileManifest
is a copy of this instance and won't
reflect modification made to this instance.
Trait Implementations
impl Clone for SourceModule
[src]
fn clone(&self) -> SourceModule
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SourceModule
[src]
impl PartialEq<SourceModule> for SourceModule
[src]
fn eq(&self, other: &SourceModule) -> bool
[src]
fn ne(&self, other: &SourceModule) -> bool
[src]
impl StructuralPartialEq for SourceModule
[src]
Auto Trait Implementations
impl RefUnwindSafe for SourceModule
impl Send for SourceModule
impl Sync for SourceModule
impl Unpin for SourceModule
impl UnwindSafe for SourceModule
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,