Skip to main content

Value

Enum Value 

Source
pub enum Value {
Show 79 variants EventResult(EventResult), FocusReason(FocusReason), KeyEvent(KeyEvent), WheelEvent(WheelEvent), PointerEvent(PointerEvent), TouchPoint(TouchPoint), TouchPoints(TouchPoints), KeyModifiers(KeyModifiers), Int(i64), Float(f64), Bool(bool), String(String), StyledText(StyledText), IntList(Vec<i64>), IntModel(VecModel<i64>), DateList(Vec<Date>), DateModel(VecModel<Date>), StringList(Vec<String>), StringModel(VecModel<String>), Record(RecordValue), RecordList(RecordList), ComboModel(ComboModel), Length(Length), Percent(Percent), Color(Color), Brush(Brush), Image(Image), ImageAsset(ImageAsset), LogLevel(LogLevel), ImageFit(ImageFit), ImageTileMode(ImageTileMode), ImageHorizontalAlignment(ImageHorizontalAlignment), ImageVerticalAlignment(ImageVerticalAlignment), ImageRendering(ImageRendering), ButtonDisplay(ButtonDisplay), LayoutAlignment(LayoutAlignment), CrossAxisAlignment(CrossAxisAlignment), Orientation(Orientation), FlickDirection(FlickDirection), FlickBoundsBehavior(FlickBoundsBehavior), FlickBoundsMovement(FlickBoundsMovement), LayoutDirection(LayoutDirection), FlexboxLayoutDirection(FlexboxLayoutDirection), FlexboxLayoutWrap(FlexboxLayoutWrap), DialInputMode(DialInputMode), ScrollBarPolicy(ScrollBarPolicy), ScrollSnapMode(ScrollSnapMode), ScrollAlignment(ScrollAlignment), TextWrap(TextWrap), MouseSelectionMode(MouseSelectionMode), InputValidity(InputValidity), TextHorizontalAlignment(TextHorizontalAlignment), TextVerticalAlignment(TextVerticalAlignment), TextOverflow(TextOverflow), InputType(InputType), InputPurpose(InputPurpose), KeyboardCapitalization(KeyboardCapitalization), ReturnKey(ReturnKey), AccessibleLive(AccessibleLive), CursorShape(CursorShape), PointerEventKind(PointerEventKind), PointerButton(PointerButton), PointerButtons(PointerButtons), ColorScheme(ColorScheme), FileDialogMode(FileDialogMode), MessageLevel(MessageLevel), MessageButtons(MessageButtons), CheckState(CheckState), DialogRole(DialogRole), StandardButtonKind(StandardButtonKind), SwipeSide(SwipeSide), DragAction(DragAction), DrawerEdge(DrawerEdge), PopupPlacement(PopupPlacement), SelectionTarget(SelectionTarget), SelectionGesture(SelectionGesture), Date(Date), Time(Time), Font(Font),
}

Variants§

§

EventResult(EventResult)

§

FocusReason(FocusReason)

§

KeyEvent(KeyEvent)

§

WheelEvent(WheelEvent)

§

PointerEvent(PointerEvent)

§

TouchPoint(TouchPoint)

§

TouchPoints(TouchPoints)

§

KeyModifiers(KeyModifiers)

§

Int(i64)

§

Float(f64)

§

Bool(bool)

§

String(String)

§

StyledText(StyledText)

§

IntList(Vec<i64>)

§

IntModel(VecModel<i64>)

A live integer list whose bindings share the same row identities.

§

DateList(Vec<Date>)

§

DateModel(VecModel<Date>)

§

StringList(Vec<String>)

§

StringModel(VecModel<String>)

A live string list whose row identities are shared by its bindings.

§

Record(RecordValue)

§

RecordList(RecordList)

§

ComboModel(ComboModel)

§

Length(Length)

§

Percent(Percent)

§

Color(Color)

§

Brush(Brush)

§

Image(Image)

§

ImageAsset(ImageAsset)

§

LogLevel(LogLevel)

§

ImageFit(ImageFit)

§

ImageTileMode(ImageTileMode)

§

ImageHorizontalAlignment(ImageHorizontalAlignment)

§

ImageVerticalAlignment(ImageVerticalAlignment)

§

ImageRendering(ImageRendering)

§

ButtonDisplay(ButtonDisplay)

§

LayoutAlignment(LayoutAlignment)

§

CrossAxisAlignment(CrossAxisAlignment)

§

Orientation(Orientation)

§

FlickDirection(FlickDirection)

§

FlickBoundsBehavior(FlickBoundsBehavior)

§

FlickBoundsMovement(FlickBoundsMovement)

§

LayoutDirection(LayoutDirection)

§

FlexboxLayoutDirection(FlexboxLayoutDirection)

§

FlexboxLayoutWrap(FlexboxLayoutWrap)

§

DialInputMode(DialInputMode)

§

ScrollBarPolicy(ScrollBarPolicy)

§

ScrollSnapMode(ScrollSnapMode)

§

ScrollAlignment(ScrollAlignment)

§

TextWrap(TextWrap)

§

MouseSelectionMode(MouseSelectionMode)

§

InputValidity(InputValidity)

§

TextHorizontalAlignment(TextHorizontalAlignment)

§

TextVerticalAlignment(TextVerticalAlignment)

§

TextOverflow(TextOverflow)

§

InputType(InputType)

§

InputPurpose(InputPurpose)

§

KeyboardCapitalization(KeyboardCapitalization)

§

ReturnKey(ReturnKey)

§

AccessibleLive(AccessibleLive)

§

CursorShape(CursorShape)

§

PointerEventKind(PointerEventKind)

§

PointerButton(PointerButton)

§

PointerButtons(PointerButtons)

§

ColorScheme(ColorScheme)

§

FileDialogMode(FileDialogMode)

§

MessageLevel(MessageLevel)

§

MessageButtons(MessageButtons)

§

CheckState(CheckState)

§

DialogRole(DialogRole)

§

StandardButtonKind(StandardButtonKind)

§

SwipeSide(SwipeSide)

§

DragAction(DragAction)

§

DrawerEdge(DrawerEdge)

§

PopupPlacement(PopupPlacement)

§

SelectionTarget(SelectionTarget)

§

SelectionGesture(SelectionGesture)

§

Date(Date)

§

Time(Time)

§

Font(Font)

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Value

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<AccessibleLive> for Value

Source§

fn from(value: AccessibleLive) -> Self

Converts to this type from the input type.
Source§

impl From<Brush> for Value

Source§

fn from(value: Brush) -> Self

Converts to this type from the input type.
Source§

impl From<ButtonDisplay> for Value

Source§

fn from(value: ButtonDisplay) -> Self

Converts to this type from the input type.
Source§

impl From<CheckState> for Value

Source§

fn from(value: CheckState) -> Self

Converts to this type from the input type.
Source§

impl From<Color> for Value

Source§

fn from(value: Color) -> Self

Converts to this type from the input type.
Source§

impl From<ColorScheme> for Value

Source§

fn from(value: ColorScheme) -> Self

Converts to this type from the input type.
Source§

impl From<CrossAxisAlignment> for Value

Source§

fn from(value: CrossAxisAlignment) -> Self

Converts to this type from the input type.
Source§

impl From<CursorShape> for Value

Source§

fn from(value: CursorShape) -> Self

Converts to this type from the input type.
Source§

impl From<Date> for Value

Source§

fn from(value: Date) -> Self

Converts to this type from the input type.
Source§

impl From<DialInputMode> for Value

Source§

fn from(value: DialInputMode) -> Self

Converts to this type from the input type.
Source§

impl From<DialogRole> for Value

Source§

fn from(value: DialogRole) -> Self

Converts to this type from the input type.
Source§

impl From<DragAction> for Value

Source§

fn from(value: DragAction) -> Self

Converts to this type from the input type.
Source§

impl From<DrawerEdge> for Value

Source§

fn from(value: DrawerEdge) -> Self

Converts to this type from the input type.
Source§

impl From<FileDialogMode> for Value

Source§

fn from(value: FileDialogMode) -> Self

Converts to this type from the input type.
Source§

impl From<FlexboxLayoutDirection> for Value

Source§

fn from(value: FlexboxLayoutDirection) -> Self

Converts to this type from the input type.
Source§

impl From<FlexboxLayoutWrap> for Value

Source§

fn from(value: FlexboxLayoutWrap) -> Self

Converts to this type from the input type.
Source§

impl From<FlickBoundsBehavior> for Value

Source§

fn from(value: FlickBoundsBehavior) -> Self

Converts to this type from the input type.
Source§

impl From<FlickBoundsMovement> for Value

Source§

fn from(value: FlickBoundsMovement) -> Self

Converts to this type from the input type.
Source§

impl From<FlickDirection> for Value

Source§

fn from(value: FlickDirection) -> Self

Converts to this type from the input type.
Source§

impl From<Font> for Value

Source§

fn from(value: Font) -> Self

Converts to this type from the input type.
Source§

impl From<Image> for Value

Source§

fn from(value: Image) -> Self

Converts to this type from the input type.
Source§

impl From<ImageFit> for Value

Source§

fn from(value: ImageFit) -> Self

Converts to this type from the input type.
Source§

impl From<ImageHorizontalAlignment> for Value

Source§

fn from(value: ImageHorizontalAlignment) -> Self

Converts to this type from the input type.
Source§

impl From<ImageRendering> for Value

Source§

fn from(value: ImageRendering) -> Self

Converts to this type from the input type.
Source§

impl From<ImageTileMode> for Value

Source§

fn from(value: ImageTileMode) -> Self

Converts to this type from the input type.
Source§

impl From<ImageVerticalAlignment> for Value

Source§

fn from(value: ImageVerticalAlignment) -> Self

Converts to this type from the input type.
Source§

impl From<InputPurpose> for Value

Source§

fn from(value: InputPurpose) -> Self

Converts to this type from the input type.
Source§

impl From<InputType> for Value

Source§

fn from(value: InputType) -> Self

Converts to this type from the input type.
Source§

impl From<InputValidity> for Value

Source§

fn from(value: InputValidity) -> Self

Converts to this type from the input type.
Source§

impl From<KeyboardCapitalization> for Value

Source§

fn from(value: KeyboardCapitalization) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutAlignment> for Value

Source§

fn from(value: LayoutAlignment) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutDirection> for Value

Source§

fn from(value: LayoutDirection) -> Self

Converts to this type from the input type.
Source§

impl From<Length> for Value

Source§

fn from(value: Length) -> Self

Converts to this type from the input type.
Source§

impl From<LogLevel> for Value

Source§

fn from(value: LogLevel) -> Self

Converts to this type from the input type.
Source§

impl From<MessageButtons> for Value

Source§

fn from(value: MessageButtons) -> Self

Converts to this type from the input type.
Source§

impl From<MessageLevel> for Value

Source§

fn from(value: MessageLevel) -> Self

Converts to this type from the input type.
Source§

impl From<MouseSelectionMode> for Value

Source§

fn from(value: MouseSelectionMode) -> Self

Converts to this type from the input type.
Source§

impl From<Orientation> for Value

Source§

fn from(value: Orientation) -> Self

Converts to this type from the input type.
Source§

impl From<Percent> for Value

Source§

fn from(value: Percent) -> Self

Converts to this type from the input type.
Source§

impl From<PointerButton> for Value

Source§

fn from(value: PointerButton) -> Self

Converts to this type from the input type.
Source§

impl From<PointerButtons> for Value

Source§

fn from(value: PointerButtons) -> Self

Converts to this type from the input type.
Source§

impl From<PointerEventKind> for Value

Source§

fn from(value: PointerEventKind) -> Self

Converts to this type from the input type.
Source§

impl From<PopupPlacement> for Value

Source§

fn from(value: PopupPlacement) -> Self

Converts to this type from the input type.
Source§

impl From<ReturnKey> for Value

Source§

fn from(value: ReturnKey) -> Self

Converts to this type from the input type.
Source§

impl From<ScrollAlignment> for Value

Source§

fn from(value: ScrollAlignment) -> Self

Converts to this type from the input type.
Source§

impl From<ScrollBarPolicy> for Value

Source§

fn from(value: ScrollBarPolicy) -> Self

Converts to this type from the input type.
Source§

impl From<ScrollSnapMode> for Value

Source§

fn from(value: ScrollSnapMode) -> Self

Converts to this type from the input type.
Source§

impl From<SelectionGesture> for Value

Source§

fn from(value: SelectionGesture) -> Self

Converts to this type from the input type.
Source§

impl From<SelectionTarget> for Value

Source§

fn from(value: SelectionTarget) -> Self

Converts to this type from the input type.
Source§

impl From<StandardButtonKind> for Value

Source§

fn from(value: StandardButtonKind) -> Self

Converts to this type from the input type.
Source§

impl From<String> for Value

Source§

fn from(value: String) -> Self

Converts to this type from the input type.
Source§

impl From<StyledText> for Value

Source§

fn from(value: StyledText) -> Self

Converts to this type from the input type.
Source§

impl From<SwipeSide> for Value

Source§

fn from(value: SwipeSide) -> Self

Converts to this type from the input type.
Source§

impl From<TextHorizontalAlignment> for Value

Source§

fn from(value: TextHorizontalAlignment) -> Self

Converts to this type from the input type.
Source§

impl From<TextOverflow> for Value

Source§

fn from(value: TextOverflow) -> Self

Converts to this type from the input type.
Source§

impl From<TextVerticalAlignment> for Value

Source§

fn from(value: TextVerticalAlignment) -> Self

Converts to this type from the input type.
Source§

impl From<TextWrap> for Value

Source§

fn from(value: TextWrap) -> Self

Converts to this type from the input type.
Source§

impl From<Time> for Value

Source§

fn from(value: Time) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<String>> for Value

Source§

fn from(value: Vec<String>) -> Self

Converts to this type from the input type.
Source§

impl From<VecModel<Date>> for Value

Source§

fn from(model: VecModel<Date>) -> Self

Converts to this type from the input type.
Source§

impl From<VecModel<String>> for Value

Source§

fn from(model: VecModel<String>) -> Self

Converts to this type from the input type.
Source§

impl From<VecModel<i64>> for Value

Source§

fn from(model: VecModel<i64>) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for Value

Source§

fn from(value: bool) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(value: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Value

Source§

fn from(value: i64) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Value

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Value

Auto Trait Implementations§

§

impl !RefUnwindSafe for Value

§

impl !Send for Value

§

impl !Sync for Value

§

impl !UnwindSafe for Value

§

impl Forget for Value

§

impl Freeze for Value

§

impl Move for Value

§

impl Unpin for Value

§

impl UnsafeUnpin for Value

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AnyEq for T
where T: Any + PartialEq,

Source§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more