pub fn segments(&self) -> impl DoubleEndedIterator<Item = &str> {
        // safety: this is safe because in Address::try_from_buf the input is validated to be valid
        // ascii
        unsafe {
            self.0
                .split(|&b| b == b'.')
                .map(|s| str::from_utf8_unchecked(s))
        }
    }
/// Returns an iterator over all the segments of the ILP Address
Returns an iterator over all the segments of the ILP Address
Returns an iterator over all the segments of the ILP Address
pub fn segments(&self) -> impl DoubleEndedIterator<Item = &str> {
        // safety: this is safe because in Address::try_from_buf the input is validated to be valid
        // ascii
        unsafe {
            self.0
                .split(|&b| b == b'.')
                .map(|s| str::from_utf8_unchecked(s))
        }
    }
pub fn segments ( & self ) -> impl DoubleEndedIterator < Item = & str > { // safety: this is safe because in Address::try_from_buf the input is validated to be valid // ascii unsafe { self . 0 . split ( | & b | b == b'.' ) . map ( | s | str :: from_utf8_unchecked ( s ) ) } }
Returns an iterator over all the segments of the ILP Address
Returns an iterator over all the segments of the ILP Address
&self
&self