pub struct Builder<T>(/* private fields */);
Expand description
A builder for ResampleConfiguration
Implementations§
Source§impl Builder<IntervalStage>
impl Builder<IntervalStage>
Sourcepub fn interval(self, interval: DurationConstant) -> Builder<Complete>
pub fn interval(self, interval: DurationConstant) -> Builder<Complete>
Sets the interval
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn interval(self, interval: DurationConstant) -> Self
pub fn interval(self, interval: DurationConstant) -> Self
Sets the interval
field.
Sourcepub fn interpolation(
self,
interpolation: impl Into<Option<ResampleInterpolationConfiguration>>,
) -> Self
pub fn interpolation( self, interpolation: impl Into<Option<ResampleInterpolationConfiguration>>, ) -> Self
Sets the interpolation
field.
Sourcepub fn build(self) -> ResampleConfiguration
pub fn build(self) -> ResampleConfiguration
Consumes the builder, returning a ResampleConfiguration
.
Trait Implementations§
Source§impl Default for Builder<IntervalStage>
impl Default for Builder<IntervalStage>
Source§impl From<ResampleConfiguration> for Builder<Complete>
impl From<ResampleConfiguration> for Builder<Complete>
Source§fn from(v: ResampleConfiguration) -> Self
fn from(v: ResampleConfiguration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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