pub struct IsaExtension {
pub name: &'static str,
pub major_version: u8,
pub minor_version: u8,
}Expand description
ISA extension with its version.
Extensions are ordered according to the canonical order of their names (see “ISA Extension Naming Conventions” chapter of the RISC-V unprivileged specification) and then by version.
Fields§
§name: &'static strName of the extension as used in ISA strings, for example, zcmp
major_version: u8Major version of the extension
minor_version: u8Minor version of the extension
Implementations§
Trait Implementations§
Source§impl Clone for IsaExtension
impl Clone for IsaExtension
Source§fn clone(&self) -> IsaExtension
fn clone(&self) -> IsaExtension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IsaExtension
Source§impl Debug for IsaExtension
impl Debug for IsaExtension
impl Eq for IsaExtension
Source§impl Ord for IsaExtension
impl Ord for IsaExtension
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IsaExtension
impl PartialEq for IsaExtension
Source§impl PartialOrd for IsaExtension
impl PartialOrd for IsaExtension
impl StructuralPartialEq for IsaExtension
Auto Trait Implementations§
impl Freeze for IsaExtension
impl RefUnwindSafe for IsaExtension
impl Send for IsaExtension
impl Sync for IsaExtension
impl Unpin for IsaExtension
impl UnsafeUnpin for IsaExtension
impl UnwindSafe for IsaExtension
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