pub struct EMLVersionRange { /* private fields */ }Expand description
A range of EML_NL versions for which an EML_NL feature is supported.
Implementations§
Source§impl EMLVersionRange
impl EMLVersionRange
Sourcepub const fn since(version: EMLVersion) -> Self
pub const fn since(version: EMLVersion) -> Self
A range that covers all EML_NL versions since the given version (inclusive).
Sourcepub const fn until(version: EMLVersion) -> Self
pub const fn until(version: EMLVersion) -> Self
A range that covers all EML_NL versions until the given version (exclusive).
Sourcepub const fn between(version: EMLVersion, until: EMLVersion) -> Self
pub const fn between(version: EMLVersion, until: EMLVersion) -> Self
A range that covers all EML_NL versions between the given versions (including the lower bound, but excluding the upper bound).
Sourcepub fn contains(&self, version: EMLVersion) -> bool
pub fn contains(&self, version: EMLVersion) -> bool
Returns whether the given version is within this range.
Auto Trait Implementations§
impl Freeze for EMLVersionRange
impl RefUnwindSafe for EMLVersionRange
impl Send for EMLVersionRange
impl Sync for EMLVersionRange
impl Unpin for EMLVersionRange
impl UnsafeUnpin for EMLVersionRange
impl UnwindSafe for EMLVersionRange
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