#[non_exhaustive]pub enum PropContainerRef<'a, T> {
Simple(&'a T),
Ref(Ref<'a, T>),
}
Expand description
Allows read-only access to the underlying value of PropContainer
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl<T> PropContainerRef<'_, T>
impl<T> PropContainerRef<'_, T>
Trait Implementations§
Source§impl<'a, T: Debug> Debug for PropContainerRef<'a, T>
impl<'a, T: Debug> Debug for PropContainerRef<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for PropContainerRef<'a, T>
impl<'a, T> !RefUnwindSafe for PropContainerRef<'a, T>
impl<'a, T> !Send for PropContainerRef<'a, T>
impl<'a, T> !Sync for PropContainerRef<'a, T>
impl<'a, T> Unpin for PropContainerRef<'a, T>
impl<'a, T> !UnwindSafe for PropContainerRef<'a, T>
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