pub struct foundryVersionCmpReturn {
pub _0: I256,
}
Expand description
Compares the current Foundry version with the given version string.
The given version string must be in the format major.minor.patch
.
Returns: -1 if current Foundry version is less than the given version 0 if current Foundry version equals the given version 1 if current Foundry version is greater than the given version
This result can then be used with a comparison operator against 0
.
For example, to check if the current Foundry version is greater than or equal to 1.0.0
:
if (foundryVersionCmp("1.0.0") >= 0) { ... }
Container type for the return parameters of the foundryVersionCmp(string)
function.
Fields§
§_0: I256
Trait Implementations§
Source§impl Clone for foundryVersionCmpReturn
impl Clone for foundryVersionCmpReturn
Source§fn clone(&self) -> foundryVersionCmpReturn
fn clone(&self) -> foundryVersionCmpReturn
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for foundryVersionCmpReturn
impl RefUnwindSafe for foundryVersionCmpReturn
impl Send for foundryVersionCmpReturn
impl Sync for foundryVersionCmpReturn
impl Unpin for foundryVersionCmpReturn
impl UnwindSafe for foundryVersionCmpReturn
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes