pub struct Ref(pub Option<ComponentId>);Expand description
Uma referência a outro componente no acesso tipado (set_popup_menu(ui, self.pmMenu)):
um handle qualquer, um id ou Ref::NONE (nenhum).
Tuple Fields§
§0: Option<ComponentId>Implementations§
Trait Implementations§
impl Copy for Ref
impl Eq for Ref
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<Option<ComponentId>> for Ref
impl From<Option<ComponentId>> for Ref
Source§fn from(id: Option<ComponentId>) -> Self
fn from(id: Option<ComponentId>) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Ref
Auto Trait Implementations§
impl Forget for Ref
impl Freeze for Ref
impl Move for Ref
impl RefUnwindSafe for Ref
impl Send for Ref
impl Sync for Ref
impl Unpin for Ref
impl UnsafeUnpin for Ref
impl UnwindSafe for Ref
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