pub struct StateMappings { /* private fields */ }Expand description
per-type backend-id -> uid map for read-side ref normalization.
Implementations§
Source§impl StateMappings
impl StateMappings
Sourcepub fn uid_for(&self, type_name: &str, backend_id: &BackendId) -> Option<Uid>
pub fn uid_for(&self, type_name: &str, backend_id: &BackendId) -> Option<Uid>
the canonical uid a backend id maps to for type_name, if known.
Sourcepub fn insert(&mut self, type_name: &str, backend_id: BackendId, uid: Uid)
pub fn insert(&mut self, type_name: &str, backend_id: BackendId, uid: Uid)
record a backend-id -> uid mapping for type_name.
Sourcepub fn from_state(state: &StateStore) -> Self
pub fn from_state(state: &StateStore) -> Self
project the whole state store into per-type backend-id -> uid mappings.
Trait Implementations§
Source§impl Clone for StateMappings
impl Clone for StateMappings
Source§fn clone(&self) -> StateMappings
fn clone(&self) -> StateMappings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StateMappings
impl Debug for StateMappings
Source§impl Default for StateMappings
impl Default for StateMappings
Source§fn default() -> StateMappings
fn default() -> StateMappings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StateMappings
impl RefUnwindSafe for StateMappings
impl Send for StateMappings
impl Sync for StateMappings
impl Unpin for StateMappings
impl UnsafeUnpin for StateMappings
impl UnwindSafe for StateMappings
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