pub trait ValueObjectAccessAsScalar {
type Key: ?Sized;
Show 15 methods
// Required methods
fn get_bool<Q>(&self, k: &Q) -> Option<bool>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_i128<Q>(&self, k: &Q) -> Option<i128>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_i64<Q>(&self, k: &Q) -> Option<i64>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_i32<Q>(&self, k: &Q) -> Option<i32>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_i16<Q>(&self, k: &Q) -> Option<i16>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_i8<Q>(&self, k: &Q) -> Option<i8>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_u128<Q>(&self, k: &Q) -> Option<u128>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_u64<Q>(&self, k: &Q) -> Option<u64>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_usize<Q>(&self, k: &Q) -> Option<usize>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_u32<Q>(&self, k: &Q) -> Option<u32>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_u16<Q>(&self, k: &Q) -> Option<u16>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_u8<Q>(&self, k: &Q) -> Option<u8>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_f64<Q>(&self, k: &Q) -> Option<f64>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_f32<Q>(&self, k: &Q) -> Option<f32>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
fn get_str<Q>(&self, k: &Q) -> Option<&str>
where Self::Key: Borrow<Q> + Hash + Eq,
Q: ?Sized + Hash + Eq + Ord;
}
Expand description
Access to scalar values in an object
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.