Enum Db

Source
#[non_exhaustive]
pub enum Db {
Show 184 variants Unreachable(&'static str), Deprecated(String), Thrown(String), Ds(String), Tx(String), TxFailure, TxFinished, TxReadonly, TxConditionNotMet, TxKeyAlreadyExists, TxKeyTooLarge, TxValueTooLarge, TxTooLarge, NsEmpty, DbEmpty, QueryEmpty, QueryRemaining, InvalidQuery(RenderedError), InvalidContent { value: Value, }, InvalidMerge { value: Value, }, InvalidPatch { message: String, }, PatchTest { expected: String, got: String, }, HttpDisabled, InvalidParam { name: String, }, InvalidField { line: usize, field: String, }, InvalidSplit { line: usize, field: String, }, InvalidOrder { line: usize, field: String, }, InvalidGroup { line: usize, field: String, }, InvalidLimit { value: String, }, InvalidStart { value: String, }, InvalidScript { message: String, }, InvalidModel { message: String, }, InvalidFunction { name: String, message: String, }, InvalidArguments { name: String, message: String, }, InvalidUrl(String), InvalidVectorDimension { current: usize, expected: usize, }, InvalidVectorDistance { left: SharedVector, right: SharedVector, dist: f64, }, InvalidVectorType { current: String, expected: &'static str, }, InvalidVectorValue(String), InvalidRegex(String), InvalidTimeout(u64), QueryTimedout, QueryCancelled, QueryNotExecuted, QueryNotExecutedDetail { message: String, }, NsNotAllowed { ns: String, }, DbNotAllowed { db: String, }, NsNotFound { value: String, }, NaNotFound { value: String, }, NlNotFound { value: String, }, DbNotFound { value: String, }, DaNotFound { value: String, }, DlNotFound { value: String, }, EvNotFound { value: String, }, FcNotFound { value: String, }, FdNotFound { value: String, }, MlNotFound { value: String, }, ClAlreadyExists { value: String, }, NdNotFound { value: String, }, PaNotFound { value: String, }, TbNotFound { value: String, }, LvNotFound { value: String, }, LqNotFound { value: String, }, AzNotFound { value: String, }, IxNotFound { value: String, }, UnsupportedDistance(Distance), UserRootNotFound { value: String, }, UserNsNotFound { value: String, ns: String, }, UserDbNotFound { value: String, ns: String, db: String, }, RealtimeDisabled, ComputationDepthExceeded, InvalidStatementTarget { value: String, }, CreateStatement { value: String, }, UpdateStatement { value: String, }, RelateStatement { value: String, }, RelateStatementIn { value: String, }, RelateStatementId { value: String, }, RelateStatementOut { value: String, }, DeleteStatement { value: String, }, InsertStatement { value: String, }, InsertStatementIn { value: String, }, InsertStatementId { value: String, }, InsertStatementOut { value: String, }, LiveStatement { value: String, }, KillStatement { value: String, }, SingleOnlyOutput, TablePermissions { table: String, }, ParamPermissions { name: String, }, FunctionPermissions { name: String, }, TableIsView { table: String, }, RecordExists { thing: String, }, IndexExists { thing: Thing, index: String, value: String, }, TableCheck { thing: String, relation: bool, target_type: TableType, }, FieldCheck { thing: String, value: String, field: Idiom, check: String, }, FieldValue { thing: String, value: String, field: Idiom, check: String, }, FieldReadonly { thing: String, field: Idiom, }, IdMismatch { value: String, }, IdInvalid { value: String, }, CoerceTo { from: Value, into: String, }, ConvertTo { from: Value, into: String, }, LengthInvalid { kind: String, size: usize, }, TryAdd(String, String), TrySub(String, String), TryMul(String, String), TryDiv(String, String), TryRem(String, String), TryPow(String, String), TryNeg(String), TryFrom(String, &'static str), Http(String), Channel(String), Io(Error), Encode(Error), Decode(Error), Revision(Error), CorruptedIndex(&'static str), NoIndexFoundForMatch { value: String, }, AnalyzerError(String), HighlightError(String), Bincode(Box<ErrorKind>), FstError(Error), Utf8Error(FromUtf8Error), ObsError(Error), ModelComputation(String), FeatureNotYetImplemented { feature: String, }, DuplicatedMatchRef { mr: u8, }, TimestampOverflow(String), Internal(String), Unimplemented(String), CorruptedVersionstampInKey(Error), InvalidLevel(String), IamError(Error), ScriptingNotAllowed, FunctionNotAllowed(String), NetTargetNotAllowed(String), TokenMakingFailed, NoRecordFound, SignupQueryFailed, SigninQueryFailed, MissingUserOrPass, NoSigninTarget, InvalidPass, InvalidAuth, InvalidSignup, UnknownAuth, MissingTokenHeader(String), MissingTokenClaim(String), TxKeyAlreadyExistsCategory(KeyCategory), MissingStorageEngine, AzAlreadyExists { value: String, }, DbAlreadyExists { value: String, }, EvAlreadyExists { value: String, }, FdAlreadyExists { value: String, }, FcAlreadyExists { value: String, }, IxAlreadyExists { value: String, }, MlAlreadyExists { value: String, }, NsAlreadyExists { value: String, }, PaAlreadyExists { value: String, }, TbAlreadyExists { value: String, }, NtAlreadyExists { value: String, }, DtAlreadyExists { value: String, }, UserRootAlreadyExists { value: String, }, UserNsAlreadyExists { value: String, ns: String, }, UserDbAlreadyExists { value: String, ns: String, db: String, }, ExpiredSession, NodeAgent(&'static str), LiveQueryError(LiveQueryCause), Serialization(String), AccessRootAlreadyExists { value: String, }, AccessNsAlreadyExists { value: String, }, AccessDbAlreadyExists { value: String, }, AccessRootNotFound { value: String, }, AccessNsNotFound { value: String, }, AccessDbNotFound { value: String, }, AccessLevelMismatch, AccessMethodMismatch, AccessNotFound, AccessInvalidDuration, AccessInvalidExpiration, AccessRecordSignupQueryFailed, AccessRecordSigninQueryFailed, AccessRecordNoSignup, AccessRecordNoSignin, TbInvalid { value: String, },
}
Expand description

An error originating from an embedded SurrealDB database.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Unreachable(&'static str)

The database encountered unreachable logic

§

Deprecated(String)

Statement has been deprecated

§

Thrown(String)

A custom error has been thrown

§

Ds(String)

There was a problem with the underlying datastore

§

Tx(String)

There was a problem with a datastore transaction

§

TxFailure

There was an error when starting a new datastore transaction

§

TxFinished

The transaction was already cancelled or committed

§

TxReadonly

The current transaction was created as read-only

§

TxConditionNotMet

The conditional value in the request was not equal

§

TxKeyAlreadyExists

👎Deprecated: Use TxKeyAlreadyExistsCategory

The key being inserted in the transaction already exists

§

TxKeyTooLarge

The key exceeds a limit set by the KV store

§

TxValueTooLarge

The value exceeds a limit set by the KV store

§

TxTooLarge

The transaction writes too much data for the KV store

§

NsEmpty

No namespace has been selected

§

DbEmpty

No database has been selected

§

QueryEmpty

No SQL query has been specified

§

QueryRemaining

There was an error with the SQL query

§

InvalidQuery(RenderedError)

There was an error with the SQL query

§

InvalidContent

There was an error with the SQL query

Fields

§value: Value
§

InvalidMerge

There was an error with the SQL query

Fields

§value: Value
§

InvalidPatch

There was an error with the provided JSON Patch

Fields

§message: String
§

PatchTest

Given test operation failed for JSON Patch

Fields

§expected: String
§

HttpDisabled

Remote HTTP request functions are not enabled

§

InvalidParam

it is not possible to set a variable with the specified name

Fields

§name: String
§

InvalidField

Fields

§line: usize
§field: String
§

InvalidSplit

Fields

§line: usize
§field: String
§

InvalidOrder

Fields

§line: usize
§field: String
§

InvalidGroup

Fields

§line: usize
§field: String
§

InvalidLimit

The LIMIT clause must evaluate to a positive integer

Fields

§value: String
§

InvalidStart

The START clause must evaluate to a positive integer

Fields

§value: String
§

InvalidScript

There was an error with the provided JavaScript code

Fields

§message: String
§

InvalidModel

There was an error with the provided machine learning model

Fields

§message: String
§

InvalidFunction

There was a problem running the specified function

Fields

§name: String
§message: String
§

InvalidArguments

The wrong quantity or magnitude of arguments was given for the specified function

Fields

§name: String
§message: String
§

InvalidUrl(String)

The URL is invalid

§

InvalidVectorDimension

The size of the vector is incorrect

Fields

§current: usize
§expected: usize
§

InvalidVectorDistance

The size of the vector is incorrect

Fields

§left: SharedVector
§right: SharedVector
§dist: f64
§

InvalidVectorType

The size of the vector is incorrect

Fields

§current: String
§expected: &'static str
§

InvalidVectorValue(String)

The size of the vector is incorrect

§

InvalidRegex(String)

Invalid regular expression

§

InvalidTimeout(u64)

Invalid timeout

§

QueryTimedout

The query timedout

§

QueryCancelled

The query did not execute, because the transaction was cancelled

§

QueryNotExecuted

The query did not execute, because the transaction has failed

§

QueryNotExecutedDetail

The query did not execute, because the transaction has failed (with a message)

Fields

§message: String
§

NsNotAllowed

The permissions do not allow for changing to the specified namespace

Fields

§

DbNotAllowed

The permissions do not allow for changing to the specified database

Fields

§

NsNotFound

The requested namespace does not exist

Fields

§value: String
§

NaNotFound

The requested namespace access method does not exist

Fields

§value: String
§

NlNotFound

The requested namespace login does not exist

Fields

§value: String
§

DbNotFound

The requested database does not exist

Fields

§value: String
§

DaNotFound

The requested database access method does not exist

Fields

§value: String
§

DlNotFound

The requested database login does not exist

Fields

§value: String
§

EvNotFound

The requested event does not exist

Fields

§value: String
§

FcNotFound

The requested function does not exist

Fields

§value: String
§

FdNotFound

The requested field does not exist

Fields

§value: String
§

MlNotFound

The requested model does not exist

Fields

§value: String
§

ClAlreadyExists

Fields

§value: String
§

NdNotFound

Fields

§value: String
§

PaNotFound

The requested param does not exist

Fields

§value: String
§

TbNotFound

The requested table does not exist

Fields

§value: String
§

LvNotFound

The requested live query does not exist

Fields

§value: String
§

LqNotFound

The requested cluster live query does not exist

Fields

§value: String
§

AzNotFound

The requested analyzer does not exist

Fields

§value: String
§

IxNotFound

The requested analyzer does not exist

Fields

§value: String
§

UnsupportedDistance(Distance)

§

UserRootNotFound

The requested root user does not exist

Fields

§value: String
§

UserNsNotFound

The requested namespace user does not exist

Fields

§value: String
§

UserDbNotFound

The requested database user does not exist

Fields

§value: String
§

RealtimeDisabled

Unable to perform the realtime query

§

ComputationDepthExceeded

Reached excessive computation depth due to functions, subqueries, or futures

§

InvalidStatementTarget

Can not execute statement using the specified value

Fields

§value: String
§

CreateStatement

Can not execute CREATE statement using the specified value

Fields

§value: String
§

UpdateStatement

Can not execute UPDATE statement using the specified value

Fields

§value: String
§

RelateStatement

Can not execute RELATE statement using the specified value

Fields

§value: String
§

RelateStatementIn

Can not execute RELATE statement using the specified value

Fields

§value: String
§

RelateStatementId

Can not execute RELATE statement using the specified value

Fields

§value: String
§

RelateStatementOut

Can not execute RELATE statement using the specified value

Fields

§value: String
§

DeleteStatement

Can not execute DELETE statement using the specified value

Fields

§value: String
§

InsertStatement

Can not execute INSERT statement using the specified value

Fields

§value: String
§

InsertStatementIn

Can not execute INSERT statement using the specified value

Fields

§value: String
§

InsertStatementId

Can not execute INSERT statement using the specified value

Fields

§value: String
§

InsertStatementOut

Can not execute INSERT statement using the specified value

Fields

§value: String
§

LiveStatement

Can not execute LIVE statement using the specified value

Fields

§value: String
§

KillStatement

Can not execute KILL statement using the specified id

Fields

§value: String
§

SingleOnlyOutput

Can not execute CREATE statement using the specified value

§

TablePermissions

The permissions do not allow this query to be run on this table

Fields

§table: String
§

ParamPermissions

The permissions do not allow this query to be run on this table

Fields

§name: String
§

FunctionPermissions

The permissions do not allow this query to be run on this table

Fields

§name: String
§

TableIsView

The specified table can not be written as it is setup as a foreign table view

Fields

§table: String
§

RecordExists

A database entry for the specified record already exists

Fields

§thing: String
§

IndexExists

A database index entry for the specified record already exists

Fields

§thing: Thing
§index: String
§value: String
§

TableCheck

The specified table is not configured for the type of record being added

Fields

§thing: String
§relation: bool
§target_type: TableType
§

FieldCheck

The specified field did not conform to the field type check

Fields

§thing: String
§value: String
§field: Idiom
§check: String
§

FieldValue

The specified field did not conform to the field ASSERT clause

Fields

§thing: String
§value: String
§field: Idiom
§check: String
§

FieldReadonly

The specified field did not conform to the field ASSERT clause

Fields

§thing: String
§field: Idiom
§

IdMismatch

Found a record id for the record but we are creating a specific record

Fields

§value: String
§

IdInvalid

Found a record id for the record but this is not a valid id

Fields

§value: String
§

CoerceTo

Unable to coerce to a value to another value

Fields

§from: Value
§into: String
§

ConvertTo

Unable to convert a value to another value

Fields

§from: Value
§into: String
§

LengthInvalid

Unable to coerce to a value to another value

Fields

§kind: String
§size: usize
§

TryAdd(String, String)

Cannot perform addition

§

TrySub(String, String)

Cannot perform subtraction

§

TryMul(String, String)

Cannot perform multiplication

§

TryDiv(String, String)

Cannot perform division

§

TryRem(String, String)

Cannot perform remainder

§

TryPow(String, String)

Cannot perform power

§

TryNeg(String)

Cannot perform negation

§

TryFrom(String, &'static str)

It’s is not possible to convert between the two types

§

Http(String)

There was an error processing a remote HTTP request

§

Channel(String)

There was an error processing a value in parallel

§

Io(Error)

Represents an underlying error with IO encoding / decoding

§

Encode(Error)

Represents an error when encoding a key-value entry

§

Decode(Error)

Represents an error when decoding a key-value entry

§

Revision(Error)

Represents an underlying error with versioned data encoding / decoding

§

CorruptedIndex(&'static str)

The index has been found to be inconsistent

§

NoIndexFoundForMatch

The query planner did not find an index able to support the match @@ for a given expression

Fields

§value: String
§

AnalyzerError(String)

Represents an error when analyzing a value

§

HighlightError(String)

Represents an error when trying to highlight a value

§

Bincode(Box<ErrorKind>)

Represents an underlying error with Bincode serializing / deserializing

§

FstError(Error)

Represents an underlying error with FST

§

Utf8Error(FromUtf8Error)

Represents an underlying error while reading UTF8 characters

§

ObsError(Error)

Represents an underlying error with the Object Store

§

ModelComputation(String)

There was an error with model computation

§

FeatureNotYetImplemented

The feature has not yet being implemented

Fields

§feature: String
§

DuplicatedMatchRef

Duplicated match references are not allowed

Fields

§mr: u8
§

TimestampOverflow(String)

Represents a failure in timestamp arithmetic related to database internals

§

Internal(String)

Internal server error This should be used extremely sporadically, since we lose the type of error as a consequence There will be times when it is useful, such as with unusual type conversion errors

§

Unimplemented(String)

Unimplemented functionality

§

CorruptedVersionstampInKey(Error)

§

InvalidLevel(String)

Invalid level

§

IamError(Error)

Represents an underlying IAM error

§

ScriptingNotAllowed

Scripting is not allowed

§

FunctionNotAllowed(String)

Function is not allowed

§

NetTargetNotAllowed(String)

Network target is not allowed

§

TokenMakingFailed

§

NoRecordFound

§

SignupQueryFailed

§

SigninQueryFailed

§

MissingUserOrPass

§

NoSigninTarget

§

InvalidPass

§

InvalidAuth

There was an error with authentication

§

InvalidSignup

There was an error with signing up

§

UnknownAuth

Auth was expected to be set but was unknown

§

MissingTokenHeader(String)

Auth requires a token header which is missing

§

MissingTokenClaim(String)

Auth requires a token claim which is missing

§

TxKeyAlreadyExistsCategory(KeyCategory)

The key being inserted in the transaction already exists

§

MissingStorageEngine

The db is running without an available storage engine

§

AzAlreadyExists

The requested analyzer already exists

Fields

§value: String
§

DbAlreadyExists

The requested database already exists

Fields

§value: String
§

EvAlreadyExists

The requested event already exists

Fields

§value: String
§

FdAlreadyExists

The requested field already exists

Fields

§value: String
§

FcAlreadyExists

The requested function already exists

Fields

§value: String
§

IxAlreadyExists

The requested index already exists

Fields

§value: String
§

MlAlreadyExists

The requested model already exists

Fields

§value: String
§

NsAlreadyExists

The requested namespace already exists

Fields

§value: String
§

PaAlreadyExists

The requested param already exists

Fields

§value: String
§

TbAlreadyExists

The requested table already exists

Fields

§value: String
§

NtAlreadyExists

The requested namespace token already exists

Fields

§value: String
§

DtAlreadyExists

The requested database token already exists

Fields

§value: String
§

UserRootAlreadyExists

The requested user already exists

Fields

§value: String
§

UserNsAlreadyExists

The requested namespace user already exists

Fields

§value: String
§

UserDbAlreadyExists

The requested database user already exists

Fields

§value: String
§

ExpiredSession

The session has expired either because the token used to establish it has expired or because an expiration was explicitly defined when establishing it

§

NodeAgent(&'static str)

A node task has failed

§

LiveQueryError(LiveQueryCause)

An error related to live query occurred

§

Serialization(String)

The supplied type could not be serialiazed into sql::Value

§

AccessRootAlreadyExists

The requested root access method already exists

Fields

§value: String
§

AccessNsAlreadyExists

The requested namespace access method already exists

Fields

§value: String
§

AccessDbAlreadyExists

The requested database access method already exists

Fields

§value: String
§

AccessRootNotFound

The requested root access method does not exist

Fields

§value: String
§

AccessNsNotFound

The requested namespace access method does not exist

Fields

§value: String
§

AccessDbNotFound

The requested database access method does not exist

Fields

§value: String
§

AccessLevelMismatch

The access method cannot be defined on the requested level

§

AccessMethodMismatch

§

AccessNotFound

§

AccessInvalidDuration

§

AccessInvalidExpiration

§

AccessRecordSignupQueryFailed

§

AccessRecordSigninQueryFailed

§

AccessRecordNoSignup

§

AccessRecordNoSignin

§

TbInvalid

Found a table name for the record but this is not a valid table

Fields

§value: String

Trait Implementations§

Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl Error for Error

Source§

fn custom<T>(msg: T) -> Error
where T: Display,

Used when a Serialize implementation encounters any error while serializing a type. Read more
Source§

impl From<Box<ErrorKind>> for Error

Source§

fn from(source: Box<ErrorKind>) -> Error

Converts to this type from the input type.
Source§

impl From<CaughtError<'_>> for Error

Source§

fn from(e: CaughtError<'_>) -> Error

Converts to this type from the input type.
Source§

impl From<DecodeError> for Error

Source§

fn from(_: DecodeError) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Db) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(_: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for String

Source§

fn from(e: Error) -> String

Converts to this type from the input type.
Source§

impl From<FromUtf8Error> for Error

Source§

fn from(source: FromUtf8Error) -> Error

Converts to this type from the input type.
Source§

impl From<Reason> for Error

Source§

fn from(reason: Reason) -> Error

Converts to this type from the input type.
Source§

impl From<RecvError> for Error

Source§

fn from(e: RecvError) -> Error

Converts to this type from the input type.
Source§

impl From<RpcError> for Error

Source§

fn from(value: RpcError) -> Error

Converts to this type from the input type.
Source§

impl<T> From<SendError<T>> for Error

Source§

fn from(e: SendError<T>) -> Error

Converts to this type from the input type.
Source§

impl<S, D, I> From<SortError<S, D, I>> for Error
where S: Error, D: Error, I: Error,

Source§

fn from(e: SortError<S, D, I>) -> Error

Converts to this type from the input type.
Source§

impl Serialize for Error

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

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> AsErrorSource for T
where T: Error + 'static,

Source§

fn as_error_source(&self) -> &(dyn Error + 'static)

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers.
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> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
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> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. 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

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
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<T> ParallelSend for T
where T: Send,