Struct x264::Encoding [−][src]
pub struct Encoding { /* fields omitted */ }
The image's colorspace plus some extra encoding options.
Methods
impl Encoding
[src]
impl Encoding
pub fn add(self, modifier: Modifier) -> Self
[src]
pub fn add(self, modifier: Modifier) -> Self
Add an encoding option.
pub fn remove(self, modifier: Modifier) -> Self
[src]
pub fn remove(self, modifier: Modifier) -> Self
Remove an encoding option.
pub fn has(self, modifier: Modifier) -> bool
[src]
pub fn has(self, modifier: Modifier) -> bool
Check if an encoding option has been set.
pub fn colorspace(self) -> Colorspace
[src]
pub fn colorspace(self) -> Colorspace
Gets the colorspace of the encoding.
Trait Implementations
impl Debug for Encoding
[src]
impl Debug for Encoding
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for Encoding
[src]
impl Hash for Encoding
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for Encoding
[src]
impl Eq for Encoding
impl PartialEq for Encoding
[src]
impl PartialEq for Encoding
fn eq(&self, other: &Encoding) -> bool
[src]
fn eq(&self, other: &Encoding) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Encoding) -> bool
[src]
fn ne(&self, other: &Encoding) -> bool
This method tests for !=
.
impl Copy for Encoding
[src]
impl Copy for Encoding
impl Clone for Encoding
[src]
impl Clone for Encoding
fn clone(&self) -> Encoding
[src]
fn clone(&self) -> Encoding
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<Colorspace> for Encoding
[src]
impl From<Colorspace> for Encoding
fn from(csp: Colorspace) -> Self
[src]
fn from(csp: Colorspace) -> Self
Performs the conversion.