pub enum ContentWidthMode {
Auto,
Fixed(f32),
}Expand description
How the content (layout) width is determined.
Controls whether text reflows when the viewport resizes (web or editor style) or wraps at a fixed width (page / WYSIWYG style).
Variants§
Auto
Content width equals viewport width (divided by zoom). Text reflows on window resize — the default, typical for editors and web layout.
Fixed(f32)
Content width is fixed at a specific value, independent of the viewport. Useful for page-like WYSIWYG layout, print preview, or side panels with their own column width.
Trait Implementations§
Source§impl Clone for ContentWidthMode
impl Clone for ContentWidthMode
Source§fn clone(&self) -> ContentWidthMode
fn clone(&self) -> ContentWidthMode
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 ContentWidthMode
impl Debug for ContentWidthMode
Source§impl Default for ContentWidthMode
impl Default for ContentWidthMode
Source§fn default() -> ContentWidthMode
fn default() -> ContentWidthMode
Returns the “default value” for a type. Read more
impl Copy for ContentWidthMode
Auto Trait Implementations§
impl Freeze for ContentWidthMode
impl RefUnwindSafe for ContentWidthMode
impl Send for ContentWidthMode
impl Sync for ContentWidthMode
impl Unpin for ContentWidthMode
impl UnsafeUnpin for ContentWidthMode
impl UnwindSafe for ContentWidthMode
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