pub struct HoverState<'a>(pub Pin<Rc<InnerHoverState>>, pub PhantomData<&'a InnerHoverState>);Tuple Fields§
§0: Pin<Rc<InnerHoverState>>§1: PhantomData<&'a InnerHoverState>Implementations§
Source§impl<'a> HoverState<'a>
impl<'a> HoverState<'a>
pub fn get_hovered_node_id(&self) -> i32
pub fn set_hovered_node_id(&self, value: i32)
Trait Implementations§
Source§impl<'a> Global<'a, NodeEditor> for HoverState<'a>
impl<'a> Global<'a, NodeEditor> for HoverState<'a>
Source§type StaticSelf = HoverState<'static>
type StaticSelf = HoverState<'static>
The
Self type, with a 'static lifetime.Source§fn get(component: &'a NodeEditor) -> Self
fn get(component: &'a NodeEditor) -> Self
Returns a reference to the global.
impl StrongHandle for HoverState<'static>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for HoverState<'a>
impl<'a> !Send for HoverState<'a>
impl<'a> !Sync for HoverState<'a>
impl<'a> !UnwindSafe for HoverState<'a>
impl<'a> Freeze for HoverState<'a>
impl<'a> Unpin for HoverState<'a>
impl<'a> UnsafeUnpin for HoverState<'a>
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