Struct qt_core::q_event::Type

source ·
pub struct Type(/* private fields */);
Expand description

This enum type defines the valid event types in Qt. The event types and the specialized classes for each type are as follows:

C++ enum: QEvent::Type.

C++ documentation:

This enum type defines the valid event types in Qt. The event types and the specialized classes for each type are as follows:

User events should have values between User and MaxUser:

For convenience, you can use the registerEventType() function to register and reserve a custom event type for your application. Doing so will allow you to avoid accidentally re-using a custom event type already in use elsewhere in your application.

Implementations§

source§

impl Type

source

pub fn to_int(&self) -> c_int

source§

impl Type

source

pub const None: Type = _

Not an event. (C++ enum variant: None = 0)

source

pub const Timer: Type = _

Regular timer events (QTimerEvent). (C++ enum variant: Timer = 1)

source

pub const MouseButtonPress: Type = _

Mouse press (QMouseEvent). (C++ enum variant: MouseButtonPress = 2)

source

pub const MouseButtonRelease: Type = _

Mouse release (QMouseEvent). (C++ enum variant: MouseButtonRelease = 3)

source

pub const MouseButtonDblClick: Type = _

Mouse press again (QMouseEvent). (C++ enum variant: MouseButtonDblClick = 4)

source

pub const MouseMove: Type = _

Mouse move (QMouseEvent). (C++ enum variant: MouseMove = 5)

source

pub const KeyPress: Type = _

Key press (QKeyEvent). (C++ enum variant: KeyPress = 6)

source

pub const KeyRelease: Type = _

Key release (QKeyEvent). (C++ enum variant: KeyRelease = 7)

source

pub const FocusIn: Type = _

Widget or Window gains keyboard focus (QFocusEvent). (C++ enum variant: FocusIn = 8)

source

pub const FocusOut: Type = _

Widget or Window loses keyboard focus (QFocusEvent). (C++ enum variant: FocusOut = 9)

source

pub const FocusAboutToChange: Type = _

Widget or Window focus is about to change (QFocusEvent) (C++ enum variant: FocusAboutToChange = 23)

source

pub const Enter: Type = _

Mouse enters widget’s boundaries (QEnterEvent). (C++ enum variant: Enter = 10)

source

pub const Leave: Type = _

Mouse leaves widget’s boundaries. (C++ enum variant: Leave = 11)

source

pub const Paint: Type = _

Screen update necessary (QPaintEvent). (C++ enum variant: Paint = 12)

source

pub const Move: Type = _

Widget’s position changed (QMoveEvent). (C++ enum variant: Move = 13)

source

pub const Resize: Type = _

Widget’s size changed (QResizeEvent). (C++ enum variant: Resize = 14)

source

pub const Create: Type = _

C++ enum variant: Create = 15

source

pub const Destroy: Type = _

C++ enum variant: Destroy = 16

source

pub const Show: Type = _

Widget was shown on screen (QShowEvent). (C++ enum variant: Show = 17)

source

pub const Hide: Type = _

Widget was hidden (QHideEvent). (C++ enum variant: Hide = 18)

source

pub const Close: Type = _

Widget was closed (QCloseEvent). (C++ enum variant: Close = 19)

source

pub const Quit: Type = _

C++ enum variant: Quit = 20

source

pub const ParentChange: Type = _

The widget parent has changed. (C++ enum variant: ParentChange = 21)

source

pub const ParentAboutToChange: Type = _

The widget parent is about to change. (C++ enum variant: ParentAboutToChange = 131)

source

pub const ThreadChange: Type = _

The object is moved to another thread. This is the last event sent to this object in the previous thread. See QObject::moveToThread(). (C++ enum variant: ThreadChange = 22)

source

pub const WindowActivate: Type = _

Window was activated. (C++ enum variant: WindowActivate = 24)

source

pub const WindowDeactivate: Type = _

Window was deactivated. (C++ enum variant: WindowDeactivate = 25)

source

pub const ShowToParent: Type = _

A child widget has been shown. (C++ enum variant: ShowToParent = 26)

source

pub const HideToParent: Type = _

A child widget has been hidden. (C++ enum variant: HideToParent = 27)

source

pub const Wheel: Type = _

Mouse wheel rolled (QWheelEvent). (C++ enum variant: Wheel = 31)

source

pub const WindowTitleChange: Type = _

The window title has changed. (C++ enum variant: WindowTitleChange = 33)

source

pub const WindowIconChange: Type = _

The window’s icon has changed. (C++ enum variant: WindowIconChange = 34)

source

pub const ApplicationWindowIconChange: Type = _

The application’s icon has changed. (C++ enum variant: ApplicationWindowIconChange = 35)

source

pub const ApplicationFontChange: Type = _

The default application font has changed. (C++ enum variant: ApplicationFontChange = 36)

source

pub const ApplicationLayoutDirectionChange: Type = _

The default application layout direction has changed. (C++ enum variant: ApplicationLayoutDirectionChange = 37)

source

pub const ApplicationPaletteChange: Type = _

The default application palette has changed. (C++ enum variant: ApplicationPaletteChange = 38)

source

pub const PaletteChange: Type = _

Palette of the widget changed. (C++ enum variant: PaletteChange = 39)

source

pub const Clipboard: Type = _

The clipboard contents have changed. (C++ enum variant: Clipboard = 40)

source

pub const Speech: Type = _

C++ enum variant: Speech = 42

source

pub const MetaCall: Type = _

An asynchronous method invocation via QMetaObject::invokeMethod(). (C++ enum variant: MetaCall = 43)

source

pub const SockAct: Type = _

Socket activated, used to implement QSocketNotifier. (C++ enum variant: SockAct = 50)

source

pub const WinEventAct: Type = _

A Windows-specific activation event has occurred. (C++ enum variant: WinEventAct = 132)

source

pub const DeferredDelete: Type = _

The object will be deleted after it has cleaned up (QDeferredDeleteEvent) (C++ enum variant: DeferredDelete = 52)

source

pub const DragEnter: Type = _

The cursor enters a widget during a drag and drop operation (QDragEnterEvent). (C++ enum variant: DragEnter = 60)

source

pub const DragMove: Type = _

A drag and drop operation is in progress (QDragMoveEvent). (C++ enum variant: DragMove = 61)

source

pub const DragLeave: Type = _

The cursor leaves a widget during a drag and drop operation (QDragLeaveEvent). (C++ enum variant: DragLeave = 62)

source

pub const Drop: Type = _

A drag and drop operation is completed (QDropEvent). (C++ enum variant: Drop = 63)

source

pub const DragResponse: Type = _

C++ enum variant: DragResponse = 64

source

pub const ChildAdded: Type = _

An object gets a child (QChildEvent). (C++ enum variant: ChildAdded = 68)

source

pub const ChildPolished: Type = _

A widget child gets polished (QChildEvent). (C++ enum variant: ChildPolished = 69)

source

pub const ChildRemoved: Type = _

An object loses a child (QChildEvent). (C++ enum variant: ChildRemoved = 71)

source

pub const ShowWindowRequest: Type = _

C++ enum variant: ShowWindowRequest = 73

source

pub const PolishRequest: Type = _

The widget should be polished. (C++ enum variant: PolishRequest = 74)

source

pub const Polish: Type = _

The widget is polished. (C++ enum variant: Polish = 75)

source

pub const LayoutRequest: Type = _

Widget layout needs to be redone. (C++ enum variant: LayoutRequest = 76)

source

pub const UpdateRequest: Type = _

The widget should be repainted. (C++ enum variant: UpdateRequest = 77)

source

pub const UpdateLater: Type = _

The widget should be queued to be repainted at a later time. (C++ enum variant: UpdateLater = 78)

source

pub const EmbeddingControl: Type = _

C++ enum variant: EmbeddingControl = 79

source

pub const ActivateControl: Type = _

C++ enum variant: ActivateControl = 80

source

pub const DeactivateControl: Type = _

C++ enum variant: DeactivateControl = 81

source

pub const ContextMenu: Type = _

Context popup menu (QContextMenuEvent). (C++ enum variant: ContextMenu = 82)

source

pub const InputMethod: Type = _

An input method is being used (QInputMethodEvent). (C++ enum variant: InputMethod = 83)

source

pub const TabletMove: Type = _

Wacom tablet move (QTabletEvent). (C++ enum variant: TabletMove = 87)

source

pub const LocaleChange: Type = _

The system locale has changed. (C++ enum variant: LocaleChange = 88)

source

pub const LanguageChange: Type = _

The application translation changed. (C++ enum variant: LanguageChange = 89)

source

pub const LayoutDirectionChange: Type = _

The direction of layouts changed. (C++ enum variant: LayoutDirectionChange = 90)

source

pub const Style: Type = _

C++ enum variant: Style = 91

source

pub const TabletPress: Type = _

Wacom tablet press (QTabletEvent). (C++ enum variant: TabletPress = 92)

source

pub const TabletRelease: Type = _

Wacom tablet release (QTabletEvent). (C++ enum variant: TabletRelease = 93)

source

pub const OkRequest: Type = _

C++ enum variant: OkRequest = 94

source

pub const HelpRequest: Type = _

C++ enum variant: HelpRequest = 95

source

pub const IconDrag: Type = _

The main icon of a window has been dragged away (QIconDragEvent). (C++ enum variant: IconDrag = 96)

source

pub const FontChange: Type = _

Widget’s font has changed. (C++ enum variant: FontChange = 97)

source

pub const EnabledChange: Type = _

Widget’s enabled state has changed. (C++ enum variant: EnabledChange = 98)

source

pub const ActivationChange: Type = _

A widget’s top-level window activation state has changed. (C++ enum variant: ActivationChange = 99)

source

pub const StyleChange: Type = _

Widget’s style has been changed. (C++ enum variant: StyleChange = 100)

source

pub const IconTextChange: Type = _

Widget’s icon text has been changed. (Deprecated) (C++ enum variant: IconTextChange = 101)

source

pub const ModifiedChange: Type = _

Widgets modification state has been changed. (C++ enum variant: ModifiedChange = 102)

source

pub const MouseTrackingChange: Type = _

The mouse tracking state has changed. (C++ enum variant: MouseTrackingChange = 109)

source

pub const WindowBlocked: Type = _

The window is blocked by a modal dialog. (C++ enum variant: WindowBlocked = 103)

source

pub const WindowUnblocked: Type = _

The window is unblocked after a modal dialog exited. (C++ enum variant: WindowUnblocked = 104)

source

pub const WindowStateChange: Type = _

The window’s state (minimized, maximized or full-screen) has changed (QWindowStateChangeEvent). (C++ enum variant: WindowStateChange = 105)

source

pub const ReadOnlyChange: Type = _

Widget’s read-only state has changed (since Qt 5.4). (C++ enum variant: ReadOnlyChange = 106)

source

pub const ToolTip: Type = _

A tooltip was requested (QHelpEvent). (C++ enum variant: ToolTip = 110)

source

pub const WhatsThis: Type = _

The widget should reveal “What’s This?” help (QHelpEvent). (C++ enum variant: WhatsThis = 111)

source

pub const StatusTip: Type = _

A status tip is requested (QStatusTipEvent). (C++ enum variant: StatusTip = 112)

source

pub const ActionChanged: Type = _

An action has been changed (QActionEvent). (C++ enum variant: ActionChanged = 113)

source

pub const ActionAdded: Type = _

A new action has been added (QActionEvent). (C++ enum variant: ActionAdded = 114)

source

pub const ActionRemoved: Type = _

An action has been removed (QActionEvent). (C++ enum variant: ActionRemoved = 115)

source

pub const FileOpen: Type = _

File open request (QFileOpenEvent). (C++ enum variant: FileOpen = 116)

source

pub const Shortcut: Type = _

Key press in child for shortcut key handling (QShortcutEvent). (C++ enum variant: Shortcut = 117)

source

pub const ShortcutOverride: Type = _

Key press in child, for overriding shortcut key handling (QKeyEvent). (C++ enum variant: ShortcutOverride = 51)

source

pub const WhatsThisClicked: Type = _

A link in a widget’s “What’s This?” help was clicked. (C++ enum variant: WhatsThisClicked = 118)

source

pub const ToolBarChange: Type = _

The toolbar button is toggled on macOS. (C++ enum variant: ToolBarChange = 120)

source

pub const ApplicationActivate: Type = _

This enum has been deprecated. Use ApplicationStateChange instead. (C++ enum variant: ApplicationActivate = 121)

source

pub const ApplicationActivated: Type = _

This enum has been deprecated. Use ApplicationStateChange instead. (C++ enum variant: ApplicationActivated = 121)

source

pub const ApplicationDeactivate: Type = _

This enum has been deprecated. Use ApplicationStateChange instead. (C++ enum variant: ApplicationDeactivate = 122)

source

pub const ApplicationDeactivated: Type = _

C++ enum variant: ApplicationDeactivated = 122

source

pub const QueryWhatsThis: Type = _

The widget should accept the event if it has “What’s This?” help. (C++ enum variant: QueryWhatsThis = 123)

source

pub const EnterWhatsThisMode: Type = _

Send to toplevel widgets when the application enters “What’s This?” mode. (C++ enum variant: EnterWhatsThisMode = 124)

source

pub const LeaveWhatsThisMode: Type = _

Send to toplevel widgets when the application leaves “What’s This?” mode. (C++ enum variant: LeaveWhatsThisMode = 125)

source

pub const ZOrderChange: Type = _

The widget’s z-order has changed. This event is never sent to top level windows. (C++ enum variant: ZOrderChange = 126)

source

pub const HoverEnter: Type = _

The mouse cursor enters a hover widget (QHoverEvent). (C++ enum variant: HoverEnter = 127)

source

pub const HoverLeave: Type = _

The mouse cursor leaves a hover widget (QHoverEvent). (C++ enum variant: HoverLeave = 128)

source

pub const HoverMove: Type = _

The mouse cursor moves inside a hover widget (QHoverEvent). (C++ enum variant: HoverMove = 129)

source

pub const AcceptDropsChange: Type = _

C++ enum variant: AcceptDropsChange = 152

source

pub const ZeroTimerEvent: Type = _

C++ enum variant: ZeroTimerEvent = 154

source

pub const GraphicsSceneMouseMove: Type = _

Move mouse in a graphics scene (QGraphicsSceneMouseEvent). (C++ enum variant: GraphicsSceneMouseMove = 155)

source

pub const GraphicsSceneMousePress: Type = _

Mouse press in a graphics scene (QGraphicsSceneMouseEvent). (C++ enum variant: GraphicsSceneMousePress = 156)

source

pub const GraphicsSceneMouseRelease: Type = _

Mouse release in a graphics scene (QGraphicsSceneMouseEvent). (C++ enum variant: GraphicsSceneMouseRelease = 157)

source

pub const GraphicsSceneMouseDoubleClick: Type = _

Mouse press again (double click) in a graphics scene (QGraphicsSceneMouseEvent). (C++ enum variant: GraphicsSceneMouseDoubleClick = 158)

source

pub const GraphicsSceneContextMenu: Type = _

Context popup menu over a graphics scene (QGraphicsSceneContextMenuEvent). (C++ enum variant: GraphicsSceneContextMenu = 159)

source

pub const GraphicsSceneHoverEnter: Type = _

The mouse cursor enters a hover item in a graphics scene (QGraphicsSceneHoverEvent). (C++ enum variant: GraphicsSceneHoverEnter = 160)

source

pub const GraphicsSceneHoverMove: Type = _

The mouse cursor moves inside a hover item in a graphics scene (QGraphicsSceneHoverEvent). (C++ enum variant: GraphicsSceneHoverMove = 161)

source

pub const GraphicsSceneHoverLeave: Type = _

The mouse cursor leaves a hover item in a graphics scene (QGraphicsSceneHoverEvent). (C++ enum variant: GraphicsSceneHoverLeave = 162)

source

pub const GraphicsSceneHelp: Type = _

The user requests help for a graphics scene (QHelpEvent). (C++ enum variant: GraphicsSceneHelp = 163)

source

pub const GraphicsSceneDragEnter: Type = _

The cursor enters a graphics scene during a drag and drop operation (QGraphicsSceneDragDropEvent). (C++ enum variant: GraphicsSceneDragEnter = 164)

source

pub const GraphicsSceneDragMove: Type = _

A drag and drop operation is in progress over a scene (QGraphicsSceneDragDropEvent). (C++ enum variant: GraphicsSceneDragMove = 165)

source

pub const GraphicsSceneDragLeave: Type = _

The cursor leaves a graphics scene during a drag and drop operation (QGraphicsSceneDragDropEvent). (C++ enum variant: GraphicsSceneDragLeave = 166)

source

pub const GraphicsSceneDrop: Type = _

A drag and drop operation is completed over a scene (QGraphicsSceneDragDropEvent). (C++ enum variant: GraphicsSceneDrop = 167)

source

pub const GraphicsSceneWheel: Type = _

Mouse wheel rolled in a graphics scene (QGraphicsSceneWheelEvent). (C++ enum variant: GraphicsSceneWheel = 168)

source

pub const KeyboardLayoutChange: Type = _

The keyboard layout has changed. (C++ enum variant: KeyboardLayoutChange = 169)

source

pub const DynamicPropertyChange: Type = _

A dynamic property was added, changed, or removed from the object. (C++ enum variant: DynamicPropertyChange = 170)

source

pub const TabletEnterProximity: Type = _

Wacom tablet enter proximity event (QTabletEvent), sent to QApplication. (C++ enum variant: TabletEnterProximity = 171)

source

pub const TabletLeaveProximity: Type = _

Wacom tablet leave proximity event (QTabletEvent), sent to QApplication. (C++ enum variant: TabletLeaveProximity = 172)

source

pub const NonClientAreaMouseMove: Type = _

A mouse move occurred outside the client area (QMouseEvent). (C++ enum variant: NonClientAreaMouseMove = 173)

source

pub const NonClientAreaMouseButtonPress: Type = _

A mouse button press occurred outside the client area (QMouseEvent). (C++ enum variant: NonClientAreaMouseButtonPress = 174)

source

pub const NonClientAreaMouseButtonRelease: Type = _

A mouse button release occurred outside the client area (QMouseEvent). (C++ enum variant: NonClientAreaMouseButtonRelease = 175)

source

pub const NonClientAreaMouseButtonDblClick: Type = _

A mouse double click occurred outside the client area (QMouseEvent). (C++ enum variant: NonClientAreaMouseButtonDblClick = 176)

source

pub const MacSizeChange: Type = _

The user changed his widget sizes (macOS only). (C++ enum variant: MacSizeChange = 177)

source

pub const ContentsRectChange: Type = _

The margins of the widget’s content rect changed. (C++ enum variant: ContentsRectChange = 178)

source

pub const MacGLWindowChange: Type = _

C++ enum variant: MacGLWindowChange = 179

source

pub const FutureCallOut: Type = _

C++ enum variant: FutureCallOut = 180

source

pub const GraphicsSceneResize: Type = _

Widget was resized (QGraphicsSceneResizeEvent). (C++ enum variant: GraphicsSceneResize = 181)

source

pub const GraphicsSceneMove: Type = _

Widget was moved (QGraphicsSceneMoveEvent). (C++ enum variant: GraphicsSceneMove = 182)

source

pub const CursorChange: Type = _

The widget’s cursor has changed. (C++ enum variant: CursorChange = 183)

source

pub const ToolTipChange: Type = _

The widget’s tooltip has changed. (C++ enum variant: ToolTipChange = 184)

source

pub const NetworkReplyUpdated: Type = _

C++ enum variant: NetworkReplyUpdated = 185

source

pub const GrabMouse: Type = _

Item gains mouse grab (QGraphicsItem only). (C++ enum variant: GrabMouse = 186)

source

pub const UngrabMouse: Type = _

Item loses mouse grab (QGraphicsItem, QQuickItem). (C++ enum variant: UngrabMouse = 187)

source

pub const GrabKeyboard: Type = _

Item gains keyboard grab (QGraphicsItem only). (C++ enum variant: GrabKeyboard = 188)

source

pub const UngrabKeyboard: Type = _

Item loses keyboard grab (QGraphicsItem only). (C++ enum variant: UngrabKeyboard = 189)

source

pub const MacGLClearDrawable: Type = _

C++ enum variant: MacGLClearDrawable = 191

source

pub const StateMachineSignal: Type = _

A signal delivered to a state machine (QStateMachine::SignalEvent). (C++ enum variant: StateMachineSignal = 192)

source

pub const StateMachineWrapped: Type = _

The event is a wrapper for, i.e., contains, another event (QStateMachine::WrappedEvent). (C++ enum variant: StateMachineWrapped = 193)

source

pub const TouchBegin: Type = _

Beginning of a sequence of touch-screen or track-pad events (QTouchEvent). (C++ enum variant: TouchBegin = 194)

source

pub const TouchUpdate: Type = _

Touch-screen event (QTouchEvent). (C++ enum variant: TouchUpdate = 195)

source

pub const TouchEnd: Type = _

End of touch-event sequence (QTouchEvent). (C++ enum variant: TouchEnd = 196)

source

pub const NativeGesture: Type = _

The system has detected a gesture (QNativeGestureEvent). (C++ enum variant: NativeGesture = 197)

source

pub const RequestSoftwareInputPanel: Type = _

A widget wants to open a software input panel (SIP). (C++ enum variant: RequestSoftwareInputPanel = 199)

source

pub const CloseSoftwareInputPanel: Type = _

A widget wants to close the software input panel (SIP). (C++ enum variant: CloseSoftwareInputPanel = 200)

source

pub const WinIdChange: Type = _

The window system identifer for this native widget has changed. (C++ enum variant: WinIdChange = 203)

source

pub const Gesture: Type = _

A gesture was triggered (QGestureEvent). (C++ enum variant: Gesture = 198)

source

pub const GestureOverride: Type = _

A gesture override was triggered (QGestureEvent). (C++ enum variant: GestureOverride = 202)

source

pub const ScrollPrepare: Type = _

The object needs to fill in its geometry information (QScrollPrepareEvent). (C++ enum variant: ScrollPrepare = 204)

source

pub const Scroll: Type = _

The object needs to scroll to the supplied position (QScrollEvent). (C++ enum variant: Scroll = 205)

source

pub const Expose: Type = _

Sent to a window when its on-screen contents are invalidated and need to be flushed from the backing store. (C++ enum variant: Expose = 206)

source

pub const InputMethodQuery: Type = _

A input method query event (QInputMethodQueryEvent) (C++ enum variant: InputMethodQuery = 207)

source

pub const OrientationChange: Type = _

The screens orientation has changes (QScreenOrientationChangeEvent). (C++ enum variant: OrientationChange = 208)

source

pub const TouchCancel: Type = _

Cancellation of touch-event sequence (QTouchEvent). (C++ enum variant: TouchCancel = 209)

source

pub const ThemeChange: Type = _

C++ enum variant: ThemeChange = 210

source

pub const SockClose: Type = _

C++ enum variant: SockClose = 211

source

pub const PlatformPanel: Type = _

A platform specific panel has been requested. (C++ enum variant: PlatformPanel = 212)

source

pub const StyleAnimationUpdate: Type = _

C++ enum variant: StyleAnimationUpdate = 213

source

pub const ApplicationStateChange: Type = _

The state of the application has changed. (C++ enum variant: ApplicationStateChange = 214)

source

pub const WindowChangeInternal: Type = _

C++ enum variant: WindowChangeInternal = 215

source

pub const ScreenChangeInternal: Type = _

C++ enum variant: ScreenChangeInternal = 216

source

pub const PlatformSurface: Type = _

A native platform surface has been created or is about to be destroyed (QPlatformSurfaceEvent). (C++ enum variant: PlatformSurface = 217)

source

pub const Pointer: Type = _

C++ enum variant: Pointer = 218

source

pub const TabletTrackingChange: Type = _

The Wacom tablet tracking state has changed (since Qt 5.9). (C++ enum variant: TabletTrackingChange = 219)

source

pub const User: Type = _

User-defined event. (C++ enum variant: User = 1000)

source

pub const MaxUser: Type = _

Last user event ID. (C++ enum variant: MaxUser = 65535)

Trait Implementations§

source§

impl Clone for Type

source§

fn clone(&self) -> Type

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Type

source§

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

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

impl From<Type> for c_int

source§

fn from(value: Type) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Type

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Type

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Type

source§

impl Eq for Type

source§

impl StructuralEq for Type

source§

impl StructuralPartialEq for Type

Auto Trait Implementations§

§

impl RefUnwindSafe for Type

§

impl Send for Type

§

impl Sync for Type

§

impl Unpin for Type

§

impl UnwindSafe for Type

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> 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, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

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

§

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>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.