pub struct PageBox {
pub page: u32,
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
One box on one page, in points, origin top-left.
Fields§
§page: u32Which page of the book the box is on, counting from 0.
x: f32Left edge.
y: f32Top edge.
width: f32Width in points.
height: f32Height in points.
Implementations§
Trait Implementations§
impl Copy for PageBox
Source§impl<'de> Deserialize<'de> for PageBox
impl<'de> Deserialize<'de> for PageBox
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PageBox
Auto Trait Implementations§
impl Freeze for PageBox
impl RefUnwindSafe for PageBox
impl Send for PageBox
impl Sync for PageBox
impl Unpin for PageBox
impl UnsafeUnpin for PageBox
impl UnwindSafe for PageBox
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.