Enum FluidIdentity
#[non_exhaustive]pub enum FluidIdentity {
Resolved(FluidKey),
Unresolved(UnresolvedFluid),
}Expand description
A registered fluid, or an opaque retained name from unavailable content.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Resolved(FluidKey)
A registered fluid.
Unresolved(UnresolvedFluid)
A name retained verbatim until its declaring mod returns.
Implementations§
§impl FluidIdentity
impl FluidIdentity
Trait Implementations§
§impl Clone for FluidIdentity
impl Clone for FluidIdentity
§fn clone(&self) -> FluidIdentity
fn clone(&self) -> FluidIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FluidIdentity
§impl Debug for FluidIdentity
impl Debug for FluidIdentity
impl Eq for FluidIdentity
§impl PartialEq for FluidIdentity
impl PartialEq for FluidIdentity
impl StructuralPartialEq for FluidIdentity
Auto Trait Implementations§
impl Freeze for FluidIdentity
impl RefUnwindSafe for FluidIdentity
impl Send for FluidIdentity
impl Sync for FluidIdentity
impl Unpin for FluidIdentity
impl UnsafeUnpin for FluidIdentity
impl UnwindSafe for FluidIdentity
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