pub trait ValueObjectTryAccess {
type Key: ?Sized;
type Target;
// Required method
fn try_get<Q>(&self, k: &Q) -> Result<Option<&Self::Target>, TryTypeError>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: Hash + Eq + Ord + ?Sized;
}
Expand description
try_as_*
access to a value as an object
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.