pub struct DrawCtx<'a, 'b> {
pub pdf: &'a mut Pdf,
pub location: Location,
pub width: WidthConstraint,
pub first_height: f32,
pub preferred_height: Option<f32>,
pub breakable: Option<BreakableDraw<'b>>,
}Fields§
§pdf: &'a mut Pdf§location: Location§width: WidthConstraint§first_height: f32§preferred_height: Option<f32>§breakable: Option<BreakableDraw<'b>>Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for DrawCtx<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for DrawCtx<'a, 'b>
impl<'a, 'b> !Send for DrawCtx<'a, 'b>
impl<'a, 'b> !Sync for DrawCtx<'a, 'b>
impl<'a, 'b> Unpin for DrawCtx<'a, 'b>
impl<'a, 'b> !UnwindSafe for DrawCtx<'a, 'b>
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 more