pub struct NodeId(pub NonZeroU64);Tuple Fields§
§0: NonZeroU64Implementations§
Trait Implementations§
Source§impl AddAssign<u64> for NodeId
impl AddAssign<u64> for NodeId
Source§fn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
Performs the
+= operation. Read moreSource§impl<'de> Deserialize<'de> for NodeId
impl<'de> Deserialize<'de> for NodeId
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 LayoutMeasurer<NodeId> for LayoutMeasurerAdapter<'_>
impl LayoutMeasurer<NodeId> for LayoutMeasurerAdapter<'_>
fn measure( &mut self, node_id: NodeId, torin_node: &Node, area_size: &Size2D, ) -> Option<(Size2D, Rc<dyn Any>)>
fn should_hook_measurement(&mut self, node_id: NodeId) -> bool
fn should_measure_inner_children(&mut self, node_id: NodeId) -> bool
fn notify_layout_references( &mut self, node_id: NodeId, area: Area, visible_area: Area, inner_sizes: Size2D, )
Source§impl Ord for NodeId
impl Ord for NodeId
Source§impl PartialOrd for NodeId
impl PartialOrd for NodeId
Source§impl TreeAdapter<NodeId> for TreeAdapterFreya<'_>
impl TreeAdapter<NodeId> for TreeAdapterFreya<'_>
impl Copy for NodeId
impl Eq for NodeId
impl NodeKey for NodeId
impl NodeKey for NodeId
impl StructuralPartialEq for NodeId
Auto Trait Implementations§
impl Freeze for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnwindSafe for NodeId
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§impl<T> ComponentProps for T
impl<T> ComponentProps for T
fn changed(&self, other: &(dyn ComponentProps + 'static)) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more