rstd 0.1.0
Loading...
Searching...
No Matches
rstd::convert::AsRef< T > Struct Template Referenceexport
module rstd.core

Trait for cheaply borrowing data as an immutable reference to T. More...

Detailed Description

template<typename T>
struct rstd::convert::AsRef< T >

Trait for cheaply borrowing data as an immutable reference to T.

Implementors provide:

  • as_ref() const noexcept -> ref<T> : Returns a read-only reference to the inner T.
    Template Parameters
    TThe target reference type.

The documentation for this struct was generated from the following file: