Struct cardano_serialization_lib::typed_bytes::ByteBuilder[][src]

pub struct ByteBuilder<T> { /* fields omitted */ }
Expand description

A dynamically created buffer for T

Implementations

Create an unconstrained Builder

Create a builder of fixed size

Append an u8 in the builder

Append bytes in the builder

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

Append an u16 in the builder

Append an u32 in the builder

Append an u64 in the builder

Append an u128 in the builder

Finalize the buffer and return a fixed ByteArray of T

Finalize the buffer and return a fixed ByteArray of T

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.