pub enum FrameChildRef {
Block(usize),
Table(usize),
Frame(usize),
}Expand description
One direct child of a frame, in document (flow) order.
FrameLayout stores its children in per-kind vecs (blocks, tables,
frames); this enum records how those vecs interleave in the source
flow. Incremental relayout uses it to reposition children in document
order — without it, re-stacking would group children by kind and
visually reorder e.g. a blockquote containing [block, table, block].
Variants§
Block(usize)
A direct block, identified by block_id.
Table(usize)
A direct table, identified by table_id.
Frame(usize)
A nested frame, identified by frame_id.
Trait Implementations§
Source§impl Clone for FrameChildRef
impl Clone for FrameChildRef
Source§fn clone(&self) -> FrameChildRef
fn clone(&self) -> FrameChildRef
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 moreimpl Copy for FrameChildRef
Source§impl Debug for FrameChildRef
impl Debug for FrameChildRef
impl Eq for FrameChildRef
Source§impl PartialEq for FrameChildRef
impl PartialEq for FrameChildRef
impl StructuralPartialEq for FrameChildRef
Auto Trait Implementations§
impl Freeze for FrameChildRef
impl RefUnwindSafe for FrameChildRef
impl Send for FrameChildRef
impl Sync for FrameChildRef
impl Unpin for FrameChildRef
impl UnsafeUnpin for FrameChildRef
impl UnwindSafe for FrameChildRef
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