pub struct G {
pub width: u64,
pub height: u64,
pub depth: Option<u64>,
}Expand description
Initial graphical resolution and optional depth for QEMU -g.
QEMU accepts -g WxH[xDEPTH], for example 800x600 or
1024x768x24.
Fields§
§width: u64§height: u64§depth: Option<u64>Implementations§
Trait Implementations§
Source§impl Arbitrary for G
impl Arbitrary for G
Source§type Parameters = (<u64 as Arbitrary>::Parameters, <u64 as Arbitrary>::Parameters, <Option<u64> as Arbitrary>::Parameters)
type Parameters = (<u64 as Arbitrary>::Parameters, <u64 as Arbitrary>::Parameters, <Option<u64> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<u64 as Arbitrary>::Strategy, <u64 as Arbitrary>::Strategy, <Option<u64> as Arbitrary>::Strategy), fn((u64, u64, Option<u64>)) -> G>
type Strategy = Map<(<u64 as Arbitrary>::Strategy, <u64 as Arbitrary>::Strategy, <Option<u64> as Arbitrary>::Strategy), fn((u64, u64, Option<u64>)) -> G>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
impl Eq for G
Source§impl Ord for G
impl Ord for G
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 PartialOrd for G
impl PartialOrd for G
impl StructuralPartialEq for G
Source§impl ToCommand for G
impl ToCommand for G
Source§fn command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()Source§fn to_args(&self) -> Vec<String>
fn to_args(&self) -> Vec<String>
Convert to a type suitable to pass to
std::process::Command::args()fn has_args(&self) -> bool
Source§fn to_command(&self) -> Vec<String>
fn to_command(&self) -> Vec<String>
Construct the full command in keep in pieces
Source§fn to_single_command(&self) -> String
fn to_single_command(&self) -> String
Construct the full command as a single
StringSource§fn to_single_arg(&self) -> String
fn to_single_arg(&self) -> String
Construct only the args as a single
StringAuto Trait Implementations§
impl Freeze for G
impl RefUnwindSafe for G
impl Send for G
impl Sync for G
impl Unpin for G
impl UnsafeUnpin for G
impl UnwindSafe for G
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