[][src]Struct bevy_asset::LoadContext

pub struct LoadContext<'a> { /* fields omitted */ }

Implementations

impl<'a> LoadContext<'a>[src]

pub fn path(&self) -> &Path[src]

pub fn has_labeled_asset(&self, label: &str) -> bool[src]

pub fn set_default_asset(&mut self, asset: LoadedAsset)[src]

pub fn set_labeled_asset(&mut self, label: &str, asset: LoadedAsset)[src]

pub fn get_handle<I: Into<HandleId>, T: Asset>(&self, id: I) -> Handle<T>[src]

pub async fn read_asset_bytes<P: AsRef<Path>, '_>(
    &'_ self,
    path: P
) -> Result<Vec<u8>, AssetIoError>
[src]

pub fn get_asset_metas(&self) -> Vec<AssetMeta>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for LoadContext<'a>

impl<'a> Send for LoadContext<'a>

impl<'a> Sync for LoadContext<'a>

impl<'a> Unpin for LoadContext<'a>

impl<'a> !UnwindSafe for LoadContext<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,