pub struct ResourceLocation { /* private fields */ }
Expand description
A resource location in assemble
Implementations§
Source§impl ResourceLocation
impl ResourceLocation
pub fn new<'a, I>(project: ProjectId, configuration: I) -> ResourceLocation
pub fn find<'a, P, I>( project: &P, path: &str, configuration: I, ) -> Result<ResourceLocation, InvalidResourceLocation>
pub fn project(&self) -> &ProjectId
pub fn configuration(&self) -> Option<&str>
Trait Implementations§
Source§impl Buildable for ResourceLocation
impl Buildable for ResourceLocation
Source§fn get_dependencies(
&self,
project: &Project,
) -> Result<HashSet<TaskId>, PayloadError<ProjectError>>
fn get_dependencies( &self, project: &Project, ) -> Result<HashSet<TaskId>, PayloadError<ProjectError>>
Gets the dependencies required to build this task
Source§impl Clone for ResourceLocation
impl Clone for ResourceLocation
Source§fn clone(&self) -> ResourceLocation
fn clone(&self) -> ResourceLocation
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 ResourceLocation
impl Debug for ResourceLocation
Source§impl Hash for ResourceLocation
impl Hash for ResourceLocation
Source§impl PartialEq for ResourceLocation
impl PartialEq for ResourceLocation
Source§impl TryFrom<Url> for ResourceLocation
impl TryFrom<Url> for ResourceLocation
Source§type Error = InvalidResourceLocation
type Error = InvalidResourceLocation
The type returned in the event of a conversion error.
Source§fn try_from(
value: Url,
) -> Result<ResourceLocation, <ResourceLocation as TryFrom<Url>>::Error>
fn try_from( value: Url, ) -> Result<ResourceLocation, <ResourceLocation as TryFrom<Url>>::Error>
Performs the conversion.
impl Eq for ResourceLocation
impl StructuralPartialEq for ResourceLocation
Auto Trait Implementations§
impl Freeze for ResourceLocation
impl RefUnwindSafe for ResourceLocation
impl Send for ResourceLocation
impl Sync for ResourceLocation
impl Unpin for ResourceLocation
impl UnwindSafe for ResourceLocation
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<B> GetBuildable for B
impl<B> GetBuildable for B
Source§fn as_buildable(&self) -> BuildableObject
fn as_buildable(&self) -> BuildableObject
Returns a dependency which contains the tasks which build this object.
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<B> IntoBuildable for Bwhere
B: Buildable,
impl<B> IntoBuildable for Bwhere
B: Buildable,
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