[][src]Struct extcap::Control

pub struct Control { /* fields omitted */ }

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

impl Default for Control[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.