Struct owned_ttf_parser::parser::Stream[][src]

pub struct Stream<'a> { /* fields omitted */ }
Expand description

A streaming binary parser.

Implementations

Creates a new Stream parser.

Creates a new Stream parser at offset.

Returns None when offset is out of bounds.

Checks that stream reached the end of the data.

Jumps to the end of the stream.

Useful to indicate that we parsed all the data.

Returns the current offset.

Returns the trailing data.

Returns None when Stream is reached the end.

Advances by FromData::SIZE.

Doesn’t check bounds.

Advances by the specified len.

Doesn’t check bounds.

Advances by the specified len and checks for bounds.

Parses the type from the steam.

Returns None when there is not enough data left in the stream or the type parsing failed.

Parses the type from the steam at offset.

Reads N bytes from the stream.

Reads the next count types as a slice.

Reads the next count types as a slice.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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.