Skip to main content

MsgType

Enum MsgType 

Source
#[non_exhaustive]
pub enum MsgType {
Show 186 variants Unknown, ReqMcGet, ReqMcGets, ReqMcDelete, ReqMcCas, ReqMcSet, ReqMcAdd, ReqMcReplace, ReqMcAppend, ReqMcPrepend, ReqMcIncr, ReqMcDecr, ReqMcTouch, ReqMcQuit, RspMcNum, RspMcStored, RspMcNotStored, RspMcExists, RspMcNotFound, RspMcEnd, RspMcValue, RspMcDeleted, RspMcTouched, RspMcError, RspMcClientError, RspMcServerError, ReqRedisDel, ReqRedisExists, ReqRedisExpire, ReqRedisExpireat, ReqRedisPexpire, ReqRedisPexpireat, ReqRedisPersist, ReqRedisPttl, ReqRedisScan, ReqRedisSort, ReqRedisTtl, ReqRedisType, ReqRedisAppend, ReqRedisBitcount, ReqRedisBitpos, ReqRedisDecr, ReqRedisDecrby, ReqRedisDump, ReqRedisGet, ReqRedisGetbit, ReqRedisGetrange, ReqRedisGetset, ReqRedisIncr, ReqRedisIncrby, ReqRedisIncrbyfloat, ReqRedisMset, ReqRedisMget, ReqRedisPsetex, ReqRedisRestore, ReqRedisSet, ReqRedisSetbit, ReqRedisSetex, ReqRedisSetnx, ReqRedisSetrange, ReqRedisStrlen, ReqRedisHdel, ReqRedisHexists, ReqRedisHget, ReqRedisHgetall, ReqRedisHincrby, ReqRedisHincrbyfloat, ReqRedisHkeys, ReqRedisHlen, ReqRedisHmget, ReqRedisHmset, ReqRedisHset, ReqRedisHsetnx, ReqRedisHscan, ReqRedisHvals, ReqRedisHstrlen, ReqRedisKeys, ReqRedisInfo, ReqRedisLindex, ReqRedisLinsert, ReqRedisLlen, ReqRedisLpop, ReqRedisLpush, ReqRedisLpushx, ReqRedisLrange, ReqRedisLrem, ReqRedisLset, ReqRedisLtrim, ReqRedisPing, ReqRedisQuit, ReqRedisRpop, ReqRedisRpoplpush, ReqRedisRpush, ReqRedisRpushx, ReqRedisSadd, ReqRedisScard, ReqRedisSdiff, ReqRedisSdiffstore, ReqRedisSinter, ReqRedisSinterstore, ReqRedisSismember, ReqRedisSlaveof, ReqRedisSmembers, ReqRedisSmove, ReqRedisSpop, ReqRedisSrandmember, ReqRedisSrem, ReqRedisSunion, ReqRedisSunionstore, ReqRedisSscan, ReqRedisZadd, ReqRedisZcard, ReqRedisZcount, ReqRedisZincrby, ReqRedisZinterstore, ReqRedisZlexcount, ReqRedisZrange, ReqRedisZrangebylex, ReqRedisZrangebyscore, ReqRedisZrank, ReqRedisZrem, ReqRedisZremrangebyrank, ReqRedisZremrangebylex, ReqRedisZremrangebyscore, ReqRedisZrevrange, ReqRedisZrevrangebylex, ReqRedisZrevrangebyscore, ReqRedisZrevrank, ReqRedisZscore, ReqRedisZunionstore, ReqRedisZscan, ReqRedisEval, ReqRedisEvalsha, ReqRedisGeoadd, ReqRedisGeoradius, ReqRedisGeodist, ReqRedisGeohash, ReqRedisGeopos, ReqRedisGeoradiusbymember, ReqRedisUnlink, ReqRedisJsonset, ReqRedisJsonget, ReqRedisJsondel, ReqRedisJsontype, ReqRedisJsonmget, ReqRedisJsonarrappend, ReqRedisJsonarrinsert, ReqRedisJsonarrlen, ReqRedisJsonobjkeys, ReqRedisJsonobjlen, ReqRedisPfadd, ReqRedisPfcount, ReqRedisConfig, ReqRedisScript, ReqRedisScriptLoad, ReqRedisScriptExists, ReqRedisScriptFlush, ReqRedisScriptKill, RspRedisStatus, RspRedisInteger, RspRedisBulk, RspRedisMultibulk, RspRedisError, RspRedisErrorErr, RspRedisErrorOom, RspRedisErrorBusy, RspRedisErrorNoauth, RspRedisErrorLoading, RspRedisErrorBusykey, RspRedisErrorMisconf, RspRedisErrorNoscript, RspRedisErrorReadonly, RspRedisErrorWrongtype, RspRedisErrorExecabort, RspRedisErrorMasterdown, RspRedisErrorNoreplicas, HackSettingConnConsistency, Sentinel, ReqRedisFtCreate, ReqRedisFtSearch, ReqRedisFtInfo, ReqRedisFtList, ReqRedisFtDropindex, ReqRedisFtRegex, ReqRedisFtUnknown, EndIdx,
}
Expand description

Message type discriminant.

Variants enumerate every datastore command and response class supported by the engine, in declaration order.

§Examples

use dynomite::msg::MsgType;

assert_eq!(MsgType::Unknown.as_index(), 0);
assert_eq!(MsgType::ReqMcGet.name(), "REQ_MC_GET");
assert!(MsgType::ReqRedisGet.is_request());

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

Unknown

UNKNOWN

§

ReqMcGet

REQ_MC_GET

§

ReqMcGets

REQ_MC_GETS

§

ReqMcDelete

REQ_MC_DELETE

§

ReqMcCas

REQ_MC_CAS

§

ReqMcSet

REQ_MC_SET

§

ReqMcAdd

REQ_MC_ADD

§

ReqMcReplace

REQ_MC_REPLACE

§

ReqMcAppend

REQ_MC_APPEND

§

ReqMcPrepend

REQ_MC_PREPEND

§

ReqMcIncr

REQ_MC_INCR

§

ReqMcDecr

REQ_MC_DECR

§

ReqMcTouch

REQ_MC_TOUCH

§

ReqMcQuit

REQ_MC_QUIT

§

RspMcNum

RSP_MC_NUM

§

RspMcStored

RSP_MC_STORED

§

RspMcNotStored

RSP_MC_NOT_STORED

§

RspMcExists

RSP_MC_EXISTS

§

RspMcNotFound

RSP_MC_NOT_FOUND

§

RspMcEnd

RSP_MC_END

§

RspMcValue

RSP_MC_VALUE

§

RspMcDeleted

RSP_MC_DELETED

§

RspMcTouched

RSP_MC_TOUCHED

§

RspMcError

RSP_MC_ERROR

§

RspMcClientError

RSP_MC_CLIENT_ERROR

§

RspMcServerError

RSP_MC_SERVER_ERROR

§

ReqRedisDel

REQ_REDIS_DEL

§

ReqRedisExists

REQ_REDIS_EXISTS

§

ReqRedisExpire

REQ_REDIS_EXPIRE

§

ReqRedisExpireat

REQ_REDIS_EXPIREAT

§

ReqRedisPexpire

REQ_REDIS_PEXPIRE

§

ReqRedisPexpireat

REQ_REDIS_PEXPIREAT

§

ReqRedisPersist

REQ_REDIS_PERSIST

§

ReqRedisPttl

REQ_REDIS_PTTL

§

ReqRedisScan

REQ_REDIS_SCAN

§

ReqRedisSort

REQ_REDIS_SORT

§

ReqRedisTtl

REQ_REDIS_TTL

§

ReqRedisType

REQ_REDIS_TYPE

§

ReqRedisAppend

REQ_REDIS_APPEND

§

ReqRedisBitcount

REQ_REDIS_BITCOUNT

§

ReqRedisBitpos

REQ_REDIS_BITPOS

§

ReqRedisDecr

REQ_REDIS_DECR

§

ReqRedisDecrby

REQ_REDIS_DECRBY

§

ReqRedisDump

REQ_REDIS_DUMP

§

ReqRedisGet

REQ_REDIS_GET

§

ReqRedisGetbit

REQ_REDIS_GETBIT

§

ReqRedisGetrange

REQ_REDIS_GETRANGE

§

ReqRedisGetset

REQ_REDIS_GETSET

§

ReqRedisIncr

REQ_REDIS_INCR

§

ReqRedisIncrby

REQ_REDIS_INCRBY

§

ReqRedisIncrbyfloat

REQ_REDIS_INCRBYFLOAT

§

ReqRedisMset

REQ_REDIS_MSET

§

ReqRedisMget

REQ_REDIS_MGET

§

ReqRedisPsetex

REQ_REDIS_PSETEX

§

ReqRedisRestore

REQ_REDIS_RESTORE

§

ReqRedisSet

REQ_REDIS_SET

§

ReqRedisSetbit

REQ_REDIS_SETBIT

§

ReqRedisSetex

REQ_REDIS_SETEX

§

ReqRedisSetnx

REQ_REDIS_SETNX

§

ReqRedisSetrange

REQ_REDIS_SETRANGE

§

ReqRedisStrlen

REQ_REDIS_STRLEN

§

ReqRedisHdel

REQ_REDIS_HDEL

§

ReqRedisHexists

REQ_REDIS_HEXISTS

§

ReqRedisHget

REQ_REDIS_HGET

§

ReqRedisHgetall

REQ_REDIS_HGETALL

§

ReqRedisHincrby

REQ_REDIS_HINCRBY

§

ReqRedisHincrbyfloat

REQ_REDIS_HINCRBYFLOAT

§

ReqRedisHkeys

REQ_REDIS_HKEYS

§

ReqRedisHlen

REQ_REDIS_HLEN

§

ReqRedisHmget

REQ_REDIS_HMGET

§

ReqRedisHmset

REQ_REDIS_HMSET

§

ReqRedisHset

REQ_REDIS_HSET

§

ReqRedisHsetnx

REQ_REDIS_HSETNX

§

ReqRedisHscan

REQ_REDIS_HSCAN

§

ReqRedisHvals

REQ_REDIS_HVALS

§

ReqRedisHstrlen

REQ_REDIS_HSTRLEN

§

ReqRedisKeys

REQ_REDIS_KEYS

§

ReqRedisInfo

REQ_REDIS_INFO

§

ReqRedisLindex

REQ_REDIS_LINDEX

§

ReqRedisLinsert

REQ_REDIS_LINSERT

§

ReqRedisLlen

REQ_REDIS_LLEN

§

ReqRedisLpop

REQ_REDIS_LPOP

§

ReqRedisLpush

REQ_REDIS_LPUSH

§

ReqRedisLpushx

REQ_REDIS_LPUSHX

§

ReqRedisLrange

REQ_REDIS_LRANGE

§

ReqRedisLrem

REQ_REDIS_LREM

§

ReqRedisLset

REQ_REDIS_LSET

§

ReqRedisLtrim

REQ_REDIS_LTRIM

§

ReqRedisPing

REQ_REDIS_PING

§

ReqRedisQuit

REQ_REDIS_QUIT

§

ReqRedisRpop

REQ_REDIS_RPOP

§

ReqRedisRpoplpush

REQ_REDIS_RPOPLPUSH

§

ReqRedisRpush

REQ_REDIS_RPUSH

§

ReqRedisRpushx

REQ_REDIS_RPUSHX

§

ReqRedisSadd

REQ_REDIS_SADD

§

ReqRedisScard

REQ_REDIS_SCARD

§

ReqRedisSdiff

REQ_REDIS_SDIFF

§

ReqRedisSdiffstore

REQ_REDIS_SDIFFSTORE

§

ReqRedisSinter

REQ_REDIS_SINTER

§

ReqRedisSinterstore

REQ_REDIS_SINTERSTORE

§

ReqRedisSismember

REQ_REDIS_SISMEMBER

§

ReqRedisSlaveof

REQ_REDIS_SLAVEOF

§

ReqRedisSmembers

REQ_REDIS_SMEMBERS

§

ReqRedisSmove

REQ_REDIS_SMOVE

§

ReqRedisSpop

REQ_REDIS_SPOP

§

ReqRedisSrandmember

REQ_REDIS_SRANDMEMBER

§

ReqRedisSrem

REQ_REDIS_SREM

§

ReqRedisSunion

REQ_REDIS_SUNION

§

ReqRedisSunionstore

REQ_REDIS_SUNIONSTORE

§

ReqRedisSscan

REQ_REDIS_SSCAN

§

ReqRedisZadd

REQ_REDIS_ZADD

§

ReqRedisZcard

REQ_REDIS_ZCARD

§

ReqRedisZcount

REQ_REDIS_ZCOUNT

§

ReqRedisZincrby

REQ_REDIS_ZINCRBY

§

ReqRedisZinterstore

REQ_REDIS_ZINTERSTORE

§

ReqRedisZlexcount

REQ_REDIS_ZLEXCOUNT

§

ReqRedisZrange

REQ_REDIS_ZRANGE

§

ReqRedisZrangebylex

REQ_REDIS_ZRANGEBYLEX

§

ReqRedisZrangebyscore

REQ_REDIS_ZRANGEBYSCORE

§

ReqRedisZrank

REQ_REDIS_ZRANK

§

ReqRedisZrem

REQ_REDIS_ZREM

§

ReqRedisZremrangebyrank

REQ_REDIS_ZREMRANGEBYRANK

§

ReqRedisZremrangebylex

REQ_REDIS_ZREMRANGEBYLEX

§

ReqRedisZremrangebyscore

REQ_REDIS_ZREMRANGEBYSCORE

§

ReqRedisZrevrange

REQ_REDIS_ZREVRANGE

§

ReqRedisZrevrangebylex

REQ_REDIS_ZREVRANGEBYLEX

§

ReqRedisZrevrangebyscore

REQ_REDIS_ZREVRANGEBYSCORE

§

ReqRedisZrevrank

REQ_REDIS_ZREVRANK

§

ReqRedisZscore

REQ_REDIS_ZSCORE

§

ReqRedisZunionstore

REQ_REDIS_ZUNIONSTORE

§

ReqRedisZscan

REQ_REDIS_ZSCAN

§

ReqRedisEval

REQ_REDIS_EVAL

§

ReqRedisEvalsha

REQ_REDIS_EVALSHA

§

ReqRedisGeoadd

REQ_REDIS_GEOADD

§

ReqRedisGeoradius

REQ_REDIS_GEORADIUS

§

ReqRedisGeodist

REQ_REDIS_GEODIST

§

ReqRedisGeohash

REQ_REDIS_GEOHASH

§

ReqRedisGeopos

REQ_REDIS_GEOPOS

§

ReqRedisGeoradiusbymember

REQ_REDIS_GEORADIUSBYMEMBER

REQ_REDIS_UNLINK

§

ReqRedisJsonset

REQ_REDIS_JSONSET

§

ReqRedisJsonget

REQ_REDIS_JSONGET

§

ReqRedisJsondel

REQ_REDIS_JSONDEL

§

ReqRedisJsontype

REQ_REDIS_JSONTYPE

§

ReqRedisJsonmget

REQ_REDIS_JSONMGET

§

ReqRedisJsonarrappend

REQ_REDIS_JSONARRAPPEND

§

ReqRedisJsonarrinsert

REQ_REDIS_JSONARRINSERT

§

ReqRedisJsonarrlen

REQ_REDIS_JSONARRLEN

§

ReqRedisJsonobjkeys

REQ_REDIS_JSONOBJKEYS

§

ReqRedisJsonobjlen

REQ_REDIS_JSONOBJLEN

§

ReqRedisPfadd

REQ_REDIS_PFADD

§

ReqRedisPfcount

REQ_REDIS_PFCOUNT

§

ReqRedisConfig

REQ_REDIS_CONFIG

§

ReqRedisScript

REQ_REDIS_SCRIPT

§

ReqRedisScriptLoad

REQ_REDIS_SCRIPT_LOAD

§

ReqRedisScriptExists

REQ_REDIS_SCRIPT_EXISTS

§

ReqRedisScriptFlush

REQ_REDIS_SCRIPT_FLUSH

§

ReqRedisScriptKill

REQ_REDIS_SCRIPT_KILL

§

RspRedisStatus

RSP_REDIS_STATUS

§

RspRedisInteger

RSP_REDIS_INTEGER

§

RspRedisBulk

RSP_REDIS_BULK

§

RspRedisMultibulk

RSP_REDIS_MULTIBULK

§

RspRedisError

RSP_REDIS_ERROR

§

RspRedisErrorErr

RSP_REDIS_ERROR_ERR

§

RspRedisErrorOom

RSP_REDIS_ERROR_OOM

§

RspRedisErrorBusy

RSP_REDIS_ERROR_BUSY

§

RspRedisErrorNoauth

RSP_REDIS_ERROR_NOAUTH

§

RspRedisErrorLoading

RSP_REDIS_ERROR_LOADING

§

RspRedisErrorBusykey

RSP_REDIS_ERROR_BUSYKEY

§

RspRedisErrorMisconf

RSP_REDIS_ERROR_MISCONF

§

RspRedisErrorNoscript

RSP_REDIS_ERROR_NOSCRIPT

§

RspRedisErrorReadonly

RSP_REDIS_ERROR_READONLY

§

RspRedisErrorWrongtype

RSP_REDIS_ERROR_WRONGTYPE

§

RspRedisErrorExecabort

RSP_REDIS_ERROR_EXECABORT

§

RspRedisErrorMasterdown

RSP_REDIS_ERROR_MASTERDOWN

§

RspRedisErrorNoreplicas

RSP_REDIS_ERROR_NOREPLICAS

§

HackSettingConnConsistency

HACK_SETTING_CONN_CONSISTENCY

§

Sentinel

SENTINEL

§

ReqRedisFtCreate

REQ_REDIS_FT_CREATE

§

ReqRedisFtSearch

REQ_REDIS_FT_SEARCH

§

ReqRedisFtInfo

REQ_REDIS_FT_INFO

§

ReqRedisFtList

REQ_REDIS_FT_LIST

§

ReqRedisFtDropindex

REQ_REDIS_FT_DROPINDEX

§

ReqRedisFtRegex

REQ_REDIS_FT_REGEX

§

ReqRedisFtUnknown

REQ_REDIS_FT_UNKNOWN

§

EndIdx

END_IDX

Implementations§

Source§

impl MsgType

Source

pub const COUNT: usize

Number of declared variants, including Unknown, Sentinel, and EndIdx.

§Examples
use dynomite::msg::MsgType;
assert!(MsgType::COUNT > 100);
Source

pub const fn as_index(self) -> u32

Integer index of this variant. Matches the integer value the reference engine assigns to the corresponding MSG_TYPE_CODEC entry.

§Examples
use dynomite::msg::MsgType;
assert_eq!(MsgType::Unknown.as_index(), 0);
assert_eq!(MsgType::ReqMcGet.as_index(), 1);
Source

pub fn from_index(index: u32) -> Option<MsgType>

Recover the variant from its integer index. Returns None when index is out of range.

§Examples
use dynomite::msg::MsgType;

assert_eq!(MsgType::from_index(0), Some(MsgType::Unknown));
assert_eq!(MsgType::from_index(MsgType::COUNT as u32), None);
Source

pub fn name(&self) -> &'static str

Canonical uppercase name as it appears in the C source.

§Examples
use dynomite::msg::MsgType;
assert_eq!(MsgType::ReqRedisGet.name(), "REQ_REDIS_GET");
assert_eq!(MsgType::EndIdx.name(), "END_IDX");
Source

pub fn is_request(&self) -> bool

True when this variant identifies a datastore request (REQ_*).

§Examples
use dynomite::msg::MsgType;
assert!(MsgType::ReqMcGet.is_request());
assert!(!MsgType::RspMcStored.is_request());
assert!(!MsgType::Unknown.is_request());
Source

pub fn is_response(&self) -> bool

True when this variant identifies a datastore response (RSP_*).

§Examples
use dynomite::msg::MsgType;
assert!(MsgType::RspRedisBulk.is_response());
assert!(!MsgType::ReqMcGet.is_response());

Trait Implementations§

Source§

impl Clone for MsgType

Source§

fn clone(&self) -> MsgType

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 MsgType

Source§

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

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

impl Display for MsgType

Source§

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

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

impl Hash for MsgType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for MsgType

Source§

fn eq(&self, other: &MsgType) -> 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 Copy for MsgType

Source§

impl Eq for MsgType

Source§

impl StructuralPartialEq for MsgType

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§

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

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

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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> 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, 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<T> Boilerplate for T
where T: Copy + Send + Sync + Debug + PartialEq + 'static,

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

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,