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§
Source§impl Clone for AbstractResourceLocation
impl Clone for AbstractResourceLocation
Source§fn clone(&self) -> AbstractResourceLocation
fn clone(&self) -> AbstractResourceLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AbstractResourceLocation
impl Debug for AbstractResourceLocation
Source§impl From<&ConcreteResourceLocation> for AbstractResourceLocation
impl From<&ConcreteResourceLocation> for AbstractResourceLocation
Source§fn from(l: &ConcreteResourceLocation) -> Self
fn from(l: &ConcreteResourceLocation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AbstractResourceLocation
impl PartialEq for AbstractResourceLocation
Source§impl ToString for &AbstractResourceLocation
impl ToString for &AbstractResourceLocation
Source§impl TryFrom<&str> for AbstractResourceLocation
impl TryFrom<&str> for AbstractResourceLocation
impl Eq for AbstractResourceLocation
impl StructuralPartialEq for AbstractResourceLocation
Auto Trait Implementations§
impl Freeze for AbstractResourceLocation
impl RefUnwindSafe for AbstractResourceLocation
impl Send for AbstractResourceLocation
impl Sync for AbstractResourceLocation
impl Unpin for AbstractResourceLocation
impl UnwindSafe for AbstractResourceLocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more