Skip to main content

FormFieldFlags

Struct FormFieldFlags 

Source
pub struct FormFieldFlags(/* private fields */);
Expand description

Form field flag bits (/Ff).

ISO 32000-1:2008, Tables 8.70 (common), 8.75 (button), 8.77 (text), 8.79 (choice). Multiple groups share bit positions because the meaning depends on the field type (e.g. bit 23 is both DoNotSpellCheck for text and DoNotSpellCheck for choice).

Implementations§

Source§

impl FormFieldFlags

Source

pub fn from_bits(bits: u32) -> Self

Create flags from a raw integer value.

Source

pub fn bits(self) -> u32

Return the raw bit value.

Source

pub fn is_read_only(self) -> bool

Bit 1: Field is read-only.

Source

pub fn is_required(self) -> bool

Bit 2: Field must have a value before the document is submitted.

Source

pub fn is_no_export(self) -> bool

Bit 3: Field value must not be exported.

Source

pub fn is_no_toggle_to_off(self) -> bool

Bit 15: Radio button — at least one must be selected at all times.

Source

pub fn is_radio(self) -> bool

Bit 16: Field is a set of radio buttons (not a checkbox).

Source

pub fn is_push_button(self) -> bool

Bit 17: Field is a pushbutton (not a checkbox or radio button).

Source

pub fn is_radios_in_unison(self) -> bool

Bit 26: Radio buttons with the same value turn on/off together. (Button fields. Note: same bit as is_rich_text for text fields.)

Source

pub fn is_multiline(self) -> bool

Bit 13: Text field allows multiple lines.

Source

pub fn is_password(self) -> bool

Bit 14: Text field is a password (display as bullets).

Source

pub fn is_file_select(self) -> bool

Bit 21: Text field value is a file-select path.

Source

pub fn is_do_not_spell_check(self) -> bool

Bit 23: Text/choice field should not be spell-checked.

Source

pub fn is_do_not_scroll(self) -> bool

Bit 24: Text field should not scroll horizontally.

Source

pub fn is_comb(self) -> bool

Bit 25: Text field uses comb formatting (requires /MaxLen).

Source

pub fn is_rich_text(self) -> bool

Bit 26: Text field contains rich text (RV entry). (Text fields. Note: same bit as is_radios_in_unison for button fields.)

Source

pub fn is_combo(self) -> bool

Bit 18: Choice field is a combo box (editable dropdown).

Source

pub fn is_combo_editable(self) -> bool

Bit 19: Combo box choice field is editable by the user.

Source

pub fn is_sort(self) -> bool

Bit 20: List box items should be sorted alphabetically.

Source

pub fn is_multi_select(self) -> bool

Bit 22: List box allows multiple simultaneous selections.

Source

pub fn is_commit_on_sel_change(self) -> bool

Bit 27: Choice field commits the value immediately on selection change.

Source

pub fn set_read_only(&mut self, v: bool)

Set or clear the read-only flag (bit 1).

Source

pub fn set_required(&mut self, v: bool)

Set or clear the required flag (bit 2).

Source

pub fn set_no_export(&mut self, v: bool)

Set or clear the no-export flag (bit 3).

Trait Implementations§

Source§

impl Clone for FormFieldFlags

Source§

fn clone(&self) -> FormFieldFlags

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FormFieldFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FormFieldFlags

Source§

fn default() -> FormFieldFlags

Returns the “default value” for a type. Read more
Source§

impl PartialEq for FormFieldFlags

Source§

fn eq(&self, other: &FormFieldFlags) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for FormFieldFlags

Source§

impl Eq for FormFieldFlags

Source§

impl StructuralPartialEq for FormFieldFlags

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more