pub struct Capability {
in_fmts: Vec<FormatDesc>,
out_fmts: Vec<FormatDesc>,
profiles: BTreeMap<Format, Vec<Profile>>,
levels: BTreeMap<Format, Vec<Level>>,
}Fields§
§in_fmts: Vec<FormatDesc>§out_fmts: Vec<FormatDesc>§profiles: BTreeMap<Format, Vec<Profile>>§levels: BTreeMap<Format, Vec<Level>>Implementations§
Source§impl Capability
impl Capability
pub(super) fn new( in_fmts: Vec<FormatDesc>, out_fmts: Vec<FormatDesc>, profiles: BTreeMap<Format, Vec<Profile>>, levels: BTreeMap<Format, Vec<Level>>, ) -> Self
pub fn input_formats(&self) -> &Vec<FormatDesc>
pub fn output_formats(&self) -> &Vec<FormatDesc>
pub fn query_control(&self, t: &QueryCtrlType) -> Option<QueryCtrlResponse>
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
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 moreAuto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnwindSafe for Capability
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