pub struct SupplementalAssets { /* private fields */ }Expand description
Owned caller-supplied assets keyed by scene file ID.
Implementations§
Source§impl SupplementalAssets
impl SupplementalAssets
Sourcepub fn builder() -> SupplementalAssetsBuilder
pub fn builder() -> SupplementalAssetsBuilder
Starts an empty supplemental-assets builder.
Sourcepub fn get(&self, file_id: &str) -> Option<&SupplementalAsset>
pub fn get(&self, file_id: &str) -> Option<&SupplementalAsset>
Returns the supplemental asset for a scene file ID.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&str, &SupplementalAsset)>
pub fn iter(&self) -> impl Iterator<Item = (&str, &SupplementalAsset)>
Iterates assets in ascending scene file-ID UTF-8 byte order.
Trait Implementations§
Source§impl Clone for SupplementalAssets
impl Clone for SupplementalAssets
Source§impl Debug for SupplementalAssets
impl Debug for SupplementalAssets
Source§impl Default for SupplementalAssets
impl Default for SupplementalAssets
impl Eq for SupplementalAssets
Source§impl PartialEq for SupplementalAssets
impl PartialEq for SupplementalAssets
impl StructuralPartialEq for SupplementalAssets
Auto Trait Implementations§
impl Freeze for SupplementalAssets
impl RefUnwindSafe for SupplementalAssets
impl Send for SupplementalAssets
impl Sync for SupplementalAssets
impl Unpin for SupplementalAssets
impl UnsafeUnpin for SupplementalAssets
impl UnwindSafe for SupplementalAssets
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§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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.