pub fn with_suffix(&self, suffix: &[u8]) -> Result<Address, AddressError> {
        let new_address_len = self.len() + 1 + suffix.len();
        let mut new_address = BytesMut::with_capacity(new_address_len);

        new_address.put_slice(self.0.as_ref());
        new_address.put_u8(b'.');
        new_address.put_slice(suffix);

        Address::try_from(new_address.freeze())
    }
/// Suffixes the ILP Address with the provided suffix. Includes a '.' separator
Suffixes the ILP Address with the provided suffix. Includes a '.' separator
Suffixes the ILP Address with the provided suffix . Includes a ' . ' separator
pub fn with_suffix(&self, suffix: &[u8]) -> Result<Address, AddressError> {
        let new_address_len = self.len() + 1 + suffix.len();
        let mut new_address = BytesMut::with_capacity(new_address_len);
        new_address.put_slice(self.0.as_ref());
        new_address.put_u8(b'.');
        new_address.put_slice(suffix);
        Address::try_from(new_address.freeze())
    }
pub fn with_suffix ( & self , suffix : & [ u8 ] ) -> Result < Address , AddressError > { let new_address_len = self . len ( ) + 1 + suffix . len ( ) ; let mut new_address = BytesMut :: with_capacity ( new_address_len ) ; new_address . put_slice ( self . 0 . as_ref ( ) ) ; new_address . put_u8 ( b'.' ) ; new_address . put_slice ( suffix ) ; Address :: try_from ( new_address . freeze ( ) ) }
Suffixes the ILP Address with the provided suffix.
Suffixes the ILP Address with the provided suffix .
&self
suffix
&[u8]
&self
suffix
&[u8]