pub struct FormatRange {
pub min: u32,
pub max: u32,
pub step: u32,
}
Fields§
§min: u32
§max: u32
§step: u32
Trait Implementations§
source§impl Clone for FormatRange
impl Clone for FormatRange
source§fn clone(&self) -> FormatRange
fn clone(&self) -> FormatRange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FormatRange
impl Debug for FormatRange
source§impl Default for FormatRange
impl Default for FormatRange
source§fn default() -> FormatRange
fn default() -> FormatRange
Returns the “default value” for a type. Read more
source§impl From<FormatRange> for virtio_video_format_range
impl From<FormatRange> for virtio_video_format_range
source§fn from(x: FormatRange) -> Self
fn from(x: FormatRange) -> Self
Converts to this type from the input type.
source§impl From<virtio_video_format_range> for FormatRange
impl From<virtio_video_format_range> for FormatRange
source§fn from(x: virtio_video_format_range) -> Self
fn from(x: virtio_video_format_range) -> Self
Converts to this type from the input type.
impl Copy for FormatRange
Auto Trait Implementations§
impl RefUnwindSafe for FormatRange
impl Send for FormatRange
impl Sync for FormatRange
impl Unpin for FormatRange
impl UnwindSafe for FormatRange
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.