pub enum ConcreteResourceLocation {
InMemory,
RelativePath(String),
}
Expand description
Describes the concrete location of a Python resource.
Variants
InMemory
Resource is loaded from memory.
RelativePath(String)
Reosurce is loaded from a relative filesystem path.
Trait Implementations
sourceimpl Clone for ConcreteResourceLocation
impl Clone for ConcreteResourceLocation
sourcefn clone(&self) -> ConcreteResourceLocation
fn clone(&self) -> ConcreteResourceLocation
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 ConcreteResourceLocation
impl Debug for ConcreteResourceLocation
sourceimpl From<&'_ ConcreteResourceLocation> for AbstractResourceLocation
impl From<&'_ ConcreteResourceLocation> for AbstractResourceLocation
sourcefn from(l: &ConcreteResourceLocation) -> Self
fn from(l: &ConcreteResourceLocation) -> Self
Converts to this type from the input type.
sourceimpl From<ConcreteResourceLocation> for String
impl From<ConcreteResourceLocation> for String
sourcefn from(location: ConcreteResourceLocation) -> Self
fn from(location: ConcreteResourceLocation) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ConcreteResourceLocation> for ConcreteResourceLocation
impl PartialEq<ConcreteResourceLocation> for ConcreteResourceLocation
sourcefn eq(&self, other: &ConcreteResourceLocation) -> bool
fn eq(&self, other: &ConcreteResourceLocation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConcreteResourceLocation) -> bool
fn ne(&self, other: &ConcreteResourceLocation) -> bool
This method tests for !=
.
sourceimpl ToString for ConcreteResourceLocation
impl ToString for ConcreteResourceLocation
sourceimpl TryFrom<&'_ str> for ConcreteResourceLocation
impl TryFrom<&'_ str> for ConcreteResourceLocation
impl StructuralPartialEq for ConcreteResourceLocation
Auto Trait Implementations
impl RefUnwindSafe for ConcreteResourceLocation
impl Send for ConcreteResourceLocation
impl Sync for ConcreteResourceLocation
impl Unpin for ConcreteResourceLocation
impl UnwindSafe for ConcreteResourceLocation
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