pub enum CustomRegistry<D: Registry, C: McBufReadable + McBufWritable> {
Direct(D),
Custom(C),
}
Expand description
A registry that will either take an ID or a resource location.
Variants§
Trait Implementations§
Source§impl<D: Clone + Registry, C: Clone + McBufReadable + McBufWritable> Clone for CustomRegistry<D, C>
impl<D: Clone + Registry, C: Clone + McBufReadable + McBufWritable> Clone for CustomRegistry<D, C>
Source§fn clone(&self) -> CustomRegistry<D, C>
fn clone(&self) -> CustomRegistry<D, C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<D: Debug + Registry, C: Debug + McBufReadable + McBufWritable> Debug for CustomRegistry<D, C>
impl<D: Debug + Registry, C: Debug + McBufReadable + McBufWritable> Debug for CustomRegistry<D, C>
Source§impl<D: Hash + Registry, C: Hash + McBufReadable + McBufWritable> Hash for CustomRegistry<D, C>
impl<D: Hash + Registry, C: Hash + McBufReadable + McBufWritable> Hash for CustomRegistry<D, C>
Source§impl<D: Registry, C: McBufReadable + McBufWritable> McBufReadable for CustomRegistry<D, C>
impl<D: Registry, C: McBufReadable + McBufWritable> McBufReadable for CustomRegistry<D, C>
Source§impl<D: Registry, C: McBufReadable + McBufWritable> McBufWritable for CustomRegistry<D, C>
impl<D: Registry, C: McBufReadable + McBufWritable> McBufWritable for CustomRegistry<D, C>
Source§impl<D: PartialEq + Registry, C: PartialEq + McBufReadable + McBufWritable> PartialEq for CustomRegistry<D, C>
impl<D: PartialEq + Registry, C: PartialEq + McBufReadable + McBufWritable> PartialEq for CustomRegistry<D, C>
impl<D: Copy + Registry, C: Copy + McBufReadable + McBufWritable> Copy for CustomRegistry<D, C>
impl<D: Eq + Registry, C: Eq + McBufReadable + McBufWritable> Eq for CustomRegistry<D, C>
impl<D: Registry, C: McBufReadable + McBufWritable> StructuralPartialEq for CustomRegistry<D, C>
Auto Trait Implementations§
impl<D, C> Freeze for CustomRegistry<D, C>
impl<D, C> RefUnwindSafe for CustomRegistry<D, C>where
D: RefUnwindSafe,
C: RefUnwindSafe,
impl<D, C> Send for CustomRegistry<D, C>
impl<D, C> Sync for CustomRegistry<D, C>
impl<D, C> Unpin for CustomRegistry<D, C>
impl<D, C> UnwindSafe for CustomRegistry<D, C>where
D: UnwindSafe,
C: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)