use icu_collections::codepointinvlist::CodePointInversionListBuilder;
/// An object that accepts characters and/or strings /// to be used with [`CaseMapCloserBorrowed::add_string_case_closure_to()`] /// and [`CaseMapCloserBorrowed::add_case_closure_to()`]. /// /// Usually this object /// will be some kind of set over codepoints and strings, or something that /// can be built into one. /// /// An implementation is provided for [`CodePointInversionListBuilder`], but users are encouraged /// to implement this trait on their own collections as needed. /// /// [`CaseMapCloserBorrowed::add_string_case_closure_to()`]: crate::CaseMapCloserBorrowed::add_string_case_closure_to /// [`CaseMapCloserBorrowed::add_case_closure_to()`]: crate::CaseMapCloserBorrowed::add_case_closure_to pubtrait ClosureSink { /// Add a character to the set fn add_char(&mutself, c: char); /// Add a string to the set fn add_string(&mutself, string: &str);
}
// The current version of CodePointInversionList doesn't include strings. // Trying to add a string is a no-op that will be optimized away. #[inline] fn add_string(&mutself, _string: &str) {}
}
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.