Struct final::Final [] [src]

pub struct Final<T>(_);

This crate provides the Final, struct which guarantees the interior immutability of the value that it wraps. This is useful for preserving invariants on the fields of structures, whose 'safe' mutation would cause undefined behavior. Wraps a value in the Final type, which does not give out mutable references.

Methods

impl<T> Final<T>
[src]

Wrap a value v in a Final

Trait Implementations

impl<T: Debug> Debug for Final<T>
[src]

Formats the value using the given formatter.

impl<T> Deref for Final<T>
[src]

The resulting type after dereferencing

The method called to dereference a value