Struct i_slint_compiler::langtype::Enumeration
source · [−]Fields
name: String
values: Vec<String>
default_value: usize
Implementations
sourceimpl Enumeration
impl Enumeration
pub fn default_value(self: Rc<Self>) -> EnumerationValue
pub fn try_value_from_string(
self: Rc<Self>,
value: &str
) -> Option<EnumerationValue>
Trait Implementations
sourceimpl Clone for Enumeration
impl Clone for Enumeration
sourcefn clone(&self) -> Enumeration
fn clone(&self) -> Enumeration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Enumeration
impl Debug for Enumeration
Auto Trait Implementations
impl RefUnwindSafe for Enumeration
impl Send for Enumeration
impl Sync for Enumeration
impl Unpin for Enumeration
impl UnwindSafe for Enumeration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more