Struct fyrox_core::pool::ErasedHandle
source · pub struct ErasedHandle { /* private fields */ }
Expand description
Type-erased handle.
Implementations§
source§impl ErasedHandle
impl ErasedHandle
Trait Implementations§
source§impl Clone for ErasedHandle
impl Clone for ErasedHandle
source§fn clone(&self) -> ErasedHandle
fn clone(&self) -> ErasedHandle
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 Debug for ErasedHandle
impl Debug for ErasedHandle
source§impl Default for ErasedHandle
impl Default for ErasedHandle
source§impl<T> From<ErasedHandle> for Handle<T>
impl<T> From<ErasedHandle> for Handle<T>
source§fn from(erased_handle: ErasedHandle) -> Self
fn from(erased_handle: ErasedHandle) -> Self
Converts to this type from the input type.
source§impl<T> From<Handle<T>> for ErasedHandle
impl<T> From<Handle<T>> for ErasedHandle
source§impl Hash for ErasedHandle
impl Hash for ErasedHandle
source§impl Ord for ErasedHandle
impl Ord for ErasedHandle
source§fn cmp(&self, other: &ErasedHandle) -> Ordering
fn cmp(&self, other: &ErasedHandle) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ErasedHandle> for ErasedHandle
impl PartialEq<ErasedHandle> for ErasedHandle
source§fn eq(&self, other: &ErasedHandle) -> bool
fn eq(&self, other: &ErasedHandle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ErasedHandle> for ErasedHandle
impl PartialOrd<ErasedHandle> for ErasedHandle
source§fn partial_cmp(&self, other: &ErasedHandle) -> Option<Ordering>
fn partial_cmp(&self, other: &ErasedHandle) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Reflect for ErasedHandlewhere
Self: 'static,
u32: Reflect,
impl Reflect for ErasedHandlewhere
Self: 'static,
u32: Reflect,
fn type_name(&self) -> &'static str
fn fields_info(&self) -> Vec<FieldInfo<'_>>
fn into_any(self: Box<Self>) -> Box<dyn Any>
fn set(
&mut self,
value: Box<dyn Reflect>
) -> Result<Box<dyn Reflect>, Box<dyn Reflect>>
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn as_reflect(&self) -> &dyn Reflect
fn as_reflect_mut(&mut self) -> &mut dyn Reflect
fn fields(&self) -> Vec<&dyn Reflect>
fn fields_mut(&mut self) -> Vec<&mut dyn Reflect>
fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
source§fn set_field(
&mut self,
field: &str,
value: Box<dyn Reflect>
) -> Result<Box<dyn Reflect>, Box<dyn Reflect>>
fn set_field(
&mut self,
field: &str,
value: Box<dyn Reflect>
) -> Result<Box<dyn Reflect>, Box<dyn Reflect>>
Calls user method specified with
#[reflect(setter = ..)]
or falls back to
Reflect::field_mut
fn as_array(&self) -> Option<&dyn ReflectArray>
fn as_array_mut(&mut self) -> Option<&mut dyn ReflectArray>
fn as_list(&self) -> Option<&dyn ReflectList>
fn as_list_mut(&mut self) -> Option<&mut dyn ReflectList>
fn as_inheritable_variable(&self) -> Option<&dyn ReflectInheritableVariable>
fn as_inheritable_variable_mut(
&mut self
) -> Option<&mut dyn ReflectInheritableVariable>
impl Copy for ErasedHandle
impl Eq for ErasedHandle
impl StructuralEq for ErasedHandle
impl StructuralPartialEq for ErasedHandle
Auto Trait Implementations§
impl RefUnwindSafe for ErasedHandle
impl Send for ErasedHandle
impl Sync for ErasedHandle
impl Unpin for ErasedHandle
impl UnwindSafe for ErasedHandle
Blanket Implementations§
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere
T: 'static,
source§impl<T> ResolvePath for Twhere
T: Reflect,
impl<T> ResolvePath for Twhere
T: Reflect,
fn resolve_path<'r, 'p>(
&'r self,
path: &'p str
) -> Result<&'r (dyn Reflect + 'static), ReflectPathError<'p>>
fn resolve_path_mut<'r, 'p>(
&'r mut self,
path: &'p str
) -> Result<&'r mut (dyn Reflect + 'static), ReflectPathError<'p>>
fn get_resolve_path<'r, 'p, T: Reflect>(
&'r self,
path: &'p str
) -> Result<&'r T, ReflectPathError<'p>>
fn get_resolve_path_mut<'r, 'p, T: Reflect>(
&'r mut self,
path: &'p str
) -> Result<&'r mut T, ReflectPathError<'p>>
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.