Trait tor_hsservice::internal_prelude::Deref

1.0.0 · source ·
pub(crate) 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 behaviour 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 behaviour.

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 ArtiPath

source§

impl Deref for CTorPath

1.0.0 · source§

impl Deref for CString

§

type Target = CStr

1.0.0 · source§

impl Deref for String

§

type Target = str

1.0.0 · source§

impl Deref for std::ffi::os_str::OsString

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

§

type Target = [u8]

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

§

type Target = str

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

§

type Target = Vec<u8>

source§

impl Deref for serde_bytes::bytes::Bytes

§

type Target = [u8]

§

impl Deref for HsBlindIdKey

§

impl Deref for HsClientDescEncKey

§

impl Deref for HsIdKey

§

impl Deref for HsIntroPtSessionIdKey

source§

impl Deref for InstanceRawSubdir

1.0.0 · source§

impl Deref for tor_hsservice::internal_prelude::PathBuf

§

type Target = Path

§

impl Deref for RevisionCounter

§

type Target = u64

source§

impl Deref for Slug

§

impl Deref for AlgorithmIdentifier

§

type Target = [u8]

§

impl Deref for AsciiString

§

type Target = AsciiStr

§

impl Deref for BStr

§

type Target = [u8]

§

impl Deref for BorrowedPayload<'_>

§

type Target = [u8]

§

impl Deref for Bytes

§

type Target = [u8]

§

impl Deref for Bytes

§

type Target = [u8]

§

impl Deref for BytesMut

§

type Target = [u8]

§

impl Deref for CertificateDer<'_>

§

type Target = [u8]

§

impl Deref for CertificateRevocationListDer<'_>

§

type Target = [u8]

§

impl Deref for CertificateSigningRequestDer<'_>

§

type Target = [u8]

§

impl Deref for ClientConnection

§

type Target = ConnectionCommon<ClientConnectionData>

§

impl Deref for ClientConnection

§

type Target = ConnectionCommon<ClientConnectionData>

§

impl Deref for Connection

§

type Target = CommonState

§

impl Deref for Connection

§

type Target = CommonState

§

impl Deref for Der<'_>

§

type Target = [u8]

§

impl Deref for DocumentMut

§

type Target = Table

§

impl Deref for Duration

§

impl Deref for EchConfigListBytes<'_>

§

type Target = [u8]

§

impl Deref for EncodedEd25519Cert

§

type Target = Vec<u8>

§

impl Deref for EnteredSpan

§

type Target = Span

§

impl Deref for HsClientIntroAuthKey

§

impl Deref for HsDescSigningKey

§

impl Deref for HsSvcDescEncKey

§

impl Deref for HsSvcNtorKey

§

impl Deref for Ia5String

§

type Target = StrOwned

§

impl Deref for InternalString

§

type Target = str

§

impl Deref for Key

§

type Target = str

§

impl Deref for OptionsMap

§

impl Deref for OsString

§

type Target = OsStr

§

impl Deref for OsString

§

type Target = OsStr

§

impl Deref for PathBuf

§

type Target = Path

§

impl Deref for PrintableString

§

type Target = StrOwned

§

impl Deref for Profile

§

type Target = UncasedStr

§

impl Deref for RelayEarly

§

type Target = Relay

§

impl Deref for SecretBuf

§

type Target = Vec<u8>

§

impl Deref for ServerConnection

§

type Target = ConnectionCommon<ServerConnectionData>

§

impl Deref for ServerConnection

§

type Target = ConnectionCommon<ServerConnectionData>

§

impl Deref for TeletexString

§

type Target = StrOwned

§

impl Deref for Timestamp

§

impl Deref for Tls12ClientSessionValue

Available on crate feature tls12 only.
§

type Target = ClientSessionCommon

§

impl Deref for Tls13ClientSessionValue

§

type Target = ClientSessionCommon

§

impl Deref for UnbufferedClientConnection

§

type Target = UnbufferedConnectionCommon<ClientConnectionData>

§

impl Deref for UnbufferedServerConnection

§

type Target = UnbufferedConnectionCommon<ServerConnectionData>

§

impl Deref for Uncased<'_>

§

type Target = UncasedStr

§

impl Deref for WakerRef<'_>

source§

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

1.36.0 · source§

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

§

type Target = [u8]

1.36.0 · source§

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

§

type Target = [u8]

§

impl<'a> Deref for CertificateChain<'a>

§

type Target = [CertificateDer<'a>]

§

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

§

type Target = Cert<'a>

§

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

§

type Target = StrRef<'a>

§

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

§

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

§

type Target = StrRef<'a>

§

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

§

type Target = StrRef<'a>

§

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

§

type Target = StrRef<'a>

§

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

§

type Target = StrRef<'a>

source§

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

§

type Target = VaListImpl<'f>

§

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 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, F> Deref for PoolGuard<'a, T, F>
where T: Send, F: Fn() -> T,

§

type Target = T

§

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

§

type Target = [u8]

§

impl<'k> Deref for KeyMut<'k>

§

type Target = str

§

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

§

type Target = T

§

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

§

type Target = T

§

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

§

type Target = T

source§

impl<'s> Deref for socket2::sockref::SockRef<'s>

§

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

§

type Target = Socket

§

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

§

type Target = [T]

§

impl<'str> Deref for EitherOsStr<'str>

§

type Target = OsStr

§

impl<'str> Deref for EitherOsStr<'str>

§

type Target = OsStr

§

impl<'t, T> Deref for tor_hsservice::internal_prelude::watch::Ref<'t, T>

§

type Target = T

§

impl<'t, T> Deref for tor_hsservice::internal_prelude::watch::RefMut<'t, T>

§

type Target = T

source§

impl<'v, R: SleepProvider> Deref for NotifyingBorrow<'v, R>

§

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]

§

impl<A, O> Deref for BitArray<A, O>
where A: BitViewSized, O: BitOrder,

§

type Target = BitSlice<<A as BitView>::Store, O>

1.0.0 · source§

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

§

type Target = B

§

impl<B, T> Deref for Ref<B, [T]>
where B: ByteSlice, T: FromBytes,

§

type Target = [T]

§

impl<B, T> Deref for Ref<B, T>
where B: ByteSlice, T: FromBytes,

§

type Target = T

§

impl<Data> Deref for ConnectionCommon<Data>

§

type Target = CommonState

§

impl<I> Deref for Located<I>

§

type Target = I

§

impl<I> Deref for Partial<I>

§

type Target = I

§

impl<I, S> Deref for Stateful<I, S>

§

type Target = I

§

impl<K, V> Deref for TiVec<K, V>

§

type Target = TiSlice<K, V>

source§

impl<L, R> Deref for Either<L, R>
where L: Deref, R: Deref<Target = <L as Deref>::Target>,

§

type Target = <L as Deref>::Target

§

impl<M, T, O> Deref for BitRef<'_, M, T, O>
where M: Mutability, T: BitStore, O: BitOrder,

§

type Target = bool

1.33.0 · source§

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

§

type Target = <Ptr as Deref>::Target

§

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

§

type Target = S

§

impl<S> Deref for ImDocument<S>

§

type Target = Table

1.0.0 · source§

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

§

type Target = T

1.0.0 · source§

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

§

type Target = T

source§

impl<T> Deref for BoxSensitive<T>

source§

impl<T> Deref for Redacted<T>
where T: Redactable,

§

type Target = T

source§

impl<T> Deref for Sensitive<T>

§

type Target = T

source§

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

§

type Target = T

source§

impl<T> Deref for UniqueRc<T>

§

type Target = T

1.0.0 · source§

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

§

type Target = T

1.0.0 · source§

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

§

type Target = T

1.20.0 · source§

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

§

type Target = T

source§

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

§

type Target = T

source§

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

§

type Target = T

source§

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

§

type Target = T

source§

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

§

type Target = T

1.0.0 · source§

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

§

type Target = T

1.0.0 · source§

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

§

type Target = T

source§

impl<T> Deref for Serde<T>

§

type Target = T

source§

impl<T> Deref for Dh<T>

§

type Target = DhRef<T>

source§

impl<T> Deref for Dsa<T>

§

type Target = DsaRef<T>

source§

impl<T> Deref for EcKey<T>

§

type Target = EcKeyRef<T>

source§

impl<T> Deref for PKey<T>

§

type Target = PKeyRef<T>

source§

impl<T> Deref for PkeyCtx<T>

source§

impl<T> Deref for Rsa<T>

§

type Target = RsaRef<T>

source§

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

§

type Target = StackRef<T>

source§

impl<T> Deref for X509Lookup<T>

source§

impl<T> Deref for X509LookupMethod<T>

1.9.0 · source§

impl<T> Deref for AssertUnwindSafe<T>

§

type Target = T

source§

impl<T> Deref for DropNotifyWatchSender<T>

§

type Target = Sender<T>

1.0.0 · source§

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

§

type Target = T

§

impl<T> Deref for BoundedVecDeque<T>

§

type Target = VecDeque<T>

§

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

§

type Target = T

§

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

§

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 FmtBinary<T>
where T: Binary,

Available on non-tarpaulin_include only.
§

type Target = T

§

impl<T> Deref for FmtDisplay<T>
where T: Display,

Available on non-tarpaulin_include only.
§

type Target = T

§

impl<T> Deref for FmtList<T>
where &'a T: for<'a> IntoIterator,

Available on non-tarpaulin_include only.
§

type Target = T

§

impl<T> Deref for FmtLowerExp<T>
where T: LowerExp,

Available on non-tarpaulin_include only.
§

type Target = T

§

impl<T> Deref for FmtLowerHex<T>
where T: LowerHex,

Available on non-tarpaulin_include only.
§

type Target = T

§

impl<T> Deref for FmtOctal<T>
where T: Octal,

Available on non-tarpaulin_include only.
§

type Target = T

§

impl<T> Deref for FmtPointer<T>
where T: Pointer,

Available on non-tarpaulin_include only.
§

type Target = T

§

impl<T> Deref for FmtUpperExp<T>
where T: UpperExp,

Available on non-tarpaulin_include only.
§

type Target = T

§

impl<T> Deref for FmtUpperHex<T>
where T: UpperHex,

Available on non-tarpaulin_include only.
§

type Target = T

§

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 MutexGuard<'_, T>
where T: ?Sized,

§

type Target = T

§

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

§

type Target = T

§

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

§

type Target = T

§

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

§

type Target = T

§

impl<T> Deref for NotNan<T>
where T: Float,

§

type Target = T

§

impl<T> Deref for OrderedFloat<T>
where T: Float,

§

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 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 RwLockReadGuard<'_, T>
where T: ?Sized,

§

type Target = T

§

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

§

type Target = T

§

impl<T> Deref for RwLockReadGuardArc<T>

§

type Target = T

§

impl<T> Deref for RwLockReadGuardArc<T>

§

type Target = T

§

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

§

type Target = T

§

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

§

type Target = T

§

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

§

type Target = T

§

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

§

type Target = T

§

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

§

type Target = T

§

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

§

type Target = T

§

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

§

type Target = T

§

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

§

type Target = T

§

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

§

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

§

type Target = T

§

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

§

type Target = T

1.0.0 · source§

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

§

type Target = T

1.12.0 · source§

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

§

type Target = T

1.0.0 · source§

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

§

type Target = T

1.0.0 · source§

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

§

type Target = [T]

1.0.0 · source§

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

§

type Target = T

§

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, D> Deref for FramedRead<T, D>

§

type Target = T

§

impl<T, E> Deref for FramedWrite<T, E>

§

type Target = T

source§

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

§

type Target = T

source§

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

§

type Target = T

§

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

§

type Target = 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

source§

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

§

type Target = T

§

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

§

type Target = [T]

§

impl<T, O> Deref for BitBox<T, O>
where T: BitStore, O: BitOrder,

§

type Target = BitSlice<T, O>

§

impl<T, O> Deref for BitVec<T, O>
where T: BitStore, O: BitOrder,

§

type Target = BitSlice<T, O>

§

impl<T, U> Deref for Framed<T, U>

§

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>

§

type Target = [T]

§

impl<Target> Deref for FilelikeView<'_, Target>
where Target: FilelikeViewType,

§

type Target = Target

§

impl<Target> Deref for SocketlikeView<'_, Target>
where Target: SocketlikeViewType,

§

type Target = Target

§

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

§

type Target = Z

source§

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

§

type Target = str

source§

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

§

type Target = [u8; N]

§

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

§

type Target = [u8; N]

§

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

§

type Target = str

§

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

§

type Target = str