pub trait AsRefExpand<T: ?Sized = Self> {
// Required method
fn __expand_ref_method(&self, scope: &Scope) -> &T;
// Provided method
fn __expand_as_ref_method(&self, scope: &Scope) -> &T { ... }
}Expand description
Expand version of AsRef. Like AsRef<Self>
it’s implemented for all ExpandTypes. This is called when the Rust
code uses &x.
Required Methods§
fn __expand_ref_method(&self, scope: &Scope) -> &T
Provided Methods§
fn __expand_as_ref_method(&self, scope: &Scope) -> &T
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".