pub enum Inset {
Auto,
Points(f32),
Percent(f32),
}Expand description
How far one edge of a positioned box sits from the matching edge of
the page area, from top, right, bottom and left.
Variants§
Auto
auto: the opposite edge places the box. Where that edge is
auto as well, the box sits at the edge of the page area.
Points(f32)
A length in points, negative where the box reaches into the margin.
Percent(f32)
A percentage of the page area’s width, for left and right,
or of its height, for top and bottom. It stays a percentage
until layout resolves it against the page area.
Implementations§
Trait Implementations§
impl Copy for Inset
impl StructuralPartialEq for Inset
Auto Trait Implementations§
impl Freeze for Inset
impl RefUnwindSafe for Inset
impl Send for Inset
impl Sync for Inset
impl Unpin for Inset
impl UnsafeUnpin for Inset
impl UnwindSafe for Inset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.