pub enum FillMode {
Full,
Percent(f32),
Padded(u16),
AsymmetricPadding(u16, u16),
}Expand description
The fill mode of a rule.
Variants§
Full
Fill the whole length of the container.
Percent(f32)
Fill a percent of the length of the container. The rule will be centered in that container.
The range is [0.0, 100.0].
Padded(u16)
Uniform offset from each end, length units.
AsymmetricPadding(u16, u16)
Different offset on each end of the rule, length units. First = top or left.
Implementations§
Trait Implementations§
impl Copy for FillMode
impl StructuralPartialEq for FillMode
Auto Trait Implementations§
impl Freeze for FillMode
impl RefUnwindSafe for FillMode
impl Send for FillMode
impl Sync for FillMode
impl Unpin for FillMode
impl UnsafeUnpin for FillMode
impl UnwindSafe for FillMode
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