pub fn suffix(mut self, suffix: &str) -> Result {
        if suffix.len() > SUFFIX_LIM {
            Err(Error::InvalidSuffix(suffix.to_string()))
        } else {
            let n = suffix.len();
            self.suffix[..n].copy_from_slice(suffix.as_bytes());
            self.suffix_len = n;
            Ok(self)
        }
    }
/// Set the suffix.
///
/// If the suffix is longer than the supported length, an error is returned.
Set the suffix.
If the suffix is longer than the supported length, an error is returned.
Set the suffix . If the suffix is longer than the supported length an error is returned .
pub fn suffix(mut self, suffix: &str) -> Result {
        if suffix.len() > SUFFIX_LIM {
            Err(Error::InvalidSuffix(suffix.to_string()))
        } else {
            let n = suffix.len();
            self.suffix[..n].copy_from_slice(suffix.as_bytes());
            self.suffix_len = n;
            Ok(self)
        }
    }
pub fn suffix ( mut self , suffix : & str ) -> Result { if suffix . len ( ) > SUFFIX_LIM { Err ( Error :: InvalidSuffix ( suffix . to_string ( ) ) ) } else { let n = suffix . len ( ) ; self . suffix [ .. n ] . copy_from_slice ( suffix . as_bytes ( ) ) ; self . suffix_len = n ; Ok ( self ) } }
Set the suffix.
Set the suffix .
mut self
suffix
&str
mut self
suffix
&str