pub struct LocationSet {
pub locations: HashSet<ProgramLocation>,
}Expand description
A partially-ordered set of RefProgramLocation used in analyses
Fields§
§locations: HashSet<ProgramLocation>Implementations§
Source§impl LocationSet
impl LocationSet
pub fn new() -> LocationSet
pub fn contains(&self, location: &ProgramLocation) -> bool
pub fn insert(&mut self, location: ProgramLocation)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn locations(&self) -> &HashSet<ProgramLocation>
pub fn remove(&mut self, location: &ProgramLocation)
Trait Implementations§
Source§impl Clone for LocationSet
impl Clone for LocationSet
Source§fn clone(&self) -> LocationSet
fn clone(&self) -> LocationSet
Returns a duplicate 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 LocationSet
impl Debug for LocationSet
Source§impl Default for LocationSet
impl Default for LocationSet
Source§fn default() -> LocationSet
fn default() -> LocationSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for LocationSet
impl PartialEq for LocationSet
Auto Trait Implementations§
impl Freeze for LocationSet
impl RefUnwindSafe for LocationSet
impl Send for LocationSet
impl Sync for LocationSet
impl Unpin for LocationSet
impl UnwindSafe for LocationSet
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