Struct icu::experimental::transliterate::provider::FunctionCall
source · pub struct FunctionCall<'a> {
pub translit: SimpleId<'a>,
pub arg: Cow<'a, str>,
}
Expand description
An inline recursive call to a transliterator with an arbitrary argument.
Fields§
§translit: SimpleId<'a>
The transliterator that will be called.
arg: Cow<'a, str>
The argument to be transliterated given to the transliterator.
Trait Implementations§
source§impl<'a> Clone for FunctionCall<'a>
impl<'a> Clone for FunctionCall<'a>
source§fn clone(&self) -> FunctionCall<'a>
fn clone(&self) -> FunctionCall<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for FunctionCall<'a>
impl<'a> Debug for FunctionCall<'a>
source§impl<'de, 'a> Deserialize<'de> for FunctionCall<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for FunctionCall<'a>where
'de: 'a,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FunctionCall<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FunctionCall<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> EncodeAsVarULE<FunctionCallULE> for &FunctionCall<'a>
impl<'a> EncodeAsVarULE<FunctionCallULE> for &FunctionCall<'a>
source§fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
Calls
cb
with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T
. Read moresource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding
VarULE
typesource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
Write the corresponding
VarULE
type to the dst
buffer. dst
should
be the size of Self::encode_var_ule_len()
source§impl<'a> EncodeAsVarULE<FunctionCallULE> for FunctionCall<'a>
impl<'a> EncodeAsVarULE<FunctionCallULE> for FunctionCall<'a>
source§fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
Calls
cb
with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T
. Read moresource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding
VarULE
typesource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
Write the corresponding
VarULE
type to the dst
buffer. dst
should
be the size of Self::encode_var_ule_len()
source§impl<'a> From<&'a FunctionCallULE> for FunctionCall<'a>
impl<'a> From<&'a FunctionCallULE> for FunctionCall<'a>
source§fn from(other: &'a FunctionCallULE) -> FunctionCall<'a>
fn from(other: &'a FunctionCallULE) -> FunctionCall<'a>
Converts to this type from the input type.
source§impl<'a> Serialize for FunctionCall<'a>
impl<'a> Serialize for FunctionCall<'a>
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<'a> ZeroFrom<'a, FunctionCallULE> for FunctionCall<'a>
impl<'a> ZeroFrom<'a, FunctionCallULE> for FunctionCall<'a>
source§fn zero_from(other: &'a FunctionCallULE) -> FunctionCall<'a>
fn zero_from(other: &'a FunctionCallULE) -> FunctionCall<'a>
Clone the other
C
into a struct that may retain references into C
.Auto Trait Implementations§
impl<'a> Freeze for FunctionCall<'a>
impl<'a> RefUnwindSafe for FunctionCall<'a>
impl<'a> Send for FunctionCall<'a>
impl<'a> Sync for FunctionCall<'a>
impl<'a> Unpin for FunctionCall<'a>
impl<'a> UnwindSafe for FunctionCall<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more