Struct oas_common::RecordMap
source · [−]pub struct RecordMap { /* private fields */ }
Implementations
sourceimpl RecordMap
impl RecordMap
pub fn from_untyped(records: Vec<UntypedRecord>) -> Result<Self>
pub fn insert_untyped_bulk(&mut self, records: Vec<UntypedRecord>) -> Result<()>
pub fn insert_untyped<T: TypedValue>(
&mut self,
record: UntypedRecord
) -> Result<()>
pub fn insert<T: TypedValue>(&mut self, record: Record<T>)
pub fn get<T: TypedValue>(&self, id: &str) -> Option<&Record<T>>
pub fn get_all<T: TypedValue>(&self) -> Option<impl Iterator<Item = &Record<T>>>
pub fn into_iter<T: TypedValue>(
&mut self
) -> Option<impl Iterator<Item = Record<T>>>
pub fn into_vec<T: TypedValue>(&mut self) -> Vec<Record<T>>
pub fn into_hashmap<T: TypedValue>(&mut self) -> HashMap<String, Record<T>>
pub fn get_mut<T: TypedValue>(&mut self, id: &str) -> Option<&mut Record<T>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RecordMap
impl Send for RecordMap
impl !Sync for RecordMap
impl Unpin for RecordMap
impl !UnwindSafe for RecordMap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self