pub struct PdfFormFieldOptions<'a> { /* private fields */ }Expand description
A collection of all selectable options in a list box or check box form field widget.
Implementations§
Source§impl<'a> PdfFormFieldOptions<'a>
impl<'a> PdfFormFieldOptions<'a>
Sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfFormFieldOptions collection.
Sourcepub fn len(&self) -> PdfFormFieldOptionIndex
pub fn len(&self) -> PdfFormFieldOptionIndex
Returns the number of options in this PdfFormFieldOptions collection.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfFormFieldOptions collection is empty.
Sourcepub fn as_range(&self) -> Range<PdfFormFieldOptionIndex>
pub fn as_range(&self) -> Range<PdfFormFieldOptionIndex>
Returns a Range from 0..(number of options) for this PdfFormFieldOptions collection.
Sourcepub fn as_range_inclusive(&self) -> RangeInclusive<PdfFormFieldOptionIndex>
pub fn as_range_inclusive(&self) -> RangeInclusive<PdfFormFieldOptionIndex>
Returns an inclusive Range from 0..=(number of options - 1) for this
PdfFormFieldOptions collection.
Sourcepub fn get(
&self,
index: PdfFormFieldOptionIndex,
) -> Result<PdfFormFieldOption, PdfiumError>
pub fn get( &self, index: PdfFormFieldOptionIndex, ) -> Result<PdfFormFieldOption, PdfiumError>
Returns a single PdfFormFieldOption from this PdfFormFieldOptions collection.
Sourcepub fn iter(&self) -> PdfFormFieldOptionsIterator<'_> ⓘ
pub fn iter(&self) -> PdfFormFieldOptionsIterator<'_> ⓘ
Returns an iterator over all the options in this PdfFormFieldOptions collection.
Auto Trait Implementations§
impl<'a> Freeze for PdfFormFieldOptions<'a>
impl<'a> !RefUnwindSafe for PdfFormFieldOptions<'a>
impl<'a> !Send for PdfFormFieldOptions<'a>
impl<'a> !Sync for PdfFormFieldOptions<'a>
impl<'a> Unpin for PdfFormFieldOptions<'a>
impl<'a> !UnwindSafe for PdfFormFieldOptions<'a>
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> 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