Enum fpvsetup::MonitorDimensions [−][src]
The dimensions of a monitor.
Variants
Dimensions expressed directly as the width and the height.
Dimensions expressed indirectly as the diagonal and the aspect ratio.
Fields of DiagonalAndAspect
Implementations
impl MonitorDimensions
[src]
pub fn width_and_height(self) -> [Length; 2]
[src]
Returns the width and height of the monitor, calculating them indirectly if necessary.
pub fn aspect(self) -> f64
[src]
Returns the aspect ratio of the monitor, calculating it if necessary.
pub fn diagonal(self) -> Length
[src]
Returns the length of the diagonal of the monitor, calculating it if necessary.
pub fn as_width_and_height(self) -> Self
[src]
Re-represents the dimensions as the WidthAndHeight
variant.
pub fn as_diagonal_and_aspect(self) -> Self
[src]
Re-represents the dimensions as the DiagonalAndAspect
variant.
Trait Implementations
impl Clone for MonitorDimensions
[src]
fn clone(&self) -> MonitorDimensions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MonitorDimensions
[src]
impl Debug for MonitorDimensions
[src]
Auto Trait Implementations
impl RefUnwindSafe for MonitorDimensions
impl Send for MonitorDimensions
impl Sync for MonitorDimensions
impl Unpin for MonitorDimensions
impl UnwindSafe for MonitorDimensions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,