pub fn serialized_length(&self) -> usize {
        match self {
            Data::Opaque(data) => data.len(),
            Data::Program(program) => program.serialized_length(),
            Data::Predicate(predicate) => predicate.serialized_length(),
            Data::Commitment(commitment) => commitment.serialized_length(),
            Data::Scalar(scalar) => scalar.serialized_length(),
            Data::Output(output) => output.serialized_length(),
        }
    }
/// Returns the number of bytes needed to serialize the Data.
Returns the number of bytes needed to serialize the Data.
Returns the number of bytes needed to serialize the Data .
pub fn serialized_length(&self) -> usize {
        match self {
            Data::Opaque(data) => data.len(),
            Data::Program(program) => program.serialized_length(),
            Data::Predicate(predicate) => predicate.serialized_length(),
            Data::Commitment(commitment) => commitment.serialized_length(),
            Data::Scalar(scalar) => scalar.serialized_length(),
            Data::Output(output) => output.serialized_length(),
        }
    }
pub fn serialized_length ( & self ) -> usize { match self { Data :: Opaque ( data ) => data . len ( ) , Data :: Program ( program ) => program . serialized_length ( ) , Data :: Predicate ( predicate ) => predicate . serialized_length ( ) , Data :: Commitment ( commitment ) => commitment . serialized_length ( ) , Data :: Scalar ( scalar ) => scalar . serialized_length ( ) , Data :: Output ( output ) => output . serialized_length ( ) , } }
Returns the number of bytes needed to serialize the Data.
Returns the number of bytes needed to serialize the Data .
&self
&self