pub enum AbstractResourceLocation {
InMemory,
RelativePath,
}
Expand description
Describes the location of a Python resource.
The location is abstract because a concrete location (such as the relative path) is not specified.
Variants
InMemory
Resource is loaded from memory.
RelativePath
Resource is loaded from a relative filesystem path.
Trait Implementations
sourceimpl Clone for AbstractResourceLocation
impl Clone for AbstractResourceLocation
sourcefn clone(&self) -> AbstractResourceLocation
fn clone(&self) -> AbstractResourceLocation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AbstractResourceLocation
impl Debug for AbstractResourceLocation
sourceimpl From<&'_ ConcreteResourceLocation> for AbstractResourceLocation
impl From<&'_ ConcreteResourceLocation> for AbstractResourceLocation
sourcefn from(l: &ConcreteResourceLocation) -> Self
fn from(l: &ConcreteResourceLocation) -> Self
Performs the conversion.
sourceimpl ToString for &AbstractResourceLocation
impl ToString for &AbstractResourceLocation
sourceimpl TryFrom<&'_ str> for AbstractResourceLocation
impl TryFrom<&'_ str> for AbstractResourceLocation
impl StructuralPartialEq for AbstractResourceLocation
Auto Trait Implementations
impl RefUnwindSafe for AbstractResourceLocation
impl Send for AbstractResourceLocation
impl Sync for AbstractResourceLocation
impl Unpin for AbstractResourceLocation
impl UnwindSafe for AbstractResourceLocation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more