pub struct Version(pub u16, pub u16);Expand description
Version number of the FF-A implementation, .0 is the major, .1 is minor the version.
Tuple Fields§
§0: u16§1: u16Implementations§
Source§impl Version
impl Version
Sourcepub fn is_compatible_to(&self, callee_version: &Version) -> bool
pub fn is_compatible_to(&self, callee_version: &Version) -> bool
Returns whether the caller’s version (self) is compatible with the callee’s version (input parameter)
Sourcepub fn needs_18_regs(&self) -> bool
pub fn needs_18_regs(&self) -> bool
Returns true if the specified FF-A version uses 18 registers for calls, false if it uses 8.
Trait Implementations§
Source§impl Ord for Version
impl Ord for Version
Source§impl PartialOrd for Version
impl PartialOrd for Version
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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