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§
Sourcefn as_site_view(&self) -> <Self as Lifetime<'_>>::Item
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.