Struct tokio_postgres::error::SqlState

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

A SQLSTATE error code

Implementations§

source§

impl SqlState

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.

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

Trait Implementations§

source§

impl Clone for SqlState

source§

fn clone(&self) -> SqlState

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 SqlState

source§

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

Formats the value using the given formatter. Read more
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 · 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 Eq for SqlState

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<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

§

type Output = T

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

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

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more