pub trait Access<T>: InferPresence<T> {
type RemainderFrom<Source: Access<T>>: Access<T>;
const IS_ABSENT: bool;
// Required methods
fn get(&self) -> Option<&T>;
fn get_mut(&mut self) -> Option<&mut T>;
fn into_option(self) -> Option<T>;
}Expand description
Uniform field access for Present, Optional, or Absent.
Required Associated Constants§
Required Associated Types§
Sourcetype RemainderFrom<Source: Access<T>>: Access<T>
type RemainderFrom<Source: Access<T>>: Access<T>
Remainder type when extracting Self from Source.
Required Methods§
Sourcefn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Consume and convert to Option.
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.