#[non_exhaustive]pub struct NormalizedBoundingPoly {
pub vertices: Vec<NormalizedVertex>,
/* private fields */
}Expand description
Normalized bounding polygon for text (that might not be aligned with axis). Contains list of the corner points in clockwise order starting from top-left corner. For example, for a rectangular bounding box: When the text is horizontal it might look like: 0––1 | | 3––2
When it’s clockwise rotated 180 degrees around the top-left corner it becomes: 2––3 | | 1––0
and the vertex order will still be (0, 1, 2, 3). Note that values can be less than 0, or greater than 1 due to trignometric calculations for location of the box.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vertices: Vec<NormalizedVertex>Normalized vertices of the bounding polygon.
Implementations§
Source§impl NormalizedBoundingPoly
impl NormalizedBoundingPoly
Sourcepub fn set_vertices<T, V>(self, v: T) -> Self
pub fn set_vertices<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for NormalizedBoundingPoly
impl Clone for NormalizedBoundingPoly
Source§fn clone(&self) -> NormalizedBoundingPoly
fn clone(&self) -> NormalizedBoundingPoly
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalizedBoundingPoly
impl Debug for NormalizedBoundingPoly
Source§impl Default for NormalizedBoundingPoly
impl Default for NormalizedBoundingPoly
Source§fn default() -> NormalizedBoundingPoly
fn default() -> NormalizedBoundingPoly
Returns the “default value” for a type. Read more
Source§impl Message for NormalizedBoundingPoly
impl Message for NormalizedBoundingPoly
Source§impl PartialEq for NormalizedBoundingPoly
impl PartialEq for NormalizedBoundingPoly
Source§fn eq(&self, other: &NormalizedBoundingPoly) -> bool
fn eq(&self, other: &NormalizedBoundingPoly) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NormalizedBoundingPoly
Auto Trait Implementations§
impl Freeze for NormalizedBoundingPoly
impl RefUnwindSafe for NormalizedBoundingPoly
impl Send for NormalizedBoundingPoly
impl Sync for NormalizedBoundingPoly
impl Unpin for NormalizedBoundingPoly
impl UnsafeUnpin for NormalizedBoundingPoly
impl UnwindSafe for NormalizedBoundingPoly
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