Trait AsSiteView

Source
pub trait AsSiteView<const N: usize>: for<'a> Lifetime<'a, Item = SiteView<'a, N>> {
    // Required method
    fn as_site_view(&self) -> <Self as Lifetime<'_>>::Item;
}
Expand description

A type that can be cheaply converted to a SAF site.

This is akin to GATified AsRef for SAF sites.

Required Methods§

Source

fn as_site_view(&self) -> <Self as Lifetime<'_>>::Item

Returns a SAF site view of self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, const N: usize> AsSiteView<N> for &'a Site<N>

Source§

impl<'a, const N: usize> AsSiteView<N> for SiteView<'a, N>

Source§

impl<const N: usize> AsSiteView<N> for Site<N>