Struct ClientReloadContext
pub struct ClientReloadContext { /* private fields */ }Expand description
Selected client asset files for one converter, with resource-pack overrides resolved. Keys have their directory and extension removed. This cannot read data files or filesystem paths. Its fields are private so the view can grow.
Implementations§
§impl ClientReloadContext
impl ClientReloadContext
pub fn list(&self) -> impl Iterator<Item = &Identifier>
pub fn list(&self) -> impl Iterator<Item = &Identifier>
Converted IDs, across all namespaces, in deterministic resource-ID order.
pub fn read(&self, id: &Identifier) -> Option<&[u8]>
pub fn read(&self, id: &Identifier) -> Option<&[u8]>
The winning bytes for a converted ID, or None outside this directory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientReloadContext
impl RefUnwindSafe for ClientReloadContext
impl Send for ClientReloadContext
impl Sync for ClientReloadContext
impl Unpin for ClientReloadContext
impl UnsafeUnpin for ClientReloadContext
impl UnwindSafe for ClientReloadContext
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