pub struct ShareSet { /* private fields */ }
Expand description
Stores a Hashset that contains the type names of all components and primitives
marked with either “share” or “state_share”,depending on what the user wants.
Methods implemented by this struct can
be used to determine whether a given cell is shareable or not
Used by live_range_analysis.rs
, cell_share.rs
, and infer_share.rs
Implementations
pub fn new(shareable: HashSet<Id>, is_state_share: bool) -> Self
sourcepub fn from_context<const IS_STATE_SHARE: bool>(ctx: &Context) -> Self
pub fn from_context<const IS_STATE_SHARE: bool>(ctx: &Context) -> Self
Constructs a shareset from the context. Looks for “state_share” types if is_state_share is true, and “share” types otherwise.
Returns whether or not this instance is state_share
Given a set of shareable and a cell, determines whether cell’s type is shareable or not
Trait Implementations
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more