__Deref

Trait __Deref 

1.0.0 (const: unstable) · Source
pub trait __Deref {
    type Target: ?Sized;

    // Required method
    fn deref(&self) -> &Self::Target;
}
Expand description

Used for immutable dereferencing operations, like *v.

In addition to being used for explicit dereferencing operations with the (unary) * operator in immutable contexts, Deref is also used implicitly by the compiler in many circumstances. This mechanism is called Deref coercion”. In mutable contexts, DerefMut is used and mutable deref coercion similarly occurs.

Warning: Deref coercion is a powerful language feature which has far-reaching implications for every type that implements Deref. The compiler will silently insert calls to Deref::deref. For this reason, one should be careful about implementing Deref and only do so when deref coercion is desirable. See below for advice on when this is typically desirable or undesirable.

Types that implement Deref or DerefMut are often called “smart pointers” and the mechanism of deref coercion has been specifically designed to facilitate the pointer-like behavior that name suggests. Often, the purpose of a “smart pointer” type is to change the ownership semantics of a contained value (for example, Rc or Cow) or the storage semantics of a contained value (for example, Box).

§Deref coercion

If T implements Deref<Target = U>, and v is a value of type T, then:

  • In immutable contexts, *v (where T is neither a reference nor a raw pointer) is equivalent to *Deref::deref(&v).
  • Values of type &T are coerced to values of type &U
  • T implicitly implements all the methods of the type U which take the &self receiver.

For more details, visit the chapter in The Rust Programming Language as well as the reference sections on the dereference operator, method resolution, and type coercions.

§When to implement Deref or DerefMut

The same advice applies to both deref traits. In general, deref traits should be implemented if:

  1. a value of the type transparently behaves like a value of the target type;
  2. the implementation of the deref function is cheap; and
  3. users of the type will not be surprised by any deref coercion behavior.

In general, deref traits should not be implemented if:

  1. the deref implementations could fail unexpectedly; or
  2. the type has methods that are likely to collide with methods on the target type; or
  3. committing to deref coercion as part of the public API is not desirable.

Note that there’s a large difference between implementing deref traits generically over many target types, and doing so only for specific target types.

Generic implementations, such as for Box<T> (which is generic over every type and dereferences to T) should be careful to provide few or no methods, since the target type is unknown and therefore every method could collide with one on the target type, causing confusion for users. impl<T> Box<T> has no methods (though several associated functions), partly for this reason.

Specific implementations, such as for String (whose Deref implementation has Target = str) can have many methods, since avoiding collision is much easier. String and str both have many methods, and String additionally behaves as if it has every method of str because of deref coercion. The implementing type may also be generic while the implementation is still specific in this sense; for example, Vec<T> dereferences to [T], so methods of T are not applicable.

Consider also that deref coercion means that deref traits are a much larger part of a type’s public API than any other trait as it is implicitly called by the compiler. Therefore, it is advisable to consider whether this is something you are comfortable supporting as a public API.

The AsRef and Borrow traits have very similar signatures to Deref. It may be desirable to implement either or both of these, whether in addition to or rather than deref traits. See their documentation for details.

§Fallibility

This trait’s method should never unexpectedly fail. Deref coercion means the compiler will often insert calls to Deref::deref implicitly. Failure during dereferencing can be extremely confusing when Deref is invoked implicitly. In the majority of uses it should be infallible, though it may be acceptable to panic if the type is misused through programmer error, for example.

However, infallibility is not enforced and therefore not guaranteed. As such, unsafe code should not rely on infallibility in general for soundness.

§Examples

A struct with a single field which is accessible by dereferencing the struct.

use std::ops::Deref;

struct DerefExample<T> {
    value: T
}

impl<T> Deref for DerefExample<T> {
    type Target = T;

    fn deref(&self) -> &Self::Target {
        &self.value
    }
}

let x = DerefExample { value: 'a' };
assert_eq!('a', *x);

Required Associated Types§

1.0.0 · Source

type Target: ?Sized

The resulting type after dereferencing.

Required Methods§

1.0.0 · Source

fn deref(&self) -> &Self::Target

Dereferences the value.

Implementors§

Source§

impl Deref for Unix

Source§

type Target = UCred

§

impl Deref for DiscoveryItem

§

impl Deref for NodeInfo

§

impl Deref for PublicKey

§

type Target = [u8; 32]

§

impl Deref for RelayUrl

Dereferences to the wrapped Url.

Note that DerefMut is not implemented on purpose, so this type has more flexibility to change the inner later.

§

type Target = Url

§

impl Deref for jetstream::websocket::tokio_tungstenite::tungstenite::Bytes

§

type Target = [u8]

§

impl Deref for Utf8Bytes

§

type Target = str

Source§

impl Deref for ByteString

1.0.0 · Source§

impl Deref for CString

1.0.0 · Source§

impl Deref for alloc::string::String

Source§

impl Deref for ByteStr

1.0.0 · Source§

impl Deref for OsString

1.0.0 · Source§

impl Deref for PathBuf

Source§

impl Deref for anyhow::Error

Source§

type Target = dyn Error + Send + Sync

Source§

impl Deref for Collator

Source§

impl Deref for DateTimeFormat

Source§

impl Deref for NumberFormat

Source§

impl Deref for PluralRules

Source§

impl Deref for RelativeTimeFormat

Source§

impl Deref for CompileError

Source§

impl Deref for Exception

Source§

impl Deref for Global

Source§

impl Deref for Instance

Source§

impl Deref for LinkError

Source§

impl Deref for Memory

Source§

impl Deref for Module

Source§

impl Deref for RuntimeError

Source§

impl Deref for Table

Source§

impl Deref for Tag

Source§

impl Deref for js_sys::Array

Source§

impl Deref for ArrayBuffer

Source§

impl Deref for AsyncIterator

Source§

impl Deref for BigInt64Array

Source§

impl Deref for BigInt

Source§

impl Deref for BigUint64Array

Source§

impl Deref for Boolean

Source§

impl Deref for DataView

Source§

impl Deref for Date

Source§

impl Deref for js_sys::Error

Source§

impl Deref for EvalError

Source§

impl Deref for Float32Array

Source§

impl Deref for Float64Array

Source§

impl Deref for Function

Source§

impl Deref for Generator

Source§

impl Deref for Int8Array

Source§

impl Deref for Int16Array

Source§

impl Deref for Int32Array

Source§

impl Deref for Iterator

Source§

impl Deref for IteratorNext

Source§

impl Deref for JsString

Source§

impl Deref for Map

Source§

impl Deref for Number

Source§

impl Deref for Object

Source§

impl Deref for Promise

Source§

impl Deref for Proxy

Source§

impl Deref for RangeError

Source§

impl Deref for ReferenceError

Source§

impl Deref for RegExp

Source§

impl Deref for Set

Source§

impl Deref for SharedArrayBuffer

Source§

impl Deref for Symbol

Source§

impl Deref for SyntaxError

Source§

impl Deref for TypeError

Source§

impl Deref for Uint8Array

Source§

impl Deref for Uint8ClampedArray

Source§

impl Deref for Uint16Array

Source§

impl Deref for Uint32Array

Source§

impl Deref for UriError

Source§

impl Deref for WeakMap

Source§

impl Deref for WeakRef

Source§

impl Deref for WeakSet

Source§

impl Deref for Asn1BitString

Source§

impl Deref for Asn1Enumerated

Source§

impl Deref for Asn1GeneralizedTime

Source§

impl Deref for Asn1Integer

Source§

impl Deref for Asn1Object

Source§

impl Deref for Asn1OctetString

Source§

impl Deref for Asn1String

Source§

impl Deref for Asn1Time

Source§

impl Deref for BigNum

Source§

impl Deref for BigNumContext

Source§

impl Deref for Cipher

Source§

impl Deref for CipherCtx

Source§

impl Deref for CmsContentInfo

Source§

impl Deref for Conf

Source§

impl Deref for DsaSig

Source§

impl Deref for EcGroup

Source§

impl Deref for EcPoint

Source§

impl Deref for EcdsaSig

Source§

impl Deref for DigestBytes

Source§

impl Deref for LibCtx

Source§

impl Deref for Md

Source§

impl Deref for MdCtx

Source§

impl Deref for OcspBasicResponse

Source§

impl Deref for OcspCertId

Source§

impl Deref for OcspOneReq

Source§

impl Deref for OcspRequest

Source§

impl Deref for OcspResponse

Source§

impl Deref for Pkcs7

Source§

impl Deref for Pkcs7Signed

Source§

impl Deref for Pkcs7SignerInfo

Source§

impl Deref for Pkcs12

Source§

impl Deref for Provider

Source§

impl Deref for SrtpProtectionProfile

Source§

impl Deref for ConnectConfiguration

Source§

impl Deref for SslAcceptorBuilder

Source§

impl Deref for SslConnectorBuilder

Source§

impl Deref for Ssl

Source§

impl Deref for SslCipher

Source§

impl Deref for SslContext

Source§

impl Deref for SslSession

Source§

impl Deref for OpensslString

Source§

impl Deref for OpensslStringRef

Source§

impl Deref for X509Store

Source§

impl Deref for X509StoreBuilder

Source§

impl Deref for AccessDescription

Source§

impl Deref for DistPoint

Source§

impl Deref for DistPointName

Source§

impl Deref for GeneralName

Source§

impl Deref for X509

Source§

impl Deref for X509Algorithm

Source§

impl Deref for X509Crl

Source§

impl Deref for X509Extension

Source§

impl Deref for X509Name

Source§

impl Deref for X509NameEntry

Source§

impl Deref for X509Object

Source§

impl Deref for X509Req

Source§

impl Deref for X509Revoked

Source§

impl Deref for X509StoreContext

Source§

impl Deref for X509VerifyParam

Source§

impl Deref for ByteBuf

Source§

impl Deref for serde_bytes::bytes::Bytes

Source§

impl Deref for AbortController

Source§

impl Deref for web_sys::features::gen_AbortSignal::AbortSignal

Source§

impl Deref for Blob

Source§

impl Deref for Cache

Source§

impl Deref for CacheQueryOptions

Source§

impl Deref for CacheStorage

Source§

impl Deref for CloseEvent

Source§

impl Deref for ErrorEvent

Source§

impl Deref for Event

Source§

impl Deref for EventTarget

Source§

impl Deref for File

Source§

impl Deref for FormData

Source§

impl Deref for Headers

Source§

impl Deref for MessageEvent

Source§

impl Deref for ProgressEvent

Source§

impl Deref for QueuingStrategy

Source§

impl Deref for ReadableByteStreamController

Source§

impl Deref for ReadableStream

Source§

impl Deref for ReadableStreamByobReader

Source§

impl Deref for ReadableStreamByobRequest

Source§

impl Deref for ReadableStreamDefaultController

Source§

impl Deref for ReadableStreamDefaultReader

Source§

impl Deref for ReadableStreamGetReaderOptions

Source§

impl Deref for ReadableStreamReadResult

Source§

impl Deref for ReadableWritablePair

Source§

impl Deref for Request

Source§

impl Deref for RequestInit

Source§

impl Deref for Response

Source§

impl Deref for ResponseInit

Source§

impl Deref for StreamPipeOptions

Source§

impl Deref for TransformStream

Source§

impl Deref for TransformStreamDefaultController

Source§

impl Deref for Transformer

Source§

impl Deref for UnderlyingSink

Source§

impl Deref for UnderlyingSource

Source§

impl Deref for WebSocket

Source§

impl Deref for WorkerGlobalScope

Source§

impl Deref for WritableStream

Source§

impl Deref for WritableStreamDefaultController

Source§

impl Deref for WritableStreamDefaultWriter

§

impl Deref for EnteredSpan

§

type Target = Span

Source§

impl Deref for Data

§

impl Deref for A

§

impl Deref for AAAA

§

impl Deref for ANAME

§

type Target = Name

§

impl Deref for AbortSignal

§

impl Deref for AckDelayExponent

§

type Target = u8

§

impl Deref for ActiveConnectionIdLimit

§

type Target = VarInt

§

impl Deref for Ai

§

impl Deref for AlgorithmIdentifier

§

type Target = [u8]

§

impl Deref for AnalyticsEngineDataset

§

impl Deref for Attributes

§

type Target = [Attribute]

§

impl Deref for BorrowedPayload<'_>

§

type Target = [u8]

§

impl Deref for BytesMut

§

type Target = [u8]

§

impl Deref for CNAME

§

type Target = Name

§

impl Deref for CertificateDer<'_>

§

type Target = [u8]

§

impl Deref for CertificateRevocationListDer<'_>

§

type Target = [u8]

§

impl Deref for CertificateSigningRequestDer<'_>

§

type Target = [u8]

§

impl Deref for CfVersionMetadata

§

impl Deref for Chunk<'_>

§

type Target = [u8]

§

impl Deref for ClientConnection

§

type Target = ConnectionCommon<ClientConnectionData>

§

impl Deref for ClientConnection

§

type Target = ConnectionCommon<ClientConnectionData>

§

impl Deref for ColoredString

§

type Target = str

§

impl Deref for Connection

§

type Target = CommonState

§

impl Deref for Connection

§

type Target = CommonState

§

impl Deref for ConnectionId

§

type Target = [u8]

§

impl Deref for ConnectionId

§

type Target = [u8]

§

impl Deref for Container

§

impl Deref for Context

§

impl Deref for CurrencyType

§

type Target = TinyAsciiStr<3>

§

impl Deref for D1Database

§

impl Deref for D1ExecResult

§

impl Deref for D1PreparedStatement

§

impl Deref for D1Result

§

impl Deref for DataMarkerAttributes

§

type Target = str

§

impl Deref for Der<'_>

§

type Target = [u8]

§

impl Deref for Digest

§

type Target = [u8; 16]

§

impl Deref for DigestStream

§

impl Deref for DnsRequest

§

type Target = Message

§

impl Deref for DnsResponse

§

type Target = Message

§

impl Deref for DurableObject

§

impl Deref for DurableObjectId

§

impl Deref for DurableObjectNamespace

§

impl Deref for DurableObjectState

§

impl Deref for DurableObjectStorage

§

impl Deref for DurableObjectTransaction

§

impl Deref for DynamicDispatcher

§

impl Deref for EcdsaSigningAlgorithm

§

type Target = EcdsaVerificationAlgorithm

§

impl Deref for EchConfigListBytes<'_>

§

type Target = [u8]

§

impl Deref for Env

§

impl Deref for Error

§

type Target = u64

§

impl Deref for Fetcher

§

impl Deref for FixedLengthStream

§

impl Deref for HTTPS

§

type Target = SVCB

§

impl Deref for Hyperdrive

§

impl Deref for Ia5String

§

type Target = StringOwned

§

impl Deref for IncomingRequestCfProperties

§

impl Deref for InitialMaxData

§

type Target = VarInt

§

impl Deref for InitialMaxStreamDataBidiLocal

§

type Target = VarInt

§

impl Deref for InitialMaxStreamDataBidiRemote

§

type Target = VarInt

§

impl Deref for InitialMaxStreamDataUni

§

type Target = VarInt

§

impl Deref for InitialMaxStreamsBidi

§

type Target = VarInt

§

impl Deref for InitialMaxStreamsUni

§

type Target = VarInt

§

impl Deref for InitialSourceConnectionId

§

type Target = UnboundedId

§

impl Deref for LocalAddress

§

type Target = SocketAddress

§

impl Deref for LowerName

§

type Target = Name

§

impl Deref for MaxAckDelay

§

type Target = VarInt

§

impl Deref for MaxDatagramFrameSize

§

type Target = VarInt

§

impl Deref for MaxIdleTimeout

§

type Target = VarInt

§

impl Deref for MaxUdpPayloadSize

§

type Target = VarInt

§

impl Deref for Message

§

type Target = Header

§

impl Deref for Message

§

impl Deref for MessageBatch

§

impl Deref for NS

§

type Target = Name

§

impl Deref for NameServerConfigGroup

§

type Target = Vec<NameServerConfig>

§

impl Deref for NumberingSystem

§

type Target = Subtag

§

impl Deref for OriginalDestinationConnectionId

§

type Target = InitialId

§

impl Deref for PTR

§

type Target = Name

§

impl Deref for Payload

§

type Target = [u8]

§

impl Deref for PotentialUtf8

§

type Target = [u8]

§

impl Deref for PrintableString

§

type Target = StringOwned

§

impl Deref for Private

§

type Target = [Subtag]

§

impl Deref for Queue

§

impl Deref for R2Bucket

§

impl Deref for R2HttpMetadata

§

impl Deref for R2MultipartUpload

§

impl Deref for R2Object

§

impl Deref for R2ObjectBody

§

type Target = R2Object

§

impl Deref for R2Objects

§

impl Deref for R2UploadedPart

§

impl Deref for Ranges

§

type Target = IntervalSet<PacketNumber>

§

impl Deref for RateLimiter

§

impl Deref for RegionOverride

§

type Target = SubdivisionId

§

impl Deref for RegionalSubdivision

§

type Target = SubdivisionId

§

impl Deref for RemoteAddress

§

type Target = SocketAddress

§

impl Deref for RetrySourceConnectionId

§

type Target = LocalId

§

impl Deref for SHOULD_COLORIZE

§

type Target = ShouldColorize

§

impl Deref for ScheduleContext

§

impl Deref for ScheduledEvent

§

impl Deref for SecretStoreSys

§

impl Deref for ServerConnection

§

type Target = ConnectionCommon<ServerConnectionData>

§

impl Deref for ServerConnection

§

type Target = ConnectionCommon<ServerConnectionData>

§

impl Deref for ServerName

§

type Target = str

§

impl Deref for Socket

§

impl Deref for SpanTrace

§

type Target = SpanTrace

§

impl Deref for SqlStorage

§

impl Deref for SqlStorageCursor

§

impl Deref for Str

§

type Target = str

§

impl Deref for SubjectPublicKeyInfoDer<'_>

§

type Target = [u8]

§

impl Deref for TeletexString

§

type Target = StringOwned

§

impl Deref for TimeZoneShortId

§

type Target = Subtag

§

impl Deref for Tls12ClientSessionValue

§

type Target = ClientSessionCommon

§

impl Deref for Tls13ClientSessionValue

§

type Target = ClientSessionCommon

§

impl Deref for TlsClientAuth

§

impl Deref for TransactionId

§

type Target = [u8]

§

impl Deref for UnbufferedClientConnection

§

type Target = UnbufferedConnectionCommon<ClientConnectionData>

§

impl Deref for UnbufferedServerConnection

§

type Target = UnbufferedConnectionCommon<ServerConnectionData>

§

impl Deref for UnknownAttributes

§

type Target = [u16]

§

impl Deref for UriTemplateString

§

type Target = UriTemplateStr

§

impl Deref for UserHash

§

type Target = [u8]

§

impl Deref for VarInt

§

type Target = u64

§

impl Deref for Variants

§

type Target = [Variant]

§

impl Deref for WakerRef<'_>

§

impl Deref for WebSocketPair

§

impl Deref for WebSocketRequestResponsePair

§

impl Deref for ZoneUsage

§

type Target = Name

§

impl Deref for i24

§

type Target = i32

§

impl Deref for i48

§

type Target = i64

§

impl Deref for u24

§

type Target = u32

§

impl Deref for u48

§

type Target = u64

1.36.0 · Source§

impl<'a> Deref for IoSlice<'a>

1.36.0 · Source§

impl<'a> Deref for IoSliceMut<'a>

§

impl<'a> Deref for CNAME<'a>

§

type Target = Name<'a>

§

impl<'a> Deref for Curve25519SeedBin<'a>

§

type Target = Buffer<'a, Curve25519SeedBinType>

§

impl<'a> Deref for EcPrivateKeyBin<'a>

§

type Target = Buffer<'a, EcPrivateKeyBinType>

§

impl<'a> Deref for EcPrivateKeyRfc5915Der<'a>

§

type Target = Buffer<'a, EcPrivateKeyRfc5915DerType>

§

impl<'a> Deref for EcPublicKeyCompressedBin<'a>

§

type Target = Buffer<'a, EcPublicKeyCompressedBinType>

§

impl<'a> Deref for EcPublicKeyUncompressedBin<'a>

§

type Target = Buffer<'a, EcPublicKeyUncompressedBinType>

§

impl<'a> Deref for EncapsulationKeyBytes<'a>

§

type Target = Buffer<'a, EncapsulationKeyBytesType>

§

impl<'a> Deref for EndEntityCert<'a>

§

type Target = Cert<'a>

§

impl<'a> Deref for HTTPS<'a>

§

type Target = SVCB<'a>

§

impl<'a> Deref for Ia5StringRef<'a>

§

type Target = StringRef

§

impl<'a> Deref for MB<'a>

§

type Target = Name<'a>

§

impl<'a> Deref for MD<'a>

§

type Target = Name<'a>

§

impl<'a> Deref for MF<'a>

§

type Target = Name<'a>

§

impl<'a> Deref for MG<'a>

§

type Target = Name<'a>

§

impl<'a> Deref for MR<'a>

§

type Target = Name<'a>

§

impl<'a> Deref for MaybeUninitSlice<'a>

§

impl<'a> Deref for MaybeUninitSlice<'a>

§

impl<'a> Deref for NS<'a>

§

type Target = Name<'a>

§

impl<'a> Deref for NSAP_PTR<'a>

§

type Target = Name<'a>

§

impl<'a> Deref for PTR<'a>

§

type Target = Name<'a>

§

impl<'a> Deref for Pkcs8V1Der<'a>

§

type Target = Buffer<'a, Pkcs8V1DerType>

§

impl<'a> Deref for Pkcs8V2Der<'a>

§

type Target = Buffer<'a, Pkcs8V2DerType>

§

impl<'a> Deref for PqdsaPrivateKeyRaw<'a>

§

type Target = Buffer<'a, PqdsaPrivateKeyRawType>

§

impl<'a> Deref for PqdsaSeedRaw<'a>

§

type Target = Buffer<'a, PqdsaSeedRawType>

§

impl<'a> Deref for PrintableStringRef<'a>

§

type Target = StringRef

§

impl<'a> Deref for PublicKeyX509Der<'a>

§

type Target = Buffer<'a, PublicKeyX509DerType>

§

impl<'a> Deref for TeletexStringRef<'a>

§

type Target = StringRef

§

impl<'a> Deref for Utf8StringRef<'a>

§

type Target = StringRef

§

impl<'a> Deref for VideotexStringRef<'a>

§

type Target = StringRef

§

impl<'a> Deref for X25<'a>

§

type Target = CharacterString<'a>

Source§

impl<'a, 'f> Deref for VaList<'a, 'f>
where 'f: 'a,

§

impl<'a, R> Deref for UnitRef<'a, R>
where R: Reader,

§

type Target = Unit<R>

§

impl<'a, R, G, T> Deref for MappedReentrantMutexGuard<'a, R, G, T>
where R: RawMutex + 'a, G: GetThreadId + 'a, T: 'a + ?Sized,

§

type Target = T

§

impl<'a, R, G, T> Deref for ReentrantMutexGuard<'a, R, G, T>
where R: RawMutex + 'a, G: GetThreadId + 'a, T: 'a + ?Sized,

§

type Target = T

§

impl<'a, R, T> Deref for MappedMutexGuard<'a, R, T>
where R: RawMutex + 'a, T: 'a + ?Sized,

§

type Target = T

§

impl<'a, R, T> Deref for MappedRwLockReadGuard<'a, R, T>
where R: RawRwLock + 'a, T: 'a + ?Sized,

§

type Target = T

§

impl<'a, R, T> Deref for MappedRwLockWriteGuard<'a, R, T>
where R: RawRwLock + 'a, T: 'a + ?Sized,

§

type Target = T

§

impl<'a, R, T> Deref for MutexGuard<'a, R, T>
where R: RawMutex + 'a, T: 'a + ?Sized,

§

type Target = T

§

impl<'a, R, T> Deref for RwLockReadGuard<'a, R, T>
where R: RawRwLock + 'a, T: 'a + ?Sized,

§

type Target = T

§

impl<'a, R, T> Deref for RwLockUpgradableReadGuard<'a, R, T>
where R: RawRwLockUpgrade + 'a, T: 'a + ?Sized,

§

type Target = T

§

impl<'a, R, T> Deref for RwLockWriteGuard<'a, R, T>
where R: RawRwLock + 'a, T: 'a + ?Sized,

§

type Target = T

§

impl<'a, T> Deref for Locked<'a, T>

§

type Target = T

§

impl<'a, T> Deref for MappedMutexGuard<'a, T>
where T: ?Sized,

§

type Target = T

§

impl<'a, T> Deref for MutexGuard<'a, T>
where T: ?Sized,

§

type Target = T

§

impl<'a, T> Deref for MutexGuard<'a, T>
where T: ?Sized,

§

type Target = T

§

impl<'a, T> Deref for SpinMutexGuard<'a, T>
where T: ?Sized,

§

type Target = T

§

impl<'a, T> Deref for SpinMutexGuard<'a, T>
where T: ?Sized,

§

type Target = T

§

impl<'a, T> Deref for ZeroVec<'a, T>
where T: AsULE,

§

type Target = ZeroSlice<T>

Source§

impl<'a, T, A> Deref for alloc::vec::peek_mut::PeekMut<'a, T, A>
where A: Allocator,

Source§

impl<'a, T, C> Deref for sharded_slab::pool::Ref<'a, T, C>
where T: Clear + Default, C: Config,

Source§

impl<'a, T, C> Deref for sharded_slab::pool::RefMut<'a, T, C>
where C: Config, T: Clear + Default,

Source§

impl<'a, T, C> Deref for Entry<'a, T, C>
where C: Config,

§

impl<'a, V> Deref for VarZeroCow<'a, V>
where V: VarULE + ?Sized,

§

type Target = V

§

impl<'input, Endian> Deref for EndianSlice<'input, Endian>
where Endian: Endianity,

§

type Target = [u8]

§

impl<'rwlock, T> Deref for RwLockReadGuard<'rwlock, T>
where T: ?Sized,

§

type Target = T

§

impl<'rwlock, T, R> Deref for RwLockUpgradableGuard<'rwlock, T, R>
where T: ?Sized,

§

type Target = T

§

impl<'rwlock, T, R> Deref for RwLockWriteGuard<'rwlock, T, R>
where T: ?Sized,

§

type Target = T

§

impl<'s> Deref for SockRef<'s>

§

type Target = Socket

§

impl<'s> Deref for SockRef<'s>

§

type Target = Socket

§

impl<'s, T> Deref for SliceVec<'s, T>

§

type Target = [T]

§

impl<A> Deref for ArrayVec<A>
where A: Array,

§

type Target = [<A as Array>::Item]

§

impl<A> Deref for SmallVec<A>
where A: Array,

§

type Target = [<A as Array>::Item]

§

impl<A> Deref for TinyVec<A>
where A: Array,

§

type Target = [<A as Array>::Item]

1.0.0 · Source§

impl<B> Deref for Cow<'_, B>
where B: ToOwned + ?Sized,

§

impl<B, T> Deref for Ref<B, T>
where B: ByteSlice, T: FromBytes + KnownLayout + Immutable + ?Sized,

§

type Target = T

§

impl<C0, C1, T> Deref for EitherCart<C0, C1>
where C0: Deref<Target = T>, C1: Deref<Target = T>, T: ?Sized,

§

type Target = T

§

impl<D> Deref for Instruction<D>
where D: Dialect,

§

type Target = sock_filter

§

impl<Data> Deref for ConnectionCommon<Data>

§

type Target = CommonState

§

impl<E> Deref for FormattedFields<E>
where E: ?Sized,

§

impl<P> Deref for Arc<P>
where P: Pool,

§

type Target = <P as Pool>::Data

§

impl<P> Deref for Box<P>
where P: Pool,

§

type Target = <P as Pool>::Data

1.33.0 (const: unstable) · Source§

impl<Ptr> Deref for Pin<Ptr>
where Ptr: Deref,

Source§

type Target = <Ptr as Deref>::Target

§

impl<S> Deref for BlockingStream<S>
where S: Stream + Unpin,

§

type Target = S

§

impl<S> Deref for RiAbsoluteString<S>
where S: Spec,

§

type Target = RiAbsoluteStr<S>

§

impl<S> Deref for RiFragmentString<S>
where S: Spec,

§

type Target = RiFragmentStr<S>

§

impl<S> Deref for RiQueryString<S>
where S: Spec,

§

type Target = RiQueryStr<S>

§

impl<S> Deref for RiReferenceString<S>
where S: Spec,

§

type Target = RiReferenceStr<S>

§

impl<S> Deref for RiRelativeString<S>
where S: Spec,

§

type Target = RiRelativeStr<S>

§

impl<S> Deref for RiString<S>
where S: Spec,

§

type Target = RiStr<S>

1.0.0 (const: unstable) · Source§

impl<T> Deref for &T
where T: ?Sized,

1.0.0 (const: unstable) · Source§

impl<T> Deref for &mut T
where T: ?Sized,

Source§

impl<T> Deref for ThinBox<T>
where T: ?Sized,

1.0.0 (const: unstable) · Source§

impl<T> Deref for core::cell::Ref<'_, T>
where T: ?Sized,

1.0.0 (const: unstable) · Source§

impl<T> Deref for core::cell::RefMut<'_, T>
where T: ?Sized,

1.20.0 (const: unstable) · Source§

impl<T> Deref for ManuallyDrop<T>
where T: ?Sized,

1.9.0 (const: unstable) · Source§

impl<T> Deref for AssertUnwindSafe<T>

Source§

impl<T> Deref for std::sync::nonpoison::mutex::MappedMutexGuard<'_, T>
where T: ?Sized,

Source§

impl<T> Deref for std::sync::nonpoison::mutex::MutexGuard<'_, T>
where T: ?Sized,

Source§

impl<T> Deref for std::sync::nonpoison::rwlock::MappedRwLockReadGuard<'_, T>
where T: ?Sized,

Source§

impl<T> Deref for std::sync::nonpoison::rwlock::MappedRwLockWriteGuard<'_, T>
where T: ?Sized,

Source§

impl<T> Deref for std::sync::nonpoison::rwlock::RwLockReadGuard<'_, T>
where T: ?Sized,

Source§

impl<T> Deref for std::sync::nonpoison::rwlock::RwLockWriteGuard<'_, T>
where T: ?Sized,

Source§

impl<T> Deref for std::sync::poison::mutex::MappedMutexGuard<'_, T>
where T: ?Sized,

1.0.0 · Source§

impl<T> Deref for std::sync::poison::mutex::MutexGuard<'_, T>
where T: ?Sized,

Source§

impl<T> Deref for std::sync::poison::rwlock::MappedRwLockReadGuard<'_, T>
where T: ?Sized,

Source§

impl<T> Deref for std::sync::poison::rwlock::MappedRwLockWriteGuard<'_, T>
where T: ?Sized,

1.0.0 · Source§

impl<T> Deref for std::sync::poison::rwlock::RwLockReadGuard<'_, T>
where T: ?Sized,

1.0.0 · Source§

impl<T> Deref for std::sync::poison::rwlock::RwLockWriteGuard<'_, T>
where T: ?Sized,

Source§

impl<T> Deref for ReentrantLockGuard<'_, T>
where T: ?Sized,

Source§

impl<T> Deref for Dh<T>

Source§

impl<T> Deref for Dsa<T>

Source§

impl<T> Deref for EcKey<T>

Source§

impl<T> Deref for PKey<T>

Source§

impl<T> Deref for PkeyCtx<T>

Source§

impl<T> Deref for Rsa<T>

Source§

impl<T> Deref for Stack<T>
where T: Stackable,

Source§

impl<T> Deref for X509Lookup<T>

Source§

impl<T> Deref for X509LookupMethod<T>

Source§

impl<T> Deref for Clamped<T>

Source§

impl<T> Deref for JsStatic<T>
where T: FromWasmAbi + 'static,

§

impl<T> Deref for Box<T>

§

type Target = T

§

impl<T> Deref for CachePadded<T>

§

type Target = T

§

impl<T> Deref for ConnectionCommon<T>

§

type Target = CommonState

§

impl<T> Deref for Metadata<'_, T>
where T: SmartDisplay + ?Sized,

Permit using Metadata as a smart pointer to the user-provided metadata.

§

type Target = <T as SmartDisplay>::Metadata

§

impl<T> Deref for MutexGuard<'_, T>
where T: ?Sized,

§

type Target = T

§

impl<T> Deref for MutexGuard<'_, T>
where T: ?Sized,

§

type Target = T

§

impl<T> Deref for Owned<T>
where T: Pointable + ?Sized,

§

type Target = T

§

impl<T> Deref for OwnedMutexGuard<T>
where T: ?Sized,

§

type Target = T

§

impl<T> Deref for OwnedMutexGuard<T>
where T: ?Sized,

§

type Target = T

§

impl<T> Deref for OwnedRwLockWriteGuard<T>
where T: ?Sized,

§

type Target = T

§

impl<T> Deref for PooledConnection<T>
where T: Pool,

§

type Target = Connection

§

impl<T> Deref for Ref<'_, T>

§

type Target = T

§

impl<T> Deref for RwLockMappedWriteGuard<'_, T>
where T: ?Sized,

§

type Target = T

§

impl<T> Deref for RwLockReadGuard<'_, T>
where T: ?Sized,

§

type Target = T

§

impl<T> Deref for RwLockWriteGuard<'_, T>
where T: ?Sized,

§

type Target = T

§

impl<T> Deref for SendWrapper<T>

§

type Target = T

§

impl<T> Deref for ShardedLockReadGuard<'_, T>
where T: ?Sized,

§

type Target = T

§

impl<T> Deref for ShardedLockWriteGuard<'_, T>
where T: ?Sized,

§

type Target = T

§

impl<T> Deref for Unalign<T>
where T: Unaligned,

§

type Target = T

§

impl<T> Deref for UnbufferedConnectionCommon<T>

§

type Target = CommonState

§

impl<T> Deref for UnsafeRef<T>
where T: ?Sized,

§

type Target = T

1.0.0 · Source§

impl<T, A> Deref for alloc::boxed::Box<T, A>
where A: Allocator, T: ?Sized,

1.12.0 · Source§

impl<T, A> Deref for alloc::collections::binary_heap::PeekMut<'_, T, A>
where T: Ord, A: Allocator,

1.0.0 · Source§

impl<T, A> Deref for Rc<T, A>
where A: Allocator, T: ?Sized,

Source§

impl<T, A> Deref for UniqueRc<T, A>
where A: Allocator, T: ?Sized,

1.0.0 · Source§

impl<T, A> Deref for alloc::sync::Arc<T, A>
where A: Allocator, T: ?Sized,

Source§

impl<T, A> Deref for UniqueArc<T, A>
where A: Allocator, T: ?Sized,

1.0.0 · Source§

impl<T, A> Deref for alloc::vec::Vec<T, A>
where A: Allocator,

§

impl<T, A> Deref for Box<T, A>
where A: Allocator, T: ?Sized,

§

type Target = T

§

impl<T, A> Deref for Vec<T, A>
where A: Allocator,

§

type Target = [T]

§

impl<T, B> Deref for Counter<T, B>

§

type Target = T

Source§

impl<T, C> Deref for OwnedRef<T, C>
where T: Clear + Default, C: Config,

Source§

impl<T, C> Deref for OwnedRefMut<T, C>
where T: Clear + Default, C: Config,

Source§

impl<T, C> Deref for OwnedEntry<T, C>
where C: Config,

1.80.0 · Source§

impl<T, F> Deref for LazyCell<T, F>
where F: FnOnce() -> T,

Source§

impl<T, F> Deref for DropGuard<T, F>
where F: FnOnce(T),

1.80.0 · Source§

impl<T, F> Deref for LazyLock<T, F>
where F: FnOnce() -> T,

§

impl<T, F> Deref for Lazy<T, F>
where F: FnOnce() -> T,

§

type Target = T

§

impl<T, F> Deref for Lazy<T, F>
where F: FnOnce() -> T,

§

type Target = T

§

impl<T, F> Deref for VarZeroVec<'_, T, F>
where T: VarULE + ?Sized, F: VarZeroVecFormat,

§

type Target = VarZeroSlice<T, F>

§

impl<T, F> Deref for VarZeroVecOwned<T, F>
where T: VarULE + ?Sized, F: VarZeroVecFormat,

§

type Target = VarZeroSlice<T, F>

§

impl<T, F, R> Deref for Lazy<T, F, R>
where F: FnOnce() -> T, R: RelaxStrategy,

§

type Target = T

Source§

impl<T, F, S> Deref for ScopeGuard<T, F, S>
where F: FnOnce(T), S: Strategy,

§

impl<T, Idx, K, const N: usize> Deref for FindMut<'_, T, Idx, K, N>
where T: Ord, Idx: SortedLinkedListIndex, K: Kind,

§

type Target = T

§

impl<T, K, const N: usize> Deref for PeekMut<'_, T, K, N>
where T: Ord, K: Kind,

§

type Target = T

§

impl<T, N> Deref for GenericArray<T, N>
where N: ArrayLength<T>,

§

type Target = [T]

§

impl<T, U> Deref for Array<T, U>
where U: ArraySize,

§

type Target = [T]

§

impl<T, U> Deref for MappedMutexGuard<'_, T, U>
where T: ?Sized, U: ?Sized,

§

type Target = U

§

impl<T, U> Deref for OwnedMappedMutexGuard<T, U>
where T: ?Sized, U: ?Sized,

§

type Target = U

§

impl<T, U> Deref for OwnedRwLockMappedWriteGuard<T, U>
where T: ?Sized, U: ?Sized,

§

type Target = U

§

impl<T, U> Deref for OwnedRwLockReadGuard<T, U>
where T: ?Sized, U: ?Sized,

§

type Target = U

Source§

impl<T, const CAP: usize> Deref for arrayvec::arrayvec::ArrayVec<T, CAP>

§

impl<T, const N: usize> Deref for HistoryBuffer<T, N>

§

type Target = [T]

§

impl<T, const N: usize> Deref for Vec<T, N>

§

type Target = [T]

§

impl<Z> Deref for Zeroizing<Z>
where Z: Zeroize,

§

type Target = Z

Source§

impl<const CAP: usize> Deref for ArrayString<CAP>

§

impl<const L: usize> Deref for Encoder<'_, L>

§

type Target = [u8]

§

impl<const L: usize> Deref for Storage<L>

§

type Target = [u8]

§

impl<const MAX_SIZE: usize> Deref for ObjectIdentifier<MAX_SIZE>

§

type Target = ObjectIdentifierRef

Source§

impl<const N: usize> Deref for ByteArray<N>

Source§

type Target = [u8; N]

§

impl<const N: usize> Deref for CcidEndpoints<N>

§

type Target = [u8]

§

impl<const N: usize> Deref for String<N>

§

type Target = str

§

impl<const N: usize> Deref for TinyAsciiStr<N>

§

type Target = str

§

impl<const SIZE: usize> Deref for WriteBuffer<SIZE>

§

type Target = str