[−][src]Struct extcap::Control
Control representation
Methods
impl Control
[src]
pub fn new_boolean() -> Self
[src]
Creates a new instance of Control
with 'ControlType::Boolean' type
pub fn new_button(role: ButtonRole) -> Self
[src]
Creates a new instance of Control
with 'ControlType::Button' type
pub fn new_selector() -> Self
[src]
Creates a new instance of Control
with 'ControlType::Selector' type
pub fn new_string() -> Self
[src]
Creates a new instance of Control
with 'ControlType::String' type
pub fn display(self, display: &str) -> Self
[src]
Sets the display string
pub fn default<T: ToString>(self, default: &T) -> Self
[src]
Sets the default value
pub fn range<T: ToString>(self, range: &T) -> Self
[src]
Sets the range string
pub fn validation<T: ToString>(self, validation: &T) -> Self
[src]
Sets the validation regular expression string
pub fn tooltip(self, tooltip: &str) -> Self
[src]
Sets the tooltip string
pub fn placeholder(self, placeholder: &str) -> Self
[src]
Sets the placeholder string
pub fn add_val(&mut self, val: ControlVal)
[src]
Adds a value
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,