pub enum WriteValue<'a> {
Text(&'a str),
Checkbox(bool),
Radio(&'a str),
Choice(&'a str),
}Expand description
The value to write, by field family.
Variants§
Text(&'a str)
Text field (/FT /Tx) value.
Checkbox(bool)
Checkbox on/off. The on-state name is resolved from the widget’s own
/AP /N keys (first non-Off key), defaulting to Yes.
Radio(&'a str)
Radio group selection by export (on-state) name. Matched byte-exactly
against each kid widget’s /AP /N keys, with WinAnsi re-encoding of
the lookup string as a fallback so Latin-1 state names (coöperatie…)
match from a Unicode caller.
Choice(&'a str)
Choice field (/FT /Ch) selection.
Trait Implementations§
Source§impl<'a> Clone for WriteValue<'a>
impl<'a> Clone for WriteValue<'a>
Source§fn clone(&self) -> WriteValue<'a>
fn clone(&self) -> WriteValue<'a>
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 moreimpl<'a> Copy for WriteValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for WriteValue<'a>
impl<'a> RefUnwindSafe for WriteValue<'a>
impl<'a> Send for WriteValue<'a>
impl<'a> Sync for WriteValue<'a>
impl<'a> Unpin for WriteValue<'a>
impl<'a> UnsafeUnpin for WriteValue<'a>
impl<'a> UnwindSafe for WriteValue<'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> 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