pub struct Target {
pub version: Version,
pub profiles: ProfileSet,
pub level: Level,
pub extensions: ExtensionSet,
}Expand description
Device-neutral target requirements carried in virtio-accel’s opaque target words.
Fields§
§version: Version§profiles: ProfileSet§level: Level§extensions: ExtensionSetImplementations§
Source§impl Target
impl Target
pub const fn new( version: Version, profiles: ProfileSet, level: Level, extensions: ExtensionSet, ) -> Self
pub const fn to_identity(self) -> TargetIdentity
Sourcepub fn validate(self) -> Result<Self, TargetError>
pub fn validate(self) -> Result<Self, TargetError>
Check that every extension is paired with one of its permitted base profiles.
pub fn from_identity(identity: TargetIdentity) -> Result<Self, TargetError>
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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