pub struct Assets<'a, T>{ /* private fields */ }Implementations§
Source§impl<'a, T> Assets<'a, T>
impl<'a, T> Assets<'a, T>
pub fn new(list: Vec<Cow<'a, T>>, parent_flags: u32) -> Self
pub fn to_owned(self) -> Vec<T>
pub fn set_baseurl(&self, baseurl: &Path)
pub fn iter(&self) -> impl Iterator<Item = &AssetRef<'_, T>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, asset: &'a T)
pub fn push_owned(&mut self, asset: T)
pub fn pull(&'a mut self, options: T::Options) -> AssetPull<'a> ⓘ
pub fn pull_with_progress( &'a mut self, options: T::Options, ) -> AssetPullWithProgress<'a>
pub fn extend(&mut self, other: Self)
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Assets<'a, T>
impl<'a, T> RefUnwindSafe for Assets<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Assets<'a, T>
impl<'a, T> Sync for Assets<'a, T>where
T: Sync,
impl<'a, T> Unpin for Assets<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Assets<'a, T>where
T: UnwindSafe + RefUnwindSafe,
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