pub struct Page<P: Element, D: Fn(&mut DecorationElements<'_>, usize, usize)> {
pub primary: P,
pub border_left: f32,
pub border_right: f32,
pub border_top: f32,
pub border_bottom: f32,
pub decoration_elements: D,
}Fields§
§primary: P§border_left: f32§border_right: f32§border_top: f32§border_bottom: f32§decoration_elements: DTrait Implementations§
Source§impl<P: Element, D: Fn(&mut DecorationElements<'_>, usize, usize)> Element for Page<P, D>
impl<P: Element, D: Fn(&mut DecorationElements<'_>, usize, usize)> Element for Page<P, D>
fn first_location_usage( &self, ctx: FirstLocationUsageCtx<'_>, ) -> FirstLocationUsage
fn measure(&self, ctx: MeasureCtx<'_>) -> ElementSize
fn draw(&self, ctx: DrawCtx<'_, '_>) -> ElementSize
fn with_padding_top(self, padding: f32) -> Padding<Self>where
Self: Sized,
fn with_vertical_padding(self, padding: f32) -> Padding<Self>where
Self: Sized,
fn debug(self, color: u8) -> Debug<Self>where
Self: Sized,
Auto Trait Implementations§
impl<P, D> Freeze for Page<P, D>
impl<P, D> RefUnwindSafe for Page<P, D>where
P: RefUnwindSafe,
D: RefUnwindSafe,
impl<P, D> Send for Page<P, D>
impl<P, D> Sync for Page<P, D>
impl<P, D> Unpin for Page<P, D>
impl<P, D> UnwindSafe for Page<P, D>where
P: UnwindSafe,
D: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§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.