impl<'a> GraphemeClusterBreakIteratorUtf8<'a> { /// Finds the next breakpoint. Returns -1 if at the end of the string or if the index is /// out of range of a 32-bit signed integer. #[diplomat::rust_link(
icu::segmenter::iterators::GraphemeClusterBreakIterator::next,
FnInStruct
)] #[diplomat::rust_link(
icu::segmenter::iterators::GraphemeClusterBreakIterator::Item,
AssociatedTypeInStruct,
hidden
)] pubfn next(&mutself) -> i32 { self.0
.next()
.and_then(|u| i32::try_from(u).ok())
.unwrap_or(-1)
}
}
impl<'a> GraphemeClusterBreakIteratorUtf16<'a> { /// Finds the next breakpoint. Returns -1 if at the end of the string or if the index is /// out of range of a 32-bit signed integer. #[diplomat::rust_link(
icu::segmenter::iterators::GraphemeClusterBreakIterator::next,
FnInStruct
)] #[diplomat::rust_link(
icu::segmenter::iterators::GraphemeClusterBreakIterator::Item,
AssociatedTypeInStruct,
hidden
)] pubfn next(&mutself) -> i32 { self.0
.next()
.and_then(|u| i32::try_from(u).ok())
.unwrap_or(-1)
}
}
impl<'a> GraphemeClusterBreakIteratorLatin1<'a> { /// Finds the next breakpoint. Returns -1 if at the end of the string or if the index is /// out of range of a 32-bit signed integer. #[diplomat::rust_link(
icu::segmenter::iterators::GraphemeClusterBreakIterator::next,
FnInStruct
)] #[diplomat::rust_link(
icu::segmenter::iterators::GraphemeClusterBreakIterator::Item,
AssociatedTypeInStruct,
hidden
)] pubfn next(&mutself) -> i32 { self.0
.next()
.and_then(|u| i32::try_from(u).ok())
.unwrap_or(-1)
}
}
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.4Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.