pub struct ComponentId { /* private fields */ }Expand description
Identificador de um componente dentro do Ui.
É “geracional”: depois que o componente é liberado, o id antigo nunca mais aponta
para nada (as consultas devolvem None em vez de acessar memória inválida).
Implementations§
Trait Implementations§
Source§impl Clone for ComponentId
impl Clone for ComponentId
impl Copy for ComponentId
Source§impl Debug for ComponentId
impl Debug for ComponentId
Source§impl Display for ComponentId
impl Display for ComponentId
impl Eq for ComponentId
Source§impl From<ComponentId> for Ref
impl From<ComponentId> for Ref
Source§fn from(id: ComponentId) -> Self
fn from(id: ComponentId) -> Self
Converts to this type from the input type.
Source§impl From<ComponentId> for PropValue
impl From<ComponentId> for PropValue
Source§fn from(v: ComponentId) -> Self
fn from(v: ComponentId) -> Self
Converts to this type from the input type.
Source§impl FromSender for ComponentId
impl FromSender for ComponentId
fn from_sender(_ui: &Ui, id: ComponentId) -> Option<Self>
Source§impl Hash for ComponentId
impl Hash for ComponentId
Source§impl Ord for ComponentId
impl Ord for ComponentId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ComponentId
impl PartialEq for ComponentId
Source§impl PartialOrd for ComponentId
impl PartialOrd for ComponentId
impl StructuralPartialEq for ComponentId
Auto Trait Implementations§
impl Forget for ComponentId
impl Freeze for ComponentId
impl Move for ComponentId
impl RefUnwindSafe for ComponentId
impl Send for ComponentId
impl Sync for ComponentId
impl Unpin for ComponentId
impl UnsafeUnpin for ComponentId
impl UnwindSafe for ComponentId
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