Struct zero_copy_pads::PaddedValueBuilder [−][src]
pub struct PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
Value: Width,
PadBlock: Display,
HandleExcess: ExcessHandler<Value, PadBlock>,
Pad: Pad<Value, PadBlock>, { /* fields omitted */ }
Builder for PaddedValue
.
Implementations
impl<Value: Clone, PadBlock: Clone, HandleExcess: Clone, Pad: Clone> PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
Value: Width,
PadBlock: Display,
HandleExcess: ExcessHandler<Value, PadBlock>,
Pad: Pad<Value, PadBlock>,
[src]
impl<Value: Clone, PadBlock: Clone, HandleExcess: Clone, Pad: Clone> PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
Value: Width,
PadBlock: Display,
HandleExcess: ExcessHandler<Value, PadBlock>,
Pad: Pad<Value, PadBlock>,
[src]pub fn value(&mut self, value: Value) -> &mut Self
[src]
Value to be padded.
pub fn pad_block(&mut self, value: PadBlock) -> &mut Self
[src]
Block of the pad (expected to have width of 1).
pub fn total_width(&mut self, value: usize) -> &mut Self
[src]
Total width to fulfill.
pub fn pad(&mut self, value: Pad) -> &mut Self
[src]
How to pad.
pub fn handle_excess(&mut self, value: HandleExcess) -> &mut Self
[src]
How to write when the actual width of value
exceeds total_width
.
pub fn build(
&self
) -> Result<PaddedValue<Value, PadBlock, HandleExcess, Pad>, PaddedValueBuilderError>
[src]
&self
) -> Result<PaddedValue<Value, PadBlock, HandleExcess, Pad>, PaddedValueBuilderError>
Trait Implementations
impl<Value: Clone, PadBlock: Clone, HandleExcess: Clone, Pad: Clone> Clone for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
Value: Width,
PadBlock: Display,
HandleExcess: ExcessHandler<Value, PadBlock>,
Pad: Pad<Value, PadBlock>,
[src]
impl<Value: Clone, PadBlock: Clone, HandleExcess: Clone, Pad: Clone> Clone for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
Value: Width,
PadBlock: Display,
HandleExcess: ExcessHandler<Value, PadBlock>,
Pad: Pad<Value, PadBlock>,
[src]fn clone(&self) -> PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<Value, PadBlock, HandleExcess, Pad> RefUnwindSafe for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
HandleExcess: RefUnwindSafe,
Pad: RefUnwindSafe,
PadBlock: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Value, PadBlock, HandleExcess, Pad> RefUnwindSafe for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
HandleExcess: RefUnwindSafe,
Pad: RefUnwindSafe,
PadBlock: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Value, PadBlock, HandleExcess, Pad> Send for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
HandleExcess: Send,
Pad: Send,
PadBlock: Send,
Value: Send,
impl<Value, PadBlock, HandleExcess, Pad> Send for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
HandleExcess: Send,
Pad: Send,
PadBlock: Send,
Value: Send,
impl<Value, PadBlock, HandleExcess, Pad> Sync for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
HandleExcess: Sync,
Pad: Sync,
PadBlock: Sync,
Value: Sync,
impl<Value, PadBlock, HandleExcess, Pad> Sync for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
HandleExcess: Sync,
Pad: Sync,
PadBlock: Sync,
Value: Sync,
impl<Value, PadBlock, HandleExcess, Pad> Unpin for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
HandleExcess: Unpin,
Pad: Unpin,
PadBlock: Unpin,
Value: Unpin,
impl<Value, PadBlock, HandleExcess, Pad> Unpin for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
HandleExcess: Unpin,
Pad: Unpin,
PadBlock: Unpin,
Value: Unpin,
impl<Value, PadBlock, HandleExcess, Pad> UnwindSafe for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
HandleExcess: UnwindSafe,
Pad: UnwindSafe,
PadBlock: UnwindSafe,
Value: UnwindSafe,
impl<Value, PadBlock, HandleExcess, Pad> UnwindSafe for PaddedValueBuilder<Value, PadBlock, HandleExcess, Pad> where
HandleExcess: UnwindSafe,
Pad: UnwindSafe,
PadBlock: UnwindSafe,
Value: UnwindSafe,