pub enum WidgetIdOrRef {
None,
Id(WidgetId),
Ref(WidgetRef),
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for WidgetIdOrRef
impl Clone for WidgetIdOrRef
source§fn clone(&self) -> WidgetIdOrRef
fn clone(&self) -> WidgetIdOrRef
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 WidgetIdOrRef
impl Debug for WidgetIdOrRef
source§impl Default for WidgetIdOrRef
impl Default for WidgetIdOrRef
source§fn default() -> WidgetIdOrRef
fn default() -> WidgetIdOrRef
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WidgetIdOrRef
impl<'de> Deserialize<'de> for WidgetIdOrRef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for WidgetIdOrRef
impl Display for WidgetIdOrRef
source§impl From<()> for WidgetIdOrRef
impl From<()> for WidgetIdOrRef
source§impl From<WidgetId> for WidgetIdOrRef
impl From<WidgetId> for WidgetIdOrRef
source§impl From<WidgetRef> for WidgetIdOrRef
impl From<WidgetRef> for WidgetIdOrRef
source§impl PartialEq for WidgetIdOrRef
impl PartialEq for WidgetIdOrRef
source§impl Prefab for WidgetIdOrRef
impl Prefab for WidgetIdOrRef
fn from_prefab(data: PrefabValue) -> Result<Self, PrefabError>
fn to_prefab(&self) -> Result<PrefabValue, PrefabError>
source§impl PropsData for WidgetIdOrRefwhere
Self: Clone,
impl PropsData for WidgetIdOrRefwhere
Self: Clone,
source§impl Serialize for WidgetIdOrRef
impl Serialize for WidgetIdOrRef
impl StructuralPartialEq for WidgetIdOrRef
Auto Trait Implementations§
impl Freeze for WidgetIdOrRef
impl RefUnwindSafe for WidgetIdOrRef
impl Send for WidgetIdOrRef
impl Sync for WidgetIdOrRef
impl Unpin for WidgetIdOrRef
impl UnwindSafe for WidgetIdOrRef
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
)