pub struct OperativeSystem {
pub name: String,
pub family: Option<String>,
pub variant: Option<String>,
pub kind: Type,
}
Expand description
Represents an operative system.
This struct contains the name, family, variant, and kind of operative system. Examples:
- name: “Linux”, family: “unix”, variant: “2.2.x-3.x”, kind: Type::Specified
- name: “Windows”, family: “win”, variant: “NT kernel 6.x”, kind: Type::Specified
- name: “iOS”, family: “unix”, variant: “iPhone or iPad”, kind: Type::Specified
Fields§
§name: String
§family: Option<String>
§variant: Option<String>
§kind: Type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OperativeSystem
impl RefUnwindSafe for OperativeSystem
impl Send for OperativeSystem
impl Sync for OperativeSystem
impl Unpin for OperativeSystem
impl UnwindSafe for OperativeSystem
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