pub fn try_number_of_nodes_from_pub_coeff_bytes(
    public_coefficients: &PublicCoefficientsBytes,
) -> CryptoResult<NumberOfNodes> {
    let len = public_coefficients.coefficients.len();
    let len = NodeIndex::try_from(len).map_err(invalid_size)?;
    Ok(NumberOfNodes::from(len))
}
/// Returns the length of the given `public_coefficients` as a `NumberOfNodes`.
///
/// # Errors
/// * `CryptoError::InvalidArgument` if the `len` of the given
///   `public_coefficients` cannot be converted to a `NodeIndex`.
Returns the length of the given `public_coefficients` as a `NumberOfNodes`.
Returns the length of the given ` public_coefficients ` as a ` NumberOfNodes ` .
pub fn try_number_of_nodes_from_pub_coeff_bytes(
    public_coefficients: &PublicCoefficientsBytes,
) -> CryptoResult<NumberOfNodes> {
    let len = public_coefficients.coefficients.len();
    let len = NodeIndex::try_from(len).map_err(invalid_size)?;
    Ok(NumberOfNodes::from(len))
}
pub fn try_number_of_nodes_from_pub_coeff_bytes ( public_coefficients : & PublicCoefficientsBytes , ) -> CryptoResult < NumberOfNodes > { let len = public_coefficients . coefficients . len ( ) ; let len = NodeIndex :: try_from ( len ) . map_err ( invalid_size ) ? ; Ok ( NumberOfNodes :: from ( len ) ) }
Returns the length of the given `public_coefficients` as a `NumberOfNodes`.
Returns the length of the given ` public_coefficients ` as a ` NumberOfNodes ` .
public_coefficients
&PublicCoefficientsBytes
public_coefficients
&PublicCoefficientsBytes
errors
`CryptoError::InvalidArgument` if the `len` of the given
`public_coefficients` cannot be converted to a `NodeIndex`.
` CryptoError :: InvalidArgument ` if the ` len ` of the given ` public_coefficients ` cannot be converted to a ` NodeIndex ` .