pub struct TextZone {
pub kind: TextZoneKind,
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
pub text_start: usize,
pub text_len: usize,
pub children: Vec<TextZone>,
}Expand description
A text zone with bounding box and text span within the page text.
Coordinates are in the DjVu coordinate system (origin at bottom-left, y increases upward).
Use text_start and text_len to index into TextLayer::text.
Fields§
§kind: TextZoneKind§x: i32§y: i32§width: i32§height: i32§text_start: usize§text_len: usize§children: Vec<TextZone>Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextZone
impl RefUnwindSafe for TextZone
impl Send for TextZone
impl Sync for TextZone
impl Unpin for TextZone
impl UnsafeUnpin for TextZone
impl UnwindSafe for TextZone
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,
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