pub struct LayeredValue<T> {
pub city: Option<T>,
pub building: Option<T>,
pub resident: Option<T>,
}Expand description
One value across the City -> Building -> Resident override ladder. Lower layers win; absence falls through upward.
Fields§
§city: Option<T>§building: Option<T>§resident: Option<T>Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for LayeredValue<T>
impl<T: Clone> Clone for LayeredValue<T>
Source§impl<T: Debug> Debug for LayeredValue<T>
impl<T: Debug> Debug for LayeredValue<T>
Source§impl<T> Default for LayeredValue<T>
impl<T> Default for LayeredValue<T>
impl<T: Eq> Eq for LayeredValue<T>
Source§impl<T: PartialEq> PartialEq for LayeredValue<T>
impl<T: PartialEq> PartialEq for LayeredValue<T>
impl<T: PartialEq> StructuralPartialEq for LayeredValue<T>
Auto Trait Implementations§
impl<T> Freeze for LayeredValue<T>
impl<T> RefUnwindSafe for LayeredValue<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for LayeredValue<T>
impl<T> Sync for LayeredValue<T>
impl<T> Unpin for LayeredValue<T>
impl<T> UnsafeUnpin for LayeredValue<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for LayeredValue<T>where
Option<T>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more