Trait ToValue

pub trait ToValue {
    // Required methods
    fn to_value(&self) -> Value;
    fn value_type(&self) -> Type;
}
Expand description

Trait to convert a value to a Value.

Similar to other common conversion traits, the following invariants are guaranteed:

  • Invertibility: x.to_value().get().unwrap() == x. In words, FromValue is the inverse of ToValue.
  • Idempotence: x.to_value() == x.to_value().to_value(). In words, applying ToValue multiple times yields the same result as applying it once. Idempotence also applies the other way around: value.get::<Value>() is a no-op.

There is also the possibility to wrap values within values, see BoxedValue. All (un-)boxing needs to be done manually, and will be preserved under the conversion methods.

The conversion methods may cause values to be cloned, which may result in reference counter changes or heap allocations depending on the source and target type.

Required Methods§

fn to_value(&self) -> Value

Convert a value to a Value.

fn value_type(&self) -> Type

Returns the type identifier of self.

This is the type of the value to be returned by to_value.

Implementations on Foreign Types§

§

impl ToValue for &str

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for &Path

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for &[&str]

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for bool

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for char

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for f32

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for f64

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for i8

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for i32

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for i64

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for *mut c_void

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for str

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for u8

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for u32

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for u64

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Box<str>

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for String

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Vec<GString>

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Vec<String>

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NonZero<i8>

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NonZero<i32>

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NonZero<i64>

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NonZero<u8>

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NonZero<u32>

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NonZero<u64>

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NonNull<c_void>

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Path

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PathBuf

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleAnnouncementPriority

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleAutocomplete

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleInvalidState

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessiblePlatformState

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleProperty

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleRelation

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleRole

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleSort

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleState

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleTextContentChange

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleTextGranularity

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AccessibleTristate

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Align

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Alignment

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AnchorHints

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Antialias

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AppInfoCreateFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ApplicationFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ApplicationInhibitFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ArrowType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AskPasswordFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AssistantPageType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AttrType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AxisFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for AxisUse

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BaselinePosition

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BaselineShift

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BidiType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BlendMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BlendNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BlurNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BorderNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BorderStyle

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BuilderClosureFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BuilderError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BusNameOwnerFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BusNameWatcherFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for BusType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ButtonsType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for CairoNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for CellRendererAccelMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for CellRendererMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for CellRendererState

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for CicpRange

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ClipNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ClosureExpression

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Collation

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ColorMatrixNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ColorNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Colorspace

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ConicGradientNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ConstantExpression

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ConstraintAttribute

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ConstraintRelation

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ConstraintStrength

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ConstraintVflParserError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ContainerNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Content

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ContentFit

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Context

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ConverterFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ConverterResult

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Corner

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for CornerType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for CoverageLevel

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for CredentialsType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for CrossFadeNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for CrossingMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusCallFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusCapabilityFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusConnectionFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusInterfaceSkeletonFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusMessageByteOrder

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusMessageFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusMessageHeaderField

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusMessageType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusObjectManagerClientFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusPropertyInfoFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusProxyFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusSendMessageFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusServerFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusSignalFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DBusSubtreeFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DataStreamByteOrder

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DataStreamNewlineType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DebugFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DebugNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DeleteType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Device

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DevicePadFeature

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DeviceToolType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DeviceType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DialogError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DialogFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Direction

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DirectionType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DmabufError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DragAction

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DragCancelReason

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DriveStartFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for DriveStartStopType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for EditableProperties

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for EllipsizeMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for EmblemOrigin

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for EntryIconPosition

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for EventControllerScrollFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for EventSequenceState

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for EventType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Expression

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Extend

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileAttributeInfoFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileAttributeStatus

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileAttributeType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileChooserAction

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileChooserError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileCopyFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileCreateFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileMeasureFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileMonitorEvent

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileMonitorFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileQueryInfoFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FileType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FilesystemPreviewType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FillNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FillRule

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FillRule

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Filter

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FilterChange

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FilterMatch

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FontChooserLevel

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FontLevel

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FontMask

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FontRendering

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FontScale

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FontSlant

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FontType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FontWeight

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Format

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FrameClockPhase

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for FullscreenMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for GLAPI

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for GLError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for GLShaderNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for GLUniformType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for GraphicsOffloadEnabled

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Gravity

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Gravity

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for GravityHint

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for HintMetrics

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for HintStyle

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for IOErrorEnum

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for IOModuleScopeFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for IOStreamSpliceFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for IconLookupFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for IconSize

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for IconThemeError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for IconViewDropPosition

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ImageSurface

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ImageType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for InputHints

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for InputPurpose

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for InputSource

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for InscriptionOverflow

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for InsetShadowNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for InterpType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Justification

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Key

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for KeyMatch

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for LayoutDeserializeFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for LayoutSerializeFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for LevelBarMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for License

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for LineCap

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for LineCap

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for LineJoin

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for LineJoin

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for LinearGradientNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ListScrollFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ListTabBehavior

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for MaskMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for MaskNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Matrix

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for MemoryFormat

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for MemoryMonitorWarningLevel

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for MessageType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ModifierType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for MountMountFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for MountOperationResult

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for MountUnmountFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for MovementStep

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NaturalWrapMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NetworkConnectivity

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NotebookTab

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NotificationPriority

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NotifyType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for NumberUpLayout

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ObjectExpression

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for OpacityNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Operator

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Ordering

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Orientation

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for OutputStreamSpliceFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for OutsetShadowNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Overflow

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Overline

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PackType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PadActionType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PageOrientation

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PageSet

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PaintableFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PanDirection

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PasswordSave

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PathDataType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PathDirection

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PathForeachFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PathOperation

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PatternType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PickFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PixbufAlphaMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PixbufError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PixbufRotation

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PolicyType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PollableReturn

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PopoverMenuFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PositionType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PrintCapabilities

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PrintDuplex

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PrintError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PrintOperationAction

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PrintOperationResult

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PrintPages

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PrintQuality

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PrintStatus

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PropagationLimit

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PropagationPhase

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for PropertyExpression

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RadialGradientNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RecentManagerError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RecordingSurface

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Rectangle

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RectangleInt

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Region

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RegionOverlap

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RenderNodeType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RenderPart

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RepeatNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RepeatingLinearGradientNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RepeatingRadialGradientNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ResolverError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ResolverNameLookupFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ResolverRecordType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ResourceError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ResourceFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ResourceLookupFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ResponseType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RevealerTransitionType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for RoundedClipNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ScalingFilter

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Script

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ScrollDirection

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ScrollStep

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ScrollType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ScrollUnit

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ScrollablePolicy

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SeatCapabilities

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SelectionMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SensitivityType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SerializationError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SettingsBindFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ShadowNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ShapeFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ShortcutActionFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ShortcutScope

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ShortcutType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ShowFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SizeGroupMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SizeRequestMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SocketClientEvent

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SocketFamily

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SocketListenerEvent

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SocketMsgFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SocketProtocol

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SocketType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SortType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SorterChange

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SorterOrder

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SpinButtonUpdatePolicy

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SpinType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for StackTransitionType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for StateFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Stretch

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for StringFilterMatchMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for StrokeNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Style

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for StyleContextPrintFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SubpixelLayout

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SubpixelOrder

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SubprocessFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Surface

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SurfaceEdge

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SurfaceType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SymbolicColor

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for SystemSetting

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TabAlign

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TestDBusFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextBufferNotifyFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextClusterFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextDirection

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextExtendSelection

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextSearchFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextTransform

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextViewLayer

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextWindowType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextureError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextureNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TextureScaleNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TitlebarGesture

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsAuthenticationMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsCertificateFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsCertificateRequestFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsChannelBindingError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsChannelBindingType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsDatabaseLookupFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsDatabaseVerifyFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsInteractionResult

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsPasswordFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsProtocolVersion

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TlsRehandshakeMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ToplevelState

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TouchpadGesturePhase

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TransformCategory

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TransformNode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TreeModelFlags

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TreeViewColumnSizing

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TreeViewDropPosition

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for TreeViewGridLines

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Underline

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Unit

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for UnixSocketAddressType

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Variant

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for VulkanError

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for Weight

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for WrapMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for WrapMode

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for ZlibCompressorFormat

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl ToValue for [&str]

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl<T> ToValue for Option<T>

Blanket implementation for all optional types.

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

§

impl<T> ToValue for &T
where T: ToValue + StaticType,

Blanket implementation for all references.

§

fn to_value(&self) -> Value

§

fn value_type(&self) -> Type

Implementors§