struct UserSpacePosition(Position);Expand description
A position relative to the bottom left corner of a layer (“user space” in PDF terms).
Tuple Fields§
§0: PositionImplementations§
Source§impl UserSpacePosition
impl UserSpacePosition
pub fn from_layer(layer: &Layer<'_>, position: LayerPosition) -> Self
Trait Implementations§
Source§impl Deref for UserSpacePosition
impl Deref for UserSpacePosition
Source§impl From<UserSpacePosition> for Point
impl From<UserSpacePosition> for Point
Source§fn from(pos: UserSpacePosition) -> Point
fn from(pos: UserSpacePosition) -> Point
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserSpacePosition
impl RefUnwindSafe for UserSpacePosition
impl Send for UserSpacePosition
impl Sync for UserSpacePosition
impl Unpin for UserSpacePosition
impl UnwindSafe for UserSpacePosition
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§impl<T> Pointable for T
impl<T> Pointable for T
§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.