pub struct AssetPaths<'a> { /* private fields */ }Expand description
Verified local paths of an analyzer’s provisioned assets, keyed by asset id.
Implementations§
Source§impl<'a> AssetPaths<'a>
impl<'a> AssetPaths<'a>
Sourcepub fn get(&self, id: &str) -> Option<&Path>
pub fn get(&self, id: &str) -> Option<&Path>
The path provisioned for id, or None if it was not resolved.
An adapter that asked for an asset in Adapter::asset_ids will always
find it here, because the runner refuses to start otherwise — see
ExecError::AssetsUnavailableOffline.
Trait Implementations§
Source§impl<'a> Clone for AssetPaths<'a>
impl<'a> Clone for AssetPaths<'a>
Source§fn clone(&self) -> AssetPaths<'a>
fn clone(&self) -> AssetPaths<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for AssetPaths<'a>
Source§impl<'a> Debug for AssetPaths<'a>
impl<'a> Debug for AssetPaths<'a>
Source§impl<'a> Default for AssetPaths<'a>
impl<'a> Default for AssetPaths<'a>
Source§fn default() -> AssetPaths<'a>
fn default() -> AssetPaths<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for AssetPaths<'a>
impl<'a> RefUnwindSafe for AssetPaths<'a>
impl<'a> Send for AssetPaths<'a>
impl<'a> Sync for AssetPaths<'a>
impl<'a> Unpin for AssetPaths<'a>
impl<'a> UnsafeUnpin for AssetPaths<'a>
impl<'a> UnwindSafe for AssetPaths<'a>
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