pub struct SBStream {
    pub raw: SBStreamRef,
}
Expand description

A destination for streaming data output. By default, this is a string stream, but it can be redirected to a file.

Fields

raw: SBStreamRef

The underlying raw SBStreamRef.

Implementations

Construct a new SBStream.

Check whether or not this is a valid SBStream value.

If the stream is directed to a file, forget about the file and if the ownership of the file was transferred to this object, close the file. If the stream is backed by a local cache, clear this cache.

If this stream is not redirected to a file, this retrieves the locally cached data.

If this stream is not redirected to a file, this retrieves the length of the locally cached data.

Is this stream empty?

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.