pub trait Access<T> {
const IS_ABSENT: bool;
// Required methods
fn get(&self) -> Option<&T>;
fn get_mut(&mut self) -> Option<&mut T>;
}Expand description
Uniform field access for Present, Optional, or Absent.
Required Associated Constants§
Required Methods§
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.