Struct cardano_serialization_lib::typed_bytes::ByteBuilder [−][src]
pub struct ByteBuilder<T> { /* fields omitted */ }
Expand description
A dynamically created buffer for T
Implementations
Create a builder of fixed size
fold over an iterator
write an iterator of maximum 256 items using the closure F
note that the buffer contains a byte to represent the size of the list
write an iterator of maximum 2^16 items using the closure F
note that the buffer contains 2 bytes to represent the size of the list
Finalize the buffer and return a fixed ByteArray of T
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for ByteBuilder<T> where
T: RefUnwindSafe,
impl<T> Send for ByteBuilder<T> where
T: Send,
impl<T> Sync for ByteBuilder<T> where
T: Sync,
impl<T> Unpin for ByteBuilder<T> where
T: Unpin,
impl<T> UnwindSafe for ByteBuilder<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more