pub struct WidgetModel {
pub page_index: Option<usize>,
pub rect: [f32; 4],
pub on_state: Option<String>,
pub appearance_state: Option<String>,
}Expand description
One widget annotation of a logical field.
Fields§
§page_index: Option<usize>0-based page index, when the widget was found on a page.
rect: [f32; 4]Widget rectangle [x0, y0, x1, y1] in PDF user space.
on_state: Option<String>Button widgets: this widget’s on-state name from its /AP /N.
appearance_state: Option<String>Current appearance state (/AS), when present.
Trait Implementations§
Source§impl Clone for WidgetModel
impl Clone for WidgetModel
Source§fn clone(&self) -> WidgetModel
fn clone(&self) -> WidgetModel
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 WidgetModel
impl Debug for WidgetModel
Source§impl PartialEq for WidgetModel
impl PartialEq for WidgetModel
Source§fn eq(&self, other: &WidgetModel) -> bool
fn eq(&self, other: &WidgetModel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WidgetModel
Auto Trait Implementations§
impl Freeze for WidgetModel
impl RefUnwindSafe for WidgetModel
impl Send for WidgetModel
impl Sync for WidgetModel
impl Unpin for WidgetModel
impl UnsafeUnpin for WidgetModel
impl UnwindSafe for WidgetModel
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