pub trait ProjectResourceExt {
// Required method
fn get_resource<R>(
&self,
resource: R,
) -> Result<Box<dyn Artifact>, PayloadError<InvalidResourceLocation>>
where R: TryInto<ResourceLocation>;
}
Required Methods§
Sourcefn get_resource<R>(
&self,
resource: R,
) -> Result<Box<dyn Artifact>, PayloadError<InvalidResourceLocation>>where
R: TryInto<ResourceLocation>,
fn get_resource<R>(
&self,
resource: R,
) -> Result<Box<dyn Artifact>, PayloadError<InvalidResourceLocation>>where
R: TryInto<ResourceLocation>,
Try to get a resource from a project.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.