pub struct DisplayRectangle {
pub tag: Option<TagId>,
pub style: RectStyle,
pub layout: RectLayout,
}
Expand description
DisplayRectangle is the main type which the layout parsing step gets operated on.
Fields§
§tag: Option<TagId>
Some(id)
if this rectangle has a callback attached to it
Note: this is not the same as the NodeId
!
These two are completely separate numbers!
style: RectStyle
The style properties of the node, parsed
layout: RectLayout
The layout properties of the node, parsed
Implementations§
Trait Implementations§
Source§impl Clone for DisplayRectangle
impl Clone for DisplayRectangle
Source§fn clone(&self) -> DisplayRectangle
fn clone(&self) -> DisplayRectangle
Returns a copy of the value. Read more
1.0.0 · 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 DisplayRectangle
impl Debug for DisplayRectangle
Source§impl Default for DisplayRectangle
impl Default for DisplayRectangle
Source§fn default() -> DisplayRectangle
fn default() -> DisplayRectangle
Returns the “default value” for a type. Read more
Source§impl Hash for DisplayRectangle
impl Hash for DisplayRectangle
Source§impl Ord for DisplayRectangle
impl Ord for DisplayRectangle
Source§fn cmp(&self, other: &DisplayRectangle) -> Ordering
fn cmp(&self, other: &DisplayRectangle) -> Ordering
1.21.0 · 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
Source§impl PartialEq for DisplayRectangle
impl PartialEq for DisplayRectangle
Source§impl PartialOrd for DisplayRectangle
impl PartialOrd for DisplayRectangle
impl Eq for DisplayRectangle
impl StructuralPartialEq for DisplayRectangle
Auto Trait Implementations§
impl Freeze for DisplayRectangle
impl RefUnwindSafe for DisplayRectangle
impl Send for DisplayRectangle
impl Sync for DisplayRectangle
impl Unpin for DisplayRectangle
impl UnwindSafe for DisplayRectangle
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)