pub struct StaticArgs { /* private fields */ }Expand description
Set of static arguments that can be compared for semantic equality
Two call sites whose static argument set resolves to the same values will have the same
StaticArgs value, and subsequently the same NodeInstance value, provided that they call
the same node.
Implementations§
Source§impl StaticArgs
impl StaticArgs
pub fn values(&self) -> impl Iterator<Item = &StaticArg>
pub fn get(&self, id: &Id) -> Option<&StaticArg>
pub fn resolve_type(&self, id: &Id) -> Option<&Type>
pub fn resolve_const(&self, id: &Id) -> Option<&Value>
pub fn resolve_node(&self, id: &Id) -> Option<&NodeInstance>
Trait Implementations§
Source§impl Clone for StaticArgs
impl Clone for StaticArgs
Source§fn clone(&self) -> StaticArgs
fn clone(&self) -> StaticArgs
Returns a copy of the value. Read more
1.0.0 · 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 StaticArgs
impl Debug for StaticArgs
Source§impl Default for StaticArgs
impl Default for StaticArgs
Source§fn default() -> StaticArgs
fn default() -> StaticArgs
Returns the “default value” for a type. Read more
Source§impl Hash for StaticArgs
impl Hash for StaticArgs
Source§impl Ord for StaticArgs
impl Ord for StaticArgs
Source§impl PartialEq for StaticArgs
impl PartialEq for StaticArgs
Source§impl PartialOrd for StaticArgs
impl PartialOrd for StaticArgs
impl Eq for StaticArgs
impl StructuralPartialEq for StaticArgs
Auto Trait Implementations§
impl Freeze for StaticArgs
impl !RefUnwindSafe for StaticArgs
impl !Send for StaticArgs
impl !Sync for StaticArgs
impl Unpin for StaticArgs
impl !UnwindSafe for StaticArgs
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