Struct yrs::YOutput[][src]

#[repr(C)]
pub struct YOutput { pub tag: c_char, pub len: c_int, // some fields omitted }
Expand description

An output value cell returned from yrs API methods. It describes a various types of data supported by yrs shared data types.

Since YOutput instances are always created by calling the corresponding yrs API functions, they eventually should be deallocated using youtput_destroy function.

Fields

tag: c_char

Tag describing, which value type is being stored by this input cell. Can be one of:

len: c_int

Length of the contents stored by a current YOutput cell.

For Y_JSON_NULL and Y_JSON_UNDEF its equal to 0.

For Y_JSON_ARR, Y_JSON_MAP it describes a number of passed elements.

For other types it’s always equal to 1.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

Converts the given value to a String. 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.