Skip to main content

SqlState

Struct SqlState 

Source
pub struct SqlState(/* private fields */);
Expand description

A SQLSTATE error code

Implementations§

Source§

impl SqlState

Source

pub const SUCCESSFUL_COMPLETION: SqlState

00000

Source

pub const WARNING: SqlState

01000

Source

pub const WARNING_DYNAMIC_RESULT_SETS_RETURNED: SqlState

0100C

Source

pub const WARNING_IMPLICIT_ZERO_BIT_PADDING: SqlState

01008

Source

pub const WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION: SqlState

01003

Source

pub const WARNING_PRIVILEGE_NOT_GRANTED: SqlState

01007

Source

pub const WARNING_PRIVILEGE_NOT_REVOKED: SqlState

01006

Source

pub const WARNING_STRING_DATA_RIGHT_TRUNCATION: SqlState

01004

Source

pub const WARNING_DEPRECATED_FEATURE: SqlState

01P01

Source

pub const NO_DATA: SqlState

02000

Source

pub const NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED: SqlState

02001

Source

pub const SQL_STATEMENT_NOT_YET_COMPLETE: SqlState

03000

Source

pub const CONNECTION_EXCEPTION: SqlState

08000

Source

pub const CONNECTION_DOES_NOT_EXIST: SqlState

08003

Source

pub const CONNECTION_FAILURE: SqlState

08006

Source

pub const SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION: SqlState

08001

Source

pub const SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION: SqlState

08004

Source

pub const TRANSACTION_RESOLUTION_UNKNOWN: SqlState

08007

Source

pub const PROTOCOL_VIOLATION: SqlState

08P01

Source

pub const TRIGGERED_ACTION_EXCEPTION: SqlState

09000

Source

pub const FEATURE_NOT_SUPPORTED: SqlState

0A000

Source

pub const INVALID_TRANSACTION_INITIATION: SqlState

0B000

Source

pub const LOCATOR_EXCEPTION: SqlState

0F000

Source

pub const L_E_INVALID_SPECIFICATION: SqlState

0F001

Source

pub const INVALID_GRANTOR: SqlState

0L000

Source

pub const INVALID_GRANT_OPERATION: SqlState

0LP01

Source

pub const INVALID_ROLE_SPECIFICATION: SqlState

0P000

Source

pub const DIAGNOSTICS_EXCEPTION: SqlState

0Z000

Source

pub const STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER: SqlState

0Z002

Source

pub const CASE_NOT_FOUND: SqlState

20000

Source

pub const CARDINALITY_VIOLATION: SqlState

21000

Source

pub const DATA_EXCEPTION: SqlState

22000

Source

pub const ARRAY_ELEMENT_ERROR: SqlState

2202E

Source

pub const ARRAY_SUBSCRIPT_ERROR: SqlState

2202E

Source

pub const CHARACTER_NOT_IN_REPERTOIRE: SqlState

22021

Source

pub const DATETIME_FIELD_OVERFLOW: SqlState

22008

Source

pub const DATETIME_VALUE_OUT_OF_RANGE: SqlState

22008

Source

pub const DIVISION_BY_ZERO: SqlState

22012

Source

pub const ERROR_IN_ASSIGNMENT: SqlState

22005

Source

pub const ESCAPE_CHARACTER_CONFLICT: SqlState

2200B

Source

pub const INDICATOR_OVERFLOW: SqlState

22022

Source

pub const INTERVAL_FIELD_OVERFLOW: SqlState

22015

Source

pub const INVALID_ARGUMENT_FOR_LOG: SqlState

2201E

Source

pub const INVALID_ARGUMENT_FOR_NTILE: SqlState

22014

Source

pub const INVALID_ARGUMENT_FOR_NTH_VALUE: SqlState

22016

Source

pub const INVALID_ARGUMENT_FOR_POWER_FUNCTION: SqlState

2201F

Source

pub const INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION: SqlState

2201G

Source

pub const INVALID_CHARACTER_VALUE_FOR_CAST: SqlState

22018

Source

pub const INVALID_DATETIME_FORMAT: SqlState

22007

Source

pub const INVALID_ESCAPE_CHARACTER: SqlState

22019

Source

pub const INVALID_ESCAPE_OCTET: SqlState

2200D

Source

pub const INVALID_ESCAPE_SEQUENCE: SqlState

22025

Source

pub const NONSTANDARD_USE_OF_ESCAPE_CHARACTER: SqlState

22P06

Source

pub const INVALID_INDICATOR_PARAMETER_VALUE: SqlState

22010

Source

pub const INVALID_PARAMETER_VALUE: SqlState

22023

Source

pub const INVALID_PRECEDING_OR_FOLLOWING_SIZE: SqlState

22013

Source

pub const INVALID_REGULAR_EXPRESSION: SqlState

2201B

Source

pub const INVALID_ROW_COUNT_IN_LIMIT_CLAUSE: SqlState

2201W

Source

pub const INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE: SqlState

2201X

Source

pub const INVALID_TABLESAMPLE_ARGUMENT: SqlState

2202H

Source

pub const INVALID_TABLESAMPLE_REPEAT: SqlState

2202G

Source

pub const INVALID_TIME_ZONE_DISPLACEMENT_VALUE: SqlState

22009

Source

pub const INVALID_USE_OF_ESCAPE_CHARACTER: SqlState

2200C

Source

pub const MOST_SPECIFIC_TYPE_MISMATCH: SqlState

2200G

Source

pub const NULL_VALUE_NOT_ALLOWED: SqlState

22004

Source

pub const NULL_VALUE_NO_INDICATOR_PARAMETER: SqlState

22002

Source

pub const NUMERIC_VALUE_OUT_OF_RANGE: SqlState

22003

Source

pub const SEQUENCE_GENERATOR_LIMIT_EXCEEDED: SqlState

2200H

Source

pub const STRING_DATA_LENGTH_MISMATCH: SqlState

22026

Source

pub const STRING_DATA_RIGHT_TRUNCATION: SqlState

22001

Source

pub const SUBSTRING_ERROR: SqlState

22011

Source

pub const TRIM_ERROR: SqlState

22027

Source

pub const UNTERMINATED_C_STRING: SqlState

22024

Source

pub const ZERO_LENGTH_CHARACTER_STRING: SqlState

2200F

Source

pub const FLOATING_POINT_EXCEPTION: SqlState

22P01

Source

pub const INVALID_TEXT_REPRESENTATION: SqlState

22P02

Source

pub const INVALID_BINARY_REPRESENTATION: SqlState

22P03

Source

pub const BAD_COPY_FILE_FORMAT: SqlState

22P04

Source

pub const UNTRANSLATABLE_CHARACTER: SqlState

22P05

Source

pub const NOT_AN_XML_DOCUMENT: SqlState

2200L

Source

pub const INVALID_XML_DOCUMENT: SqlState

2200M

Source

pub const INVALID_XML_CONTENT: SqlState

2200N

Source

pub const INVALID_XML_COMMENT: SqlState

2200S

Source

pub const INVALID_XML_PROCESSING_INSTRUCTION: SqlState

2200T

Source

pub const DUPLICATE_JSON_OBJECT_KEY_VALUE: SqlState

22030

Source

pub const INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION: SqlState

22031

Source

pub const INVALID_JSON_TEXT: SqlState

22032

Source

pub const INVALID_SQL_JSON_SUBSCRIPT: SqlState

22033

Source

pub const MORE_THAN_ONE_SQL_JSON_ITEM: SqlState

22034

Source

pub const NO_SQL_JSON_ITEM: SqlState

22035

Source

pub const NON_NUMERIC_SQL_JSON_ITEM: SqlState

22036

Source

pub const NON_UNIQUE_KEYS_IN_A_JSON_OBJECT: SqlState

22037

Source

pub const SINGLETON_SQL_JSON_ITEM_REQUIRED: SqlState

22038

Source

pub const SQL_JSON_ARRAY_NOT_FOUND: SqlState

22039

Source

pub const SQL_JSON_MEMBER_NOT_FOUND: SqlState

2203A

Source

pub const SQL_JSON_NUMBER_NOT_FOUND: SqlState

2203B

Source

pub const SQL_JSON_OBJECT_NOT_FOUND: SqlState

2203C

Source

pub const TOO_MANY_JSON_ARRAY_ELEMENTS: SqlState

2203D

Source

pub const TOO_MANY_JSON_OBJECT_MEMBERS: SqlState

2203E

Source

pub const SQL_JSON_SCALAR_REQUIRED: SqlState

2203F

Source

pub const SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE: SqlState

2203G

Source

pub const INTEGRITY_CONSTRAINT_VIOLATION: SqlState

23000

Source

pub const RESTRICT_VIOLATION: SqlState

23001

Source

pub const NOT_NULL_VIOLATION: SqlState

23502

Source

pub const FOREIGN_KEY_VIOLATION: SqlState

23503

Source

pub const UNIQUE_VIOLATION: SqlState

23505

Source

pub const CHECK_VIOLATION: SqlState

23514

Source

pub const EXCLUSION_VIOLATION: SqlState

23P01

Source

pub const INVALID_CURSOR_STATE: SqlState

24000

Source

pub const INVALID_TRANSACTION_STATE: SqlState

25000

Source

pub const ACTIVE_SQL_TRANSACTION: SqlState

25001

Source

pub const BRANCH_TRANSACTION_ALREADY_ACTIVE: SqlState

25002

Source

pub const HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL: SqlState

25008

Source

pub const INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION: SqlState

25003

Source

pub const INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION: SqlState

25004

Source

pub const NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION: SqlState

25005

Source

pub const READ_ONLY_SQL_TRANSACTION: SqlState

25006

Source

pub const SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED: SqlState

25007

Source

pub const NO_ACTIVE_SQL_TRANSACTION: SqlState

25P01

Source

pub const IN_FAILED_SQL_TRANSACTION: SqlState

25P02

Source

pub const IDLE_IN_TRANSACTION_SESSION_TIMEOUT: SqlState

25P03

Source

pub const INVALID_SQL_STATEMENT_NAME: SqlState

26000

Source

pub const UNDEFINED_PSTATEMENT: SqlState

26000

Source

pub const TRIGGERED_DATA_CHANGE_VIOLATION: SqlState

27000

Source

pub const INVALID_AUTHORIZATION_SPECIFICATION: SqlState

28000

Source

pub const INVALID_PASSWORD: SqlState

28P01

Source

pub const DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST: SqlState

2B000

Source

pub const DEPENDENT_OBJECTS_STILL_EXIST: SqlState

2BP01

Source

pub const INVALID_TRANSACTION_TERMINATION: SqlState

2D000

Source

pub const SQL_ROUTINE_EXCEPTION: SqlState

2F000

Source

pub const S_R_E_FUNCTION_EXECUTED_NO_RETURN_STATEMENT: SqlState

2F005

Source

pub const S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED: SqlState

2F002

Source

pub const S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED: SqlState

2F003

Source

pub const S_R_E_READING_SQL_DATA_NOT_PERMITTED: SqlState

2F004

Source

pub const INVALID_CURSOR_NAME: SqlState

34000

Source

pub const UNDEFINED_CURSOR: SqlState

34000

Source

pub const EXTERNAL_ROUTINE_EXCEPTION: SqlState

38000

Source

pub const E_R_E_CONTAINING_SQL_NOT_PERMITTED: SqlState

38001

Source

pub const E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED: SqlState

38002

Source

pub const E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED: SqlState

38003

Source

pub const E_R_E_READING_SQL_DATA_NOT_PERMITTED: SqlState

38004

Source

pub const EXTERNAL_ROUTINE_INVOCATION_EXCEPTION: SqlState

39000

Source

pub const E_R_I_E_INVALID_SQLSTATE_RETURNED: SqlState

39001

Source

pub const E_R_I_E_NULL_VALUE_NOT_ALLOWED: SqlState

39004

Source

pub const E_R_I_E_TRIGGER_PROTOCOL_VIOLATED: SqlState

39P01

Source

pub const E_R_I_E_SRF_PROTOCOL_VIOLATED: SqlState

39P02

Source

pub const E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED: SqlState

39P03

Source

pub const SAVEPOINT_EXCEPTION: SqlState

3B000

Source

pub const S_E_INVALID_SPECIFICATION: SqlState

3B001

Source

pub const INVALID_CATALOG_NAME: SqlState

3D000

Source

pub const UNDEFINED_DATABASE: SqlState

3D000

Source

pub const INVALID_SCHEMA_NAME: SqlState

3F000

Source

pub const UNDEFINED_SCHEMA: SqlState

3F000

Source

pub const TRANSACTION_ROLLBACK: SqlState

40000

Source

pub const T_R_INTEGRITY_CONSTRAINT_VIOLATION: SqlState

40002

Source

pub const T_R_SERIALIZATION_FAILURE: SqlState

40001

Source

pub const T_R_STATEMENT_COMPLETION_UNKNOWN: SqlState

40003

Source

pub const T_R_DEADLOCK_DETECTED: SqlState

40P01

Source

pub const SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION: SqlState

42000

Source

pub const SYNTAX_ERROR: SqlState

42601

Source

pub const INSUFFICIENT_PRIVILEGE: SqlState

42501

Source

pub const CANNOT_COERCE: SqlState

42846

Source

pub const GROUPING_ERROR: SqlState

42803

Source

pub const WINDOWING_ERROR: SqlState

42P20

Source

pub const INVALID_RECURSION: SqlState

42P19

Source

pub const INVALID_FOREIGN_KEY: SqlState

42830

Source

pub const INVALID_NAME: SqlState

42602

Source

pub const NAME_TOO_LONG: SqlState

42622

Source

pub const RESERVED_NAME: SqlState

42939

Source

pub const DATATYPE_MISMATCH: SqlState

42804

Source

pub const INDETERMINATE_DATATYPE: SqlState

42P18

Source

pub const COLLATION_MISMATCH: SqlState

42P21

Source

pub const INDETERMINATE_COLLATION: SqlState

42P22

Source

pub const WRONG_OBJECT_TYPE: SqlState

42809

Source

pub const GENERATED_ALWAYS: SqlState

428C9

Source

pub const UNDEFINED_COLUMN: SqlState

42703

Source

pub const UNDEFINED_FUNCTION: SqlState

42883

Source

pub const UNDEFINED_TABLE: SqlState

42P01

Source

pub const UNDEFINED_PARAMETER: SqlState

42P02

Source

pub const UNDEFINED_OBJECT: SqlState

42704

Source

pub const DUPLICATE_COLUMN: SqlState

42701

Source

pub const DUPLICATE_CURSOR: SqlState

42P03

Source

pub const DUPLICATE_DATABASE: SqlState

42P04

Source

pub const DUPLICATE_FUNCTION: SqlState

42723

Source

pub const DUPLICATE_PSTATEMENT: SqlState

42P05

Source

pub const DUPLICATE_SCHEMA: SqlState

42P06

Source

pub const DUPLICATE_TABLE: SqlState

42P07

Source

pub const DUPLICATE_ALIAS: SqlState

42712

Source

pub const DUPLICATE_OBJECT: SqlState

42710

Source

pub const AMBIGUOUS_COLUMN: SqlState

42702

Source

pub const AMBIGUOUS_FUNCTION: SqlState

42725

Source

pub const AMBIGUOUS_PARAMETER: SqlState

42P08

Source

pub const AMBIGUOUS_ALIAS: SqlState

42P09

Source

pub const INVALID_COLUMN_REFERENCE: SqlState

42P10

Source

pub const INVALID_COLUMN_DEFINITION: SqlState

42611

Source

pub const INVALID_CURSOR_DEFINITION: SqlState

42P11

Source

pub const INVALID_DATABASE_DEFINITION: SqlState

42P12

Source

pub const INVALID_FUNCTION_DEFINITION: SqlState

42P13

Source

pub const INVALID_PSTATEMENT_DEFINITION: SqlState

42P14

Source

pub const INVALID_SCHEMA_DEFINITION: SqlState

42P15

Source

pub const INVALID_TABLE_DEFINITION: SqlState

42P16

Source

pub const INVALID_OBJECT_DEFINITION: SqlState

42P17

Source

pub const WITH_CHECK_OPTION_VIOLATION: SqlState

44000

Source

pub const INSUFFICIENT_RESOURCES: SqlState

53000

Source

pub const DISK_FULL: SqlState

53100

Source

pub const OUT_OF_MEMORY: SqlState

53200

Source

pub const TOO_MANY_CONNECTIONS: SqlState

53300

Source

pub const CONFIGURATION_LIMIT_EXCEEDED: SqlState

53400

Source

pub const PROGRAM_LIMIT_EXCEEDED: SqlState

54000

Source

pub const STATEMENT_TOO_COMPLEX: SqlState

54001

Source

pub const TOO_MANY_COLUMNS: SqlState

54011

Source

pub const TOO_MANY_ARGUMENTS: SqlState

54023

Source

pub const OBJECT_NOT_IN_PREREQUISITE_STATE: SqlState

55000

Source

pub const OBJECT_IN_USE: SqlState

55006

Source

pub const CANT_CHANGE_RUNTIME_PARAM: SqlState

55P02

Source

pub const LOCK_NOT_AVAILABLE: SqlState

55P03

Source

pub const UNSAFE_NEW_ENUM_VALUE_USAGE: SqlState

55P04

Source

pub const OPERATOR_INTERVENTION: SqlState

57000

Source

pub const QUERY_CANCELED: SqlState

57014

Source

pub const ADMIN_SHUTDOWN: SqlState

57P01

Source

pub const CRASH_SHUTDOWN: SqlState

57P02

Source

pub const CANNOT_CONNECT_NOW: SqlState

57P03

Source

pub const DATABASE_DROPPED: SqlState

57P04

Source

pub const IDLE_SESSION_TIMEOUT: SqlState

57P05

Source

pub const SYSTEM_ERROR: SqlState

58000

Source

pub const IO_ERROR: SqlState

58030

Source

pub const UNDEFINED_FILE: SqlState

58P01

Source

pub const DUPLICATE_FILE: SqlState

58P02

Source

pub const SNAPSHOT_TOO_OLD: SqlState

72000

Source

pub const CONFIG_FILE_ERROR: SqlState

F0000

Source

pub const LOCK_FILE_EXISTS: SqlState

F0001

Source

pub const FDW_ERROR: SqlState

HV000

Source

pub const FDW_COLUMN_NAME_NOT_FOUND: SqlState

HV005

Source

pub const FDW_DYNAMIC_PARAMETER_VALUE_NEEDED: SqlState

HV002

Source

pub const FDW_FUNCTION_SEQUENCE_ERROR: SqlState

HV010

Source

pub const FDW_INCONSISTENT_DESCRIPTOR_INFORMATION: SqlState

HV021

Source

pub const FDW_INVALID_ATTRIBUTE_VALUE: SqlState

HV024

Source

pub const FDW_INVALID_COLUMN_NAME: SqlState

HV007

Source

pub const FDW_INVALID_COLUMN_NUMBER: SqlState

HV008

Source

pub const FDW_INVALID_DATA_TYPE: SqlState

HV004

Source

pub const FDW_INVALID_DATA_TYPE_DESCRIPTORS: SqlState

HV006

Source

pub const FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER: SqlState

HV091

Source

pub const FDW_INVALID_HANDLE: SqlState

HV00B

Source

pub const FDW_INVALID_OPTION_INDEX: SqlState

HV00C

Source

pub const FDW_INVALID_OPTION_NAME: SqlState

HV00D

Source

pub const FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH: SqlState

HV090

Source

pub const FDW_INVALID_STRING_FORMAT: SqlState

HV00A

Source

pub const FDW_INVALID_USE_OF_NULL_POINTER: SqlState

HV009

Source

pub const FDW_TOO_MANY_HANDLES: SqlState

HV014

Source

pub const FDW_OUT_OF_MEMORY: SqlState

HV001

Source

pub const FDW_NO_SCHEMAS: SqlState

HV00P

Source

pub const FDW_OPTION_NAME_NOT_FOUND: SqlState

HV00J

Source

pub const FDW_REPLY_HANDLE: SqlState

HV00K

Source

pub const FDW_SCHEMA_NOT_FOUND: SqlState

HV00Q

Source

pub const FDW_TABLE_NOT_FOUND: SqlState

HV00R

Source

pub const FDW_UNABLE_TO_CREATE_EXECUTION: SqlState

HV00L

Source

pub const FDW_UNABLE_TO_CREATE_REPLY: SqlState

HV00M

Source

pub const FDW_UNABLE_TO_ESTABLISH_CONNECTION: SqlState

HV00N

Source

pub const PLPGSQL_ERROR: SqlState

P0000

Source

pub const RAISE_EXCEPTION: SqlState

P0001

Source

pub const NO_DATA_FOUND: SqlState

P0002

Source

pub const TOO_MANY_ROWS: SqlState

P0003

Source

pub const ASSERT_FAILURE: SqlState

P0004

Source

pub const INTERNAL_ERROR: SqlState

XX000

Source

pub const DATA_CORRUPTED: SqlState

XX001

Source

pub const INDEX_CORRUPTED: SqlState

XX002

Source

pub fn from_code(s: &str) -> SqlState

Creates a SqlState from its error code.

Source

pub fn code(&self) -> &str

Returns the error code corresponding to the SqlState.

Trait Implementations§

Source§

impl Clone for SqlState

Source§

fn clone(&self) -> SqlState

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for SqlState

Source§

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

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

impl Eq for SqlState

Source§

impl PartialEq for SqlState

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StructuralPartialEq for SqlState

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V