pub enum ChoiceKind {
ComboBox,
EditableCombo,
ListBox,
MultiSelectListBox,
}Expand description
Sub-kind of a choice (/Ch) field, derived from its flags word.
AcroForm models combo boxes and list boxes as the same field type;
the four variants below distinguish the visual presentation and
selection semantics. Use choice_kind to derive this enum from a
FieldFlags value.
Variants§
ComboBox
Closed-list combo box: pick one of the predefined /Opt entries.
Free-text input not allowed. (Combo flag set; Edit clear.)
EditableCombo
Combo box that also accepts free-text input not in the option list.
Useful for “common cities, but type your own” patterns.
(Combo and Edit both set.)
ListBox
Single-selection list box; one option visible-and-selected at a
time, others scroll. (Combo clear; MultiSelect clear.)
MultiSelectListBox
List box allowing multiple options to be selected simultaneously
(Ctrl/Cmd-click). The field’s value is then a name array rather
than a single name. (MultiSelect flag set.)
Trait Implementations§
Source§impl Clone for ChoiceKind
impl Clone for ChoiceKind
Source§fn clone(&self) -> ChoiceKind
fn clone(&self) -> ChoiceKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChoiceKind
impl Debug for ChoiceKind
Source§impl PartialEq for ChoiceKind
impl PartialEq for ChoiceKind
Source§fn eq(&self, other: &ChoiceKind) -> bool
fn eq(&self, other: &ChoiceKind) -> bool
self and other values to be equal, and is used by ==.impl Copy for ChoiceKind
impl Eq for ChoiceKind
impl StructuralPartialEq for ChoiceKind
Auto Trait Implementations§
impl Freeze for ChoiceKind
impl RefUnwindSafe for ChoiceKind
impl Send for ChoiceKind
impl Sync for ChoiceKind
impl Unpin for ChoiceKind
impl UnsafeUnpin for ChoiceKind
impl UnwindSafe for ChoiceKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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