pub struct WinEntry { /* private fields */ }
Expand description
A struct used to pass initial Entry
information to the
win_entries()
function.
Implementations§
Source§impl WinEntry
impl WinEntry
Sourcepub fn new(text: &str, value: &str, flags: i32) -> WinEntry
pub fn new(text: &str, value: &str, flags: i32) -> WinEntry
Create a new WinEntry
.
text
- The text to display as theEntry
field label.value
- The initial value of theEntry
field.flags
- The settings flags for theEntry
.
Sourcepub fn value(&self) -> &str
pub fn value(&self) -> &str
Get the value of the corresponding Entry
.
This is either the inital value
set when the WinEntry
is created,
or the user entered data provided by the
win_entries()
function if that has been run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WinEntry
impl RefUnwindSafe for WinEntry
impl Send for WinEntry
impl Sync for WinEntry
impl Unpin for WinEntry
impl UnwindSafe for WinEntry
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