Struct 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 duplicate 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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 StructuralPartialEq for Type

Auto Trait Implementations§

§

impl Freeze for Type

§

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

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

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.