Skip to main content

SalsaAsDeref

Trait SalsaAsDeref 

Source
pub trait SalsaAsDeref {
    type AsDeref<'a>
       where Self: 'a;

    // Required method
    fn as_deref(&self) -> Self::AsDeref<'_>;
}
Expand description

Used to determine the return type and value for tracked fields and functions annotated with returns(as_deref).

Required Associated Types§

Source

type AsDeref<'a> where Self: 'a

Required Methods§

Source

fn as_deref(&self) -> Self::AsDeref<'_>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Deref, E> SalsaAsDeref for Result<T, E>

Source§

type AsDeref<'a> = Result<&'a <T as Deref>::Target, &'a E> where Self: 'a

Source§

fn as_deref(&self) -> Self::AsDeref<'_>

Source§

impl<T: Deref> SalsaAsDeref for Option<T>

Source§

type AsDeref<'a> = Option<&'a <T as Deref>::Target> where Self: 'a

Source§

fn as_deref(&self) -> Self::AsDeref<'_>

Implementors§