pub struct NodeMeasurement {
pub node: NodeId,
pub size: Option<CanvasSize>,
pub handles: Vec<MeasuredHandle>,
}Expand description
Renderer-neutral measurement facts for one node.
Fields§
§node: NodeId§size: Option<CanvasSize>§handles: Vec<MeasuredHandle>Implementations§
Source§impl NodeMeasurement
impl NodeMeasurement
pub fn new(node: NodeId) -> Self
pub fn with_size(self, size: Option<CanvasSize>) -> Self
pub fn with_handles( self, handles: impl IntoIterator<Item = MeasuredHandle>, ) -> Self
Trait Implementations§
Source§impl Clone for NodeMeasurement
impl Clone for NodeMeasurement
Source§fn clone(&self) -> NodeMeasurement
fn clone(&self) -> NodeMeasurement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeMeasurement
impl Debug for NodeMeasurement
Source§impl<'de> Deserialize<'de> for NodeMeasurement
impl<'de> Deserialize<'de> for NodeMeasurement
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 PartialEq for NodeMeasurement
impl PartialEq for NodeMeasurement
Source§fn eq(&self, other: &NodeMeasurement) -> bool
fn eq(&self, other: &NodeMeasurement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeMeasurement
impl Serialize for NodeMeasurement
impl StructuralPartialEq for NodeMeasurement
Auto Trait Implementations§
impl Freeze for NodeMeasurement
impl RefUnwindSafe for NodeMeasurement
impl Send for NodeMeasurement
impl Sync for NodeMeasurement
impl Unpin for NodeMeasurement
impl UnsafeUnpin for NodeMeasurement
impl UnwindSafe for NodeMeasurement
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