pub fn as_big_endian_bytes(&self) -> Result<Bound<ByteBuf>, T::Error> {
        match self {
            Bound::Unbounded => Ok(Bound::Unbounded),
            Bound::Included(value) => Ok(Bound::Included(ByteBuf::from(
                value.as_big_endian_bytes()?.to_vec(),
            ))),
            Bound::Excluded(value) => Ok(Bound::Excluded(ByteBuf::from(
                value.as_big_endian_bytes()?.to_vec(),
            ))),
        }
    }
/// Serializes the contained value to big-endian bytes.
Serializes the contained value to big-endian bytes.
Serializes the contained value to big - endian bytes .
pub fn as_big_endian_bytes(&self) -> Result<Bound<ByteBuf>, T::Error> {
        match self {
            Bound::Unbounded => Ok(Bound::Unbounded),
            Bound::Included(value) => Ok(Bound::Included(ByteBuf::from(
                value.as_big_endian_bytes()?.to_vec(),
            ))),
            Bound::Excluded(value) => Ok(Bound::Excluded(ByteBuf::from(
                value.as_big_endian_bytes()?.to_vec(),
            ))),
        }
    }
pub fn as_big_endian_bytes ( & self ) -> Result < Bound < ByteBuf > , T :: Error > { match self { Bound :: Unbounded => Ok ( Bound :: Unbounded ) , Bound :: Included ( value ) => Ok ( Bound :: Included ( ByteBuf :: from ( value . as_big_endian_bytes ( ) ? . to_vec ( ) , ) ) ) , Bound :: Excluded ( value ) => Ok ( Bound :: Excluded ( ByteBuf :: from ( value . as_big_endian_bytes ( ) ? . to_vec ( ) , ) ) ) , } }
Serializes the contained value to big-endian bytes.
Serializes the contained value to big - endian bytes .
&self
&self