pub enum ItemFragment {
Fragment(Fragment),
LineBreak,
}Expand description
An item fragment for inline layout.
Represents the smallest splittable unit of inline content or a control character. Each fragment carries size information and can be positioned independently.
Variants§
Fragment(Fragment)
A splittable fragment of inline content with dimensions.
LineBreak
A control character representing a line break.
Trait Implementations§
Source§impl Clone for ItemFragment
impl Clone for ItemFragment
Source§fn clone(&self) -> ItemFragment
fn clone(&self) -> ItemFragment
Returns a duplicate 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 ItemFragment
impl Debug for ItemFragment
impl Copy for ItemFragment
Auto Trait Implementations§
impl Freeze for ItemFragment
impl RefUnwindSafe for ItemFragment
impl Send for ItemFragment
impl Sync for ItemFragment
impl Unpin for ItemFragment
impl UnsafeUnpin for ItemFragment
impl UnwindSafe for ItemFragment
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