pub enum EuvCodeBlockSizeMode {
AutoExpand,
AutoExpandHeight,
AutoExpandWidth,
Fixed,
}Expand description
Sizing policy controlling how EuvCodeBlock expands or constrains its inline width and height.
Variants§
AutoExpand
Automatically expands width and height to display the full code block without cramped fixed-height clipping while staying bounded inside constrained parent cards or viewports with smooth horizontal scrolling.
AutoExpandHeight
Expands height automatically to show all lines without vertical clipping while constraining width to the parent container with full-area horizontal scrolling.
AutoExpandWidth
Expands width naturally to the longest code line while constraining height (max_height) with full-area vertical scrolling.
Fixed
Constrains both width and height (max_height) with full-area 2D horizontal and vertical scrolling.
Trait Implementations§
Source§impl Clone for EuvCodeBlockSizeMode
impl Clone for EuvCodeBlockSizeMode
impl Copy for EuvCodeBlockSizeMode
Source§impl Debug for EuvCodeBlockSizeMode
impl Debug for EuvCodeBlockSizeMode
Source§impl Default for EuvCodeBlockSizeMode
impl Default for EuvCodeBlockSizeMode
impl Eq for EuvCodeBlockSizeMode
Source§impl Hash for EuvCodeBlockSizeMode
impl Hash for EuvCodeBlockSizeMode
Source§impl PartialEq for EuvCodeBlockSizeMode
impl PartialEq for EuvCodeBlockSizeMode
impl StructuralPartialEq for EuvCodeBlockSizeMode
Auto Trait Implementations§
impl Forget for EuvCodeBlockSizeMode
impl Freeze for EuvCodeBlockSizeMode
impl Move for EuvCodeBlockSizeMode
impl RefUnwindSafe for EuvCodeBlockSizeMode
impl Send for EuvCodeBlockSizeMode
impl Sync for EuvCodeBlockSizeMode
impl Unpin for EuvCodeBlockSizeMode
impl UnsafeUnpin for EuvCodeBlockSizeMode
impl UnwindSafe for EuvCodeBlockSizeMode
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