#[non_exhaustive]pub struct ProfileMap { /* private fields */ }Expand description
Profile → entry index used by the provider resolver.
Construction goes through one of the loaders in this module so
validation is enforced once and ProfileMap exposes only resolved data.
Implementations§
Source§impl ProfileMap
impl ProfileMap
Sourcepub fn lookup(&self, profile: &str) -> Option<&ProfileEntry>
pub fn lookup(&self, profile: &str) -> Option<&ProfileEntry>
Look up an entry by profile name. O(1).
Trait Implementations§
Source§impl Clone for ProfileMap
impl Clone for ProfileMap
Source§fn clone(&self) -> ProfileMap
fn clone(&self) -> ProfileMap
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 ProfileMap
impl Debug for ProfileMap
Source§impl Default for ProfileMap
impl Default for ProfileMap
Source§fn default() -> ProfileMap
fn default() -> ProfileMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProfileMap
impl RefUnwindSafe for ProfileMap
impl Send for ProfileMap
impl Sync for ProfileMap
impl Unpin for ProfileMap
impl UnsafeUnpin for ProfileMap
impl UnwindSafe for ProfileMap
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