Struct starlark::values::dict::FrozenDictRef
source · pub struct FrozenDictRef { /* private fields */ }
Expand description
Reference to frozen Dict
.
Implementations§
source§impl FrozenDictRef
impl FrozenDictRef
sourcepub fn from_frozen_value(x: FrozenValue) -> Option<FrozenDictRef>
pub fn from_frozen_value(x: FrozenValue) -> Option<FrozenDictRef>
Downcast to frozen dict.
sourcepub fn get_str(&self, key: &str) -> Option<FrozenValue>
pub fn get_str(&self, key: &str) -> Option<FrozenValue>
Get value by a string key.
sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = (FrozenValue, FrozenValue)>
pub fn iter(&self) -> impl ExactSizeIterator<Item = (FrozenValue, FrozenValue)>
Iterate over dict entries.
Auto Trait Implementations§
impl RefUnwindSafe for FrozenDictRef
impl Send for FrozenDictRef
impl Sync for FrozenDictRef
impl Unpin for FrozenDictRef
impl UnwindSafe for FrozenDictRef
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