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 ofToValue
. - Idempotence:
x.to_value() == x.to_value().to_value()
. In words, applyingToValue
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§
Sourcefn value_type(&self) -> Type
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§
Source§impl ToValue for DeviceType
impl ToValue for DeviceType
Source§impl ToValue for FontWeight
impl ToValue for FontWeight
Source§impl ToValue for HintMetrics
impl ToValue for HintMetrics
Source§impl ToValue for PathDataType
impl ToValue for PathDataType
Source§impl ToValue for PatternType
impl ToValue for PatternType
Source§impl ToValue for RegionOverlap
impl ToValue for RegionOverlap
Source§impl ToValue for SubpixelOrder
impl ToValue for SubpixelOrder
Source§impl ToValue for SurfaceType
impl ToValue for SurfaceType
Source§impl ToValue for TextClusterFlags
impl ToValue for TextClusterFlags
Source§impl ToValue for CrossingMode
impl ToValue for CrossingMode
Source§impl ToValue for DevicePadFeature
impl ToValue for DevicePadFeature
Source§impl ToValue for DeviceToolType
impl ToValue for DeviceToolType
Source§impl ToValue for DmabufError
Available on crate feature v4_14
only.
impl ToValue for DmabufError
Available on crate feature
v4_14
only.Source§impl ToValue for DragCancelReason
impl ToValue for DragCancelReason
Source§impl ToValue for FullscreenMode
impl ToValue for FullscreenMode
Source§impl ToValue for InputSource
impl ToValue for InputSource
Source§impl ToValue for MemoryFormat
impl ToValue for MemoryFormat
Source§impl ToValue for NotifyType
impl ToValue for NotifyType
Source§impl ToValue for ScrollDirection
impl ToValue for ScrollDirection
Source§impl ToValue for ScrollUnit
Available on crate feature v4_8
only.
impl ToValue for ScrollUnit
Available on crate feature
v4_8
only.Source§impl ToValue for SubpixelLayout
impl ToValue for SubpixelLayout
Source§impl ToValue for SurfaceEdge
impl ToValue for SurfaceEdge
Source§impl ToValue for TextureError
Available on crate feature v4_6
only.
impl ToValue for TextureError
Available on crate feature
v4_6
only.Source§impl ToValue for TitlebarGesture
Available on crate feature v4_4
only.
impl ToValue for TitlebarGesture
Available on crate feature
v4_4
only.Source§impl ToValue for TouchpadGesturePhase
impl ToValue for TouchpadGesturePhase
Source§impl ToValue for VulkanError
impl ToValue for VulkanError
Source§impl ToValue for Colorspace
impl ToValue for Colorspace
Source§impl ToValue for InterpType
impl ToValue for InterpType
Source§impl ToValue for PixbufAlphaMode
impl ToValue for PixbufAlphaMode
Source§impl ToValue for PixbufError
impl ToValue for PixbufError
Source§impl ToValue for PixbufRotation
impl ToValue for PixbufRotation
Source§impl ToValue for ConverterResult
impl ToValue for ConverterResult
Source§impl ToValue for CredentialsType
impl ToValue for CredentialsType
Source§impl ToValue for DBusMessageByteOrder
impl ToValue for DBusMessageByteOrder
Source§impl ToValue for DBusMessageHeaderField
impl ToValue for DBusMessageHeaderField
Source§impl ToValue for DBusMessageType
impl ToValue for DBusMessageType
Source§impl ToValue for DataStreamByteOrder
impl ToValue for DataStreamByteOrder
Source§impl ToValue for DataStreamNewlineType
impl ToValue for DataStreamNewlineType
Source§impl ToValue for DriveStartStopType
impl ToValue for DriveStartStopType
Source§impl ToValue for EmblemOrigin
impl ToValue for EmblemOrigin
Source§impl ToValue for FileAttributeStatus
impl ToValue for FileAttributeStatus
Source§impl ToValue for FileAttributeType
impl ToValue for FileAttributeType
Source§impl ToValue for FileMonitorEvent
impl ToValue for FileMonitorEvent
Source§impl ToValue for FilesystemPreviewType
impl ToValue for FilesystemPreviewType
Source§impl ToValue for IOErrorEnum
impl ToValue for IOErrorEnum
Source§impl ToValue for IOModuleScopeFlags
impl ToValue for IOModuleScopeFlags
Source§impl ToValue for MemoryMonitorWarningLevel
Available on crate feature v2_64
only.
impl ToValue for MemoryMonitorWarningLevel
Available on crate feature
v2_64
only.Source§impl ToValue for MountOperationResult
impl ToValue for MountOperationResult
Source§impl ToValue for NetworkConnectivity
impl ToValue for NetworkConnectivity
Source§impl ToValue for NotificationPriority
impl ToValue for NotificationPriority
Source§impl ToValue for PasswordSave
impl ToValue for PasswordSave
Source§impl ToValue for PollableReturn
Available on crate feature v2_60
only.
impl ToValue for PollableReturn
Available on crate feature
v2_60
only.Source§impl ToValue for ResolverError
impl ToValue for ResolverError
Source§impl ToValue for ResolverRecordType
impl ToValue for ResolverRecordType
Source§impl ToValue for ResourceError
impl ToValue for ResourceError
Source§impl ToValue for SocketClientEvent
impl ToValue for SocketClientEvent
Source§impl ToValue for SocketFamily
impl ToValue for SocketFamily
Source§impl ToValue for SocketListenerEvent
impl ToValue for SocketListenerEvent
Source§impl ToValue for SocketProtocol
impl ToValue for SocketProtocol
Source§impl ToValue for SocketType
impl ToValue for SocketType
Source§impl ToValue for TlsAuthenticationMode
impl ToValue for TlsAuthenticationMode
Source§impl ToValue for TlsCertificateRequestFlags
impl ToValue for TlsCertificateRequestFlags
Source§impl ToValue for TlsChannelBindingError
Available on crate feature v2_66
only.
impl ToValue for TlsChannelBindingError
Available on crate feature
v2_66
only.Source§impl ToValue for TlsChannelBindingType
Available on crate feature v2_66
only.
impl ToValue for TlsChannelBindingType
Available on crate feature
v2_66
only.Source§impl ToValue for TlsDatabaseLookupFlags
impl ToValue for TlsDatabaseLookupFlags
Source§impl ToValue for TlsInteractionResult
impl ToValue for TlsInteractionResult
Source§impl ToValue for TlsRehandshakeMode
impl ToValue for TlsRehandshakeMode
Source§impl ToValue for UnixSocketAddressType
impl ToValue for UnixSocketAddressType
Source§impl ToValue for ZlibCompressorFormat
impl ToValue for ZlibCompressorFormat
Source§impl ToValue for GLUniformType
impl ToValue for GLUniformType
Source§impl ToValue for PathDirection
Available on crate feature v4_14
only.
impl ToValue for PathDirection
Available on crate feature
v4_14
only.Source§impl ToValue for PathOperation
Available on crate feature v4_14
only.
impl ToValue for PathOperation
Available on crate feature
v4_14
only.Source§impl ToValue for RenderNodeType
impl ToValue for RenderNodeType
Source§impl ToValue for ScalingFilter
impl ToValue for ScalingFilter
Source§impl ToValue for SerializationError
impl ToValue for SerializationError
Source§impl ToValue for TransformCategory
impl ToValue for TransformCategory
Source§impl ToValue for AccessibleAnnouncementPriority
Available on crate feature v4_14
only.
impl ToValue for AccessibleAnnouncementPriority
Available on crate feature
v4_14
only.Source§impl ToValue for AccessibleAutocomplete
impl ToValue for AccessibleAutocomplete
Source§impl ToValue for AccessibleInvalidState
impl ToValue for AccessibleInvalidState
Source§impl ToValue for AccessiblePlatformState
Available on crate feature v4_10
only.
impl ToValue for AccessiblePlatformState
Available on crate feature
v4_10
only.Source§impl ToValue for AccessibleProperty
impl ToValue for AccessibleProperty
Source§impl ToValue for AccessibleRelation
impl ToValue for AccessibleRelation
Source§impl ToValue for AccessibleRole
impl ToValue for AccessibleRole
Source§impl ToValue for AccessibleSort
impl ToValue for AccessibleSort
Source§impl ToValue for AccessibleState
impl ToValue for AccessibleState
Source§impl ToValue for AccessibleTextContentChange
Available on crate feature v4_14
only.
impl ToValue for AccessibleTextContentChange
Available on crate feature
v4_14
only.Source§impl ToValue for AccessibleTextGranularity
Available on crate feature v4_14
only.
impl ToValue for AccessibleTextGranularity
Available on crate feature
v4_14
only.Source§impl ToValue for AccessibleTristate
impl ToValue for AccessibleTristate
Source§impl ToValue for AssistantPageType
impl ToValue for AssistantPageType
Source§impl ToValue for BaselinePosition
impl ToValue for BaselinePosition
Source§impl ToValue for BorderStyle
impl ToValue for BorderStyle
Source§impl ToValue for BuilderError
impl ToValue for BuilderError
Source§impl ToValue for ButtonsType
impl ToValue for ButtonsType
Source§impl ToValue for CellRendererAccelMode
impl ToValue for CellRendererAccelMode
Source§impl ToValue for CellRendererMode
impl ToValue for CellRendererMode
Source§impl ToValue for ConstraintAttribute
impl ToValue for ConstraintAttribute
Source§impl ToValue for ConstraintRelation
impl ToValue for ConstraintRelation
Source§impl ToValue for ConstraintStrength
impl ToValue for ConstraintStrength
Source§impl ToValue for ConstraintVflParserError
impl ToValue for ConstraintVflParserError
Source§impl ToValue for ContentFit
Available on crate feature v4_8
only.
impl ToValue for ContentFit
Available on crate feature
v4_8
only.Source§impl ToValue for CornerType
impl ToValue for CornerType
Source§impl ToValue for DeleteType
impl ToValue for DeleteType
Source§impl ToValue for DialogError
Available on crate feature v4_10
only.
impl ToValue for DialogError
Available on crate feature
v4_10
only.Source§impl ToValue for DirectionType
impl ToValue for DirectionType
Source§impl ToValue for EditableProperties
impl ToValue for EditableProperties
Source§impl ToValue for EntryIconPosition
impl ToValue for EntryIconPosition
Source§impl ToValue for EventSequenceState
impl ToValue for EventSequenceState
Source§impl ToValue for FileChooserAction
impl ToValue for FileChooserAction
Source§impl ToValue for FileChooserError
impl ToValue for FileChooserError
Source§impl ToValue for FilterChange
impl ToValue for FilterChange
Source§impl ToValue for FilterMatch
impl ToValue for FilterMatch
Source§impl ToValue for FontRendering
Available on crate feature v4_16
only.
impl ToValue for FontRendering
Available on crate feature
v4_16
only.Source§impl ToValue for GraphicsOffloadEnabled
Available on crate feature v4_14
only.
impl ToValue for GraphicsOffloadEnabled
Available on crate feature
v4_14
only.Source§impl ToValue for IconThemeError
impl ToValue for IconThemeError
Source§impl ToValue for IconViewDropPosition
impl ToValue for IconViewDropPosition
Source§impl ToValue for InputPurpose
impl ToValue for InputPurpose
Source§impl ToValue for InscriptionOverflow
Available on crate feature v4_8
only.
impl ToValue for InscriptionOverflow
Available on crate feature
v4_8
only.Source§impl ToValue for Justification
impl ToValue for Justification
Source§impl ToValue for LevelBarMode
impl ToValue for LevelBarMode
Source§impl ToValue for ListTabBehavior
Available on crate feature v4_12
only.
impl ToValue for ListTabBehavior
Available on crate feature
v4_12
only.Source§impl ToValue for MessageType
impl ToValue for MessageType
Source§impl ToValue for MovementStep
impl ToValue for MovementStep
Source§impl ToValue for NaturalWrapMode
Available on crate feature v4_6
only.
impl ToValue for NaturalWrapMode
Available on crate feature
v4_6
only.Source§impl ToValue for NotebookTab
impl ToValue for NotebookTab
Source§impl ToValue for NumberUpLayout
impl ToValue for NumberUpLayout
Source§impl ToValue for Orientation
impl ToValue for Orientation
Source§impl ToValue for PadActionType
impl ToValue for PadActionType
Source§impl ToValue for PageOrientation
impl ToValue for PageOrientation
Source§impl ToValue for PanDirection
impl ToValue for PanDirection
Source§impl ToValue for PolicyType
impl ToValue for PolicyType
Source§impl ToValue for PositionType
impl ToValue for PositionType
Source§impl ToValue for PrintDuplex
impl ToValue for PrintDuplex
Source§impl ToValue for PrintError
impl ToValue for PrintError
Source§impl ToValue for PrintOperationAction
impl ToValue for PrintOperationAction
Source§impl ToValue for PrintOperationResult
impl ToValue for PrintOperationResult
Source§impl ToValue for PrintPages
impl ToValue for PrintPages
Source§impl ToValue for PrintQuality
impl ToValue for PrintQuality
Source§impl ToValue for PrintStatus
impl ToValue for PrintStatus
Source§impl ToValue for PropagationLimit
impl ToValue for PropagationLimit
Source§impl ToValue for PropagationPhase
impl ToValue for PropagationPhase
Source§impl ToValue for RecentManagerError
impl ToValue for RecentManagerError
Source§impl ToValue for RevealerTransitionType
impl ToValue for RevealerTransitionType
Source§impl ToValue for ScrollStep
impl ToValue for ScrollStep
Source§impl ToValue for ScrollType
impl ToValue for ScrollType
Source§impl ToValue for ScrollablePolicy
impl ToValue for ScrollablePolicy
Source§impl ToValue for SelectionMode
impl ToValue for SelectionMode
Source§impl ToValue for SensitivityType
impl ToValue for SensitivityType
Source§impl ToValue for ShortcutScope
impl ToValue for ShortcutScope
Source§impl ToValue for ShortcutType
impl ToValue for ShortcutType
Source§impl ToValue for SizeGroupMode
impl ToValue for SizeGroupMode
Source§impl ToValue for SizeRequestMode
impl ToValue for SizeRequestMode
Source§impl ToValue for SorterChange
impl ToValue for SorterChange
Source§impl ToValue for SorterOrder
impl ToValue for SorterOrder
Source§impl ToValue for SpinButtonUpdatePolicy
impl ToValue for SpinButtonUpdatePolicy
Source§impl ToValue for StackTransitionType
impl ToValue for StackTransitionType
Source§impl ToValue for StringFilterMatchMode
impl ToValue for StringFilterMatchMode
Source§impl ToValue for SymbolicColor
Available on crate feature v4_6
only.
impl ToValue for SymbolicColor
Available on crate feature
v4_6
only.Source§impl ToValue for SystemSetting
impl ToValue for SystemSetting
Source§impl ToValue for TextDirection
impl ToValue for TextDirection
Source§impl ToValue for TextExtendSelection
impl ToValue for TextExtendSelection
Source§impl ToValue for TextViewLayer
impl ToValue for TextViewLayer
Source§impl ToValue for TextWindowType
impl ToValue for TextWindowType
Source§impl ToValue for TreeViewColumnSizing
impl ToValue for TreeViewColumnSizing
Source§impl ToValue for TreeViewDropPosition
impl ToValue for TreeViewDropPosition
Source§impl ToValue for TreeViewGridLines
impl ToValue for TreeViewGridLines
Source§impl ToValue for ResponseType
impl ToValue for ResponseType
Source§impl ToValue for BaselineShift
Available on crate feature v1_50
only.
impl ToValue for BaselineShift
Available on crate feature
v1_50
only.Source§impl ToValue for CoverageLevel
impl ToValue for CoverageLevel
Source§impl ToValue for EllipsizeMode
impl ToValue for EllipsizeMode
Source§impl ToValue for GravityHint
impl ToValue for GravityHint
Source§impl ToValue for RenderPart
impl ToValue for RenderPart
Source§impl ToValue for TextTransform
Available on crate feature v1_50
only.
impl ToValue for TextTransform
Available on crate feature
v1_50
only.Source§impl ToValue for ImageSurface
impl ToValue for ImageSurface
Source§impl ToValue for RecordingSurface
impl ToValue for RecordingSurface
Source§impl ToValue for RectangleInt
impl ToValue for RectangleInt
Source§impl ToValue for AnchorHints
impl ToValue for AnchorHints
Source§impl ToValue for DragAction
impl ToValue for DragAction
Source§impl ToValue for FrameClockPhase
impl ToValue for FrameClockPhase
Source§impl ToValue for ModifierType
impl ToValue for ModifierType
Source§impl ToValue for PaintableFlags
impl ToValue for PaintableFlags
Source§impl ToValue for SeatCapabilities
impl ToValue for SeatCapabilities
Source§impl ToValue for ToplevelState
impl ToValue for ToplevelState
Source§impl ToValue for AppInfoCreateFlags
impl ToValue for AppInfoCreateFlags
Source§impl ToValue for ApplicationFlags
impl ToValue for ApplicationFlags
Source§impl ToValue for AskPasswordFlags
impl ToValue for AskPasswordFlags
Source§impl ToValue for BusNameOwnerFlags
impl ToValue for BusNameOwnerFlags
Source§impl ToValue for BusNameWatcherFlags
impl ToValue for BusNameWatcherFlags
Source§impl ToValue for ConverterFlags
impl ToValue for ConverterFlags
Source§impl ToValue for DBusCallFlags
impl ToValue for DBusCallFlags
Source§impl ToValue for DBusCapabilityFlags
impl ToValue for DBusCapabilityFlags
Source§impl ToValue for DBusConnectionFlags
impl ToValue for DBusConnectionFlags
Source§impl ToValue for DBusInterfaceSkeletonFlags
impl ToValue for DBusInterfaceSkeletonFlags
Source§impl ToValue for DBusMessageFlags
impl ToValue for DBusMessageFlags
Source§impl ToValue for DBusPropertyInfoFlags
impl ToValue for DBusPropertyInfoFlags
Source§impl ToValue for DBusProxyFlags
impl ToValue for DBusProxyFlags
Source§impl ToValue for DBusSendMessageFlags
impl ToValue for DBusSendMessageFlags
Source§impl ToValue for DBusServerFlags
impl ToValue for DBusServerFlags
Source§impl ToValue for DBusSignalFlags
impl ToValue for DBusSignalFlags
Source§impl ToValue for DBusSubtreeFlags
impl ToValue for DBusSubtreeFlags
Source§impl ToValue for DriveStartFlags
impl ToValue for DriveStartFlags
Source§impl ToValue for FileAttributeInfoFlags
impl ToValue for FileAttributeInfoFlags
Source§impl ToValue for FileCopyFlags
impl ToValue for FileCopyFlags
Source§impl ToValue for FileCreateFlags
impl ToValue for FileCreateFlags
Source§impl ToValue for FileMeasureFlags
impl ToValue for FileMeasureFlags
Source§impl ToValue for FileMonitorFlags
impl ToValue for FileMonitorFlags
Source§impl ToValue for FileQueryInfoFlags
impl ToValue for FileQueryInfoFlags
Source§impl ToValue for IOStreamSpliceFlags
impl ToValue for IOStreamSpliceFlags
Source§impl ToValue for MountMountFlags
impl ToValue for MountMountFlags
Source§impl ToValue for MountUnmountFlags
impl ToValue for MountUnmountFlags
Source§impl ToValue for OutputStreamSpliceFlags
impl ToValue for OutputStreamSpliceFlags
Source§impl ToValue for ResolverNameLookupFlags
Available on crate feature v2_60
only.
impl ToValue for ResolverNameLookupFlags
Available on crate feature
v2_60
only.Source§impl ToValue for ResourceFlags
impl ToValue for ResourceFlags
Source§impl ToValue for ResourceLookupFlags
impl ToValue for ResourceLookupFlags
Source§impl ToValue for SettingsBindFlags
impl ToValue for SettingsBindFlags
Source§impl ToValue for SubprocessFlags
impl ToValue for SubprocessFlags
Source§impl ToValue for TestDBusFlags
impl ToValue for TestDBusFlags
Source§impl ToValue for TlsCertificateFlags
impl ToValue for TlsCertificateFlags
Source§impl ToValue for TlsDatabaseVerifyFlags
impl ToValue for TlsDatabaseVerifyFlags
Source§impl ToValue for TlsPasswordFlags
impl ToValue for TlsPasswordFlags
Source§impl ToValue for SocketMsgFlags
impl ToValue for SocketMsgFlags
Source§impl ToValue for BorderNode
Available on crate feature v4_6
only.
impl ToValue for BorderNode
Available on crate feature
v4_6
only.Source§impl ToValue for ColorMatrixNode
Available on crate feature v4_6
only.
impl ToValue for ColorMatrixNode
Available on crate feature
v4_6
only.Source§impl ToValue for ConicGradientNode
Available on crate feature v4_6
only.
impl ToValue for ConicGradientNode
Available on crate feature
v4_6
only.Source§impl ToValue for ContainerNode
Available on crate feature v4_6
only.
impl ToValue for ContainerNode
Available on crate feature
v4_6
only.Source§impl ToValue for CrossFadeNode
Available on crate feature v4_6
only.
impl ToValue for CrossFadeNode
Available on crate feature
v4_6
only.Source§impl ToValue for PathForeachFlags
Available on crate feature v4_14
only.
impl ToValue for PathForeachFlags
Available on crate feature
v4_14
only.Source§impl ToValue for GLShaderNode
Available on crate feature v4_6
only.
impl ToValue for GLShaderNode
Available on crate feature
v4_6
only.Source§impl ToValue for InsetShadowNode
Available on crate feature v4_6
only.
impl ToValue for InsetShadowNode
Available on crate feature
v4_6
only.Source§impl ToValue for LinearGradientNode
Available on crate feature v4_6
only.
impl ToValue for LinearGradientNode
Available on crate feature
v4_6
only.Source§impl ToValue for OpacityNode
Available on crate feature v4_6
only.
impl ToValue for OpacityNode
Available on crate feature
v4_6
only.Source§impl ToValue for OutsetShadowNode
Available on crate feature v4_6
only.
impl ToValue for OutsetShadowNode
Available on crate feature
v4_6
only.Source§impl ToValue for RadialGradientNode
Available on crate feature v4_6
only.
impl ToValue for RadialGradientNode
Available on crate feature
v4_6
only.Source§impl ToValue for RepeatNode
Available on crate feature v4_6
only.
impl ToValue for RepeatNode
Available on crate feature
v4_6
only.Source§impl ToValue for RepeatingLinearGradientNode
Available on crate feature v4_6
only.
impl ToValue for RepeatingLinearGradientNode
Available on crate feature
v4_6
only.Source§impl ToValue for RepeatingRadialGradientNode
Available on crate feature v4_6
only.
impl ToValue for RepeatingRadialGradientNode
Available on crate feature
v4_6
only.Source§impl ToValue for RoundedClipNode
Available on crate feature v4_6
only.
impl ToValue for RoundedClipNode
Available on crate feature
v4_6
only.Source§impl ToValue for ShadowNode
Available on crate feature v4_6
only.
impl ToValue for ShadowNode
Available on crate feature
v4_6
only.Source§impl ToValue for StrokeNode
Available on crate feature v4_6
only.
impl ToValue for StrokeNode
Available on crate feature
v4_6
only.Source§impl ToValue for TextureNode
Available on crate feature v4_6
only.
impl ToValue for TextureNode
Available on crate feature
v4_6
only.Source§impl ToValue for TextureScaleNode
Available on crate feature v4_6
only.
impl ToValue for TextureScaleNode
Available on crate feature
v4_6
only.Source§impl ToValue for TransformNode
Available on crate feature v4_6
only.
impl ToValue for TransformNode
Available on crate feature
v4_6
only.Source§impl ToValue for ClosureExpression
impl ToValue for ClosureExpression
Source§impl ToValue for ConstantExpression
impl ToValue for ConstantExpression
Source§impl ToValue for Expression
impl ToValue for Expression
Source§impl ToValue for ApplicationInhibitFlags
impl ToValue for ApplicationInhibitFlags
Source§impl ToValue for BuilderClosureFlags
impl ToValue for BuilderClosureFlags
Source§impl ToValue for CellRendererState
impl ToValue for CellRendererState
Source§impl ToValue for DebugFlags
impl ToValue for DebugFlags
Source§impl ToValue for DialogFlags
impl ToValue for DialogFlags
Source§impl ToValue for EventControllerScrollFlags
impl ToValue for EventControllerScrollFlags
Source§impl ToValue for FontChooserLevel
impl ToValue for FontChooserLevel
Source§impl ToValue for IconLookupFlags
impl ToValue for IconLookupFlags
Source§impl ToValue for InputHints
impl ToValue for InputHints
Source§impl ToValue for ListScrollFlags
Available on crate feature v4_12
only.
impl ToValue for ListScrollFlags
Available on crate feature
v4_12
only.Source§impl ToValue for PopoverMenuFlags
impl ToValue for PopoverMenuFlags
Source§impl ToValue for PrintCapabilities
impl ToValue for PrintCapabilities
Source§impl ToValue for ShortcutActionFlags
impl ToValue for ShortcutActionFlags
Source§impl ToValue for StateFlags
impl ToValue for StateFlags
Source§impl ToValue for StyleContextPrintFlags
impl ToValue for StyleContextPrintFlags
Source§impl ToValue for TextBufferNotifyFlags
Available on crate feature v4_16
only.
impl ToValue for TextBufferNotifyFlags
Available on crate feature
v4_16
only.Source§impl ToValue for TextSearchFlags
impl ToValue for TextSearchFlags
Source§impl ToValue for TreeModelFlags
impl ToValue for TreeModelFlags
Source§impl ToValue for ObjectExpression
impl ToValue for ObjectExpression
Source§impl ToValue for PropertyExpression
impl ToValue for PropertyExpression
Source§impl ToValue for LayoutDeserializeFlags
Available on crate feature v1_50
only.
impl ToValue for LayoutDeserializeFlags
Available on crate feature
v1_50
only.Source§impl ToValue for LayoutSerializeFlags
Available on crate feature v1_50
only.
impl ToValue for LayoutSerializeFlags
Available on crate feature
v1_50
only.Source§impl ToValue for ShapeFlags
Available on crate feature v1_44
only.
impl ToValue for ShapeFlags
Available on crate feature
v1_44
only.Source§impl<T> ToValue for Option<T>where
T: ToValueOptional + StaticType,
Blanket implementation for all optional types.
impl<T> ToValue for Option<T>where
T: ToValueOptional + StaticType,
Blanket implementation for all optional types.
Source§impl<T> ToValue for &Twhere
T: ToValue + StaticType,
Blanket implementation for all references.
impl<T> ToValue for &Twhere
T: ToValue + StaticType,
Blanket implementation for all references.
Implementors§
impl ToValue for &GStr
impl ToValue for &SendValue
impl ToValue for &Value
impl ToValue for AnnotationStyle
Available on crate feature
v5_18
only.