pub struct ModularParams<'a, 'b> {
pub group_dim: u32,
pub bit_depth: u32,
pub channels: Vec<ModularChannelParams>,
pub ma_config: Option<&'a MaConfig>,
pub tracker: Option<&'b AllocTracker>,
pub narrow_buffer: bool,
}
Fields§
§group_dim: u32
§bit_depth: u32
§channels: Vec<ModularChannelParams>
§ma_config: Option<&'a MaConfig>
§tracker: Option<&'b AllocTracker>
§narrow_buffer: bool
Implementations§
source§impl<'a, 'b> ModularParams<'a, 'b>
impl<'a, 'b> ModularParams<'a, 'b>
pub fn new( width: u32, height: u32, group_dim: u32, bit_depth: u32, channel_shifts: Vec<ChannelShift>, ma_config: Option<&'a MaConfig>, tracker: Option<&'b AllocTracker>, ) -> Self
pub fn with_channels( group_dim: u32, bit_depth: u32, channels: Vec<ModularChannelParams>, ma_config: Option<&'a MaConfig>, tracker: Option<&'b AllocTracker>, ) -> Self
Trait Implementations§
source§impl<'a, 'b> Clone for ModularParams<'a, 'b>
impl<'a, 'b> Clone for ModularParams<'a, 'b>
source§fn clone(&self) -> ModularParams<'a, 'b>
fn clone(&self) -> ModularParams<'a, 'b>
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<'a, 'b> Freeze for ModularParams<'a, 'b>
impl<'a, 'b> RefUnwindSafe for ModularParams<'a, 'b>
impl<'a, 'b> Send for ModularParams<'a, 'b>
impl<'a, 'b> Sync for ModularParams<'a, 'b>
impl<'a, 'b> Unpin for ModularParams<'a, 'b>
impl<'a, 'b> UnwindSafe for ModularParams<'a, 'b>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)