Struct icu_segmenter::complex::ComplexPayloads
source · pub(crate) struct ComplexPayloads {
grapheme: DataPayload<GraphemeClusterBreakDataV1Marker>,
my: Option<Result<DataPayload<UCharDictionaryBreakDataV1Marker>, DataPayload<LstmForWordLineAutoV1Marker>>>,
km: Option<Result<DataPayload<UCharDictionaryBreakDataV1Marker>, DataPayload<LstmForWordLineAutoV1Marker>>>,
lo: Option<Result<DataPayload<UCharDictionaryBreakDataV1Marker>, DataPayload<LstmForWordLineAutoV1Marker>>>,
th: Option<Result<DataPayload<UCharDictionaryBreakDataV1Marker>, DataPayload<LstmForWordLineAutoV1Marker>>>,
ja: Option<DataPayload<UCharDictionaryBreakDataV1Marker>>,
}
Fields§
§grapheme: DataPayload<GraphemeClusterBreakDataV1Marker>
§my: Option<Result<DataPayload<UCharDictionaryBreakDataV1Marker>, DataPayload<LstmForWordLineAutoV1Marker>>>
§km: Option<Result<DataPayload<UCharDictionaryBreakDataV1Marker>, DataPayload<LstmForWordLineAutoV1Marker>>>
§lo: Option<Result<DataPayload<UCharDictionaryBreakDataV1Marker>, DataPayload<LstmForWordLineAutoV1Marker>>>
§th: Option<Result<DataPayload<UCharDictionaryBreakDataV1Marker>, DataPayload<LstmForWordLineAutoV1Marker>>>
§ja: Option<DataPayload<UCharDictionaryBreakDataV1Marker>>
Implementations§
source§impl ComplexPayloads
impl ComplexPayloads
fn select( &self, language: Language, ) -> Option<Result<&'_ DataPayload<UCharDictionaryBreakDataV1Marker>, &'_ DataPayload<LstmForWordLineAutoV1Marker>>>
pub(crate) fn new_lstm() -> Self
pub(crate) fn try_new_lstm<D>(provider: &D) -> Result<Self, DataError>
pub(crate) fn new_dict() -> Self
pub(crate) fn try_new_dict<D>(provider: &D) -> Result<Self, DataError>
pub(crate) fn new_auto() -> Self
pub(crate) fn try_new_auto<D>(provider: &D) -> Result<Self, DataError>
pub(crate) fn new_southeast_asian() -> Self
pub(crate) fn try_new_southeast_asian<D>( provider: &D, ) -> Result<Self, DataError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComplexPayloads
impl RefUnwindSafe for ComplexPayloads
impl !Send for ComplexPayloads
impl !Sync for ComplexPayloads
impl Unpin for ComplexPayloads
impl UnwindSafe for ComplexPayloads
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more