pub struct Renamed {
pub from: &'static str,
pub to: &'static str,
pub contract: u64,
pub since: &'static str,
}Expand description
A token renamed in the contract: from is read as to in a file
written for a contract older than contract.
Fields§
§from: &'static strThe former name.
to: &'static strThe name now.
contract: u64The contract version that dropped from (the CONTRACT_VERSION
of the release renaming it).
since: &'static strThe release of egui-pop-tokens renaming it, "major.minor"
("0.3"): the entry stays for RENAME_WINDOW minor releases
after it (Renamed::expired_at).
Implementations§
Source§impl Renamed
impl Renamed
Sourcepub fn expired_at(&self, version: &str) -> Option<bool>
pub fn expired_at(&self, version: &str) -> Option<bool>
Whether this entry has outlived its window (RENAME_WINDOW) in
the release version ("major.minor", a patch and a pre-release
ignored): more than two minor releases after Renamed::since.
A major release counts as one more minor release (1.0 follows
0.N). None when either version cannot be read.
Trait Implementations§
impl Copy for Renamed
impl Eq for Renamed
impl StructuralPartialEq for Renamed
Auto Trait Implementations§
impl Freeze for Renamed
impl RefUnwindSafe for Renamed
impl Send for Renamed
impl Sync for Renamed
impl Unpin for Renamed
impl UnsafeUnpin for Renamed
impl UnwindSafe for Renamed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.