Skip to main content

encode_app_boolean_to_sink

Function encode_app_boolean_to_sink 

Source
pub fn encode_app_boolean_to_sink<S: EncodeSink + ?Sized>(
    sink: &mut S,
    value: bool,
) -> Result<usize, SinkFull>
Expand description

Append an application-tagged Boolean with its value in the header and no contents.

Stages the whole value for one write, with the scalar sink contract.