mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Do bookkeeping of Ids, showing the Debug of it's source
This commit is contained in:
@@ -275,7 +275,7 @@ impl<'a> TableBuilder<'a> {
|
||||
/// This is required if you have multiple tables in the same [`Ui`].
|
||||
#[inline]
|
||||
#[deprecated = "Renamed id_salt"]
|
||||
pub fn id_source(self, id_salt: impl std::hash::Hash) -> Self {
|
||||
pub fn id_source(self, id_salt: impl egui::IdTrait) -> Self {
|
||||
self.id_salt(id_salt)
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ impl<'a> TableBuilder<'a> {
|
||||
///
|
||||
/// This is required if you have multiple tables in the same [`Ui`].
|
||||
#[inline]
|
||||
pub fn id_salt(mut self, id_salt: impl std::hash::Hash) -> Self {
|
||||
pub fn id_salt(mut self, id_salt: impl egui::IdTrait) -> Self {
|
||||
self.id_salt = Id::new(id_salt);
|
||||
self
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user