#[repr(C)]pub struct ZL_SelectorDesc {
pub selector_f: ZL_SelectorFn,
pub inStreamType: ZL_Type,
pub customGraphs: *const ZL_GraphID,
pub nbCustomGraphs: usize,
pub localParams: ZL_LocalParams,
pub name: *const c_char,
pub opaque: ZL_OpaquePtr,
}Fields§
§selector_f: ZL_SelectorFn§inStreamType: ZL_TypeSelectors optionally support multiple input types, using bitmap masking (ex: ZL_Type_struct | ZL_Type_string). In which case, it’s the responsibility of the selector to select a successor featuring an input type compatible with current input. Note that it’s always preferable to limit Selector’s input type to the minimum nb of types possible, because it makes graph validation more accurate and effective.
customGraphs: *const ZL_GraphID§nbCustomGraphs: usize§localParams: ZL_LocalParams§name: *const c_charOptional, the name of the graph rooted by the selector.
opaque: ZL_OpaquePtrOptionally an opaque pointer that can be queried with ZL_Selector_getOpaquePtr(). OpenZL unconditionally takes ownership of this pointer, even if registration fails, and it lives for the lifetime of the compressor.
Trait Implementations§
Source§impl Clone for ZL_SelectorDesc
impl Clone for ZL_SelectorDesc
Source§fn clone(&self) -> ZL_SelectorDesc
fn clone(&self) -> ZL_SelectorDesc
Returns a duplicate 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 ZL_SelectorDesc
impl Debug for ZL_SelectorDesc
impl Copy for ZL_SelectorDesc
Auto Trait Implementations§
impl Freeze for ZL_SelectorDesc
impl RefUnwindSafe for ZL_SelectorDesc
impl !Send for ZL_SelectorDesc
impl !Sync for ZL_SelectorDesc
impl Unpin for ZL_SelectorDesc
impl UnwindSafe for ZL_SelectorDesc
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