pub struct EqualityIndex { /* private fields */ }Implementations§
Source§impl EqualityIndex
impl EqualityIndex
pub fn insert_declared_method( &mut self, id: String, private_to_package: Option<String>, )
pub fn insert_synthesized_method( &mut self, id: String, private_to_package: Option<String>, )
pub fn insert_ufcs_lowered( &mut self, id: String, private_to_package: Option<String>, )
pub fn usable_from(&self, id: &str, current_package: &str) -> bool
pub fn is_ufcs_lowered_from(&self, id: &str, current_package: &str) -> bool
Sourcepub fn insert_synthesized_fields(
&mut self,
id: String,
fields: Vec<EqualityRecipe>,
)
pub fn insert_synthesized_fields( &mut self, id: String, fields: Vec<EqualityRecipe>, )
Record the equality that the synthesized equals of id tests each field with, in declaration order.
Sourcepub fn synthesized_fields(&self, id: &str) -> &[EqualityRecipe]
pub fn synthesized_fields(&self, id: &str) -> &[EqualityRecipe]
The equality that the synthesized equals of id tests each field with, in declaration order, as the checker selected it.
pub fn is_synthesized(&self, id: &str) -> bool
Trait Implementations§
Source§impl Clone for EqualityIndex
impl Clone for EqualityIndex
Source§impl Debug for EqualityIndex
impl Debug for EqualityIndex
Auto Trait Implementations§
impl Forget for EqualityIndex
impl Freeze for EqualityIndexwhere
*const u8 is !null: Freeze,
PhantomData<(String, EqualityInfo)>: Freeze,
PhantomData<(String, Vec<EqualityRecipe>)>: Freeze,
impl Move for EqualityIndex
impl RefUnwindSafe for EqualityIndex
impl Send for EqualityIndex
impl Sync for EqualityIndex
impl Unpin for EqualityIndex
impl UnsafeUnpin for EqualityIndexwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, EqualityInfo)>: UnsafeUnpin,
PhantomData<(String, Vec<EqualityRecipe>)>: UnsafeUnpin,
impl UnwindSafe for EqualityIndexwhere
HashMap<String, EqualityInfo, FxBuildHasher>: UnwindSafe,
HashMap<String, Vec<EqualityRecipe>, FxBuildHasher>: UnwindSafe,
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