contained_core/traits/
get.rs

1/*
2    Appellation: get <module>
3    Created At: 2026.01.20:14:42:54
4    Contrib: @FL03
5*/
6
7/// The [`Get`] trait establishes a basic interface for objects to retrieve an immutable
8/// reference to an inner value of type `T`.
9pub trait Get<T> {
10    /// returns an immutable reference to the inner value
11    fn get(&self) -> &T;
12}