pub enum ColorFormat {
Rgba16F = 10,
Rgba8 = 28,
Bgra8 = 87,
}展开描述
指定捕获帧的像素格式。
变体§
trait 实现§
Source§impl Clone for ColorFormat
impl Clone for ColorFormat
Source§fn clone(&self) -> ColorFormat
fn clone(&self) -> ColorFormat
返回该值的副本。 了解更多
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source 执行复制赋值。 了解更多Source§impl Debug for ColorFormat
impl Debug for ColorFormat
Source§impl Default for ColorFormat
impl Default for ColorFormat
Source§fn default() -> Self
fn default() -> Self
默认颜色格式是 ColorFormat::Rgba8。
Source§impl PartialEq for ColorFormat
impl PartialEq for ColorFormat
impl Copy for ColorFormat
impl Eq for ColorFormat
impl StructuralPartialEq for ColorFormat
自动 trait 实现§
impl Freeze for ColorFormat
impl RefUnwindSafe for ColorFormat
impl Send for ColorFormat
impl Sync for ColorFormat
impl Unpin for ColorFormat
impl UnsafeUnpin for ColorFormat
impl UnwindSafe for ColorFormat
Blanket 实现§
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
从拥有的值可变地借用。 了解更多
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
当
into_left 为 true 时,将 self 转换为
Left 变体的
Either<Self, Self>;
否则将其转换为
Right 变体的
Either<Self, Self>。
了解更多Source§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
当
into_left(&self) 返回 true 时,将 self 转换为
Left 变体的
Either<Self, Self>;
否则将其转换为
Right 变体的
Either<Self, Self>。
了解更多