pub struct Platform<'a> { /* private fields */ }Implementations§
Source§impl<'a> Platform<'a>
impl<'a> Platform<'a>
pub const fn architecture(&self) -> JsonString<'a>
pub const fn os(&self) -> JsonString<'a>
pub fn variant(self) -> Result<Option<JsonString<'a>>, MetadataError>
pub fn os_version(self) -> Result<Option<JsonString<'a>>, MetadataError>
pub fn os_features(self) -> Result<StringIter<'a>, MetadataError>
Trait Implementations§
impl<'a> Copy for Platform<'a>
impl<'a> Eq for Platform<'a>
impl<'a> StructuralPartialEq for Platform<'a>
Auto Trait Implementations§
impl<'a> Freeze for Platform<'a>
impl<'a> RefUnwindSafe for Platform<'a>
impl<'a> Send for Platform<'a>
impl<'a> Sync for Platform<'a>
impl<'a> Unpin for Platform<'a>
impl<'a> UnsafeUnpin for Platform<'a>
impl<'a> UnwindSafe for Platform<'a>
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