pub enum Transcode {
Copy(FixedEncoding),
Latin1ToUtf16,
Latin1ToUtf8,
Utf16ToCompactProbablyUtf16,
Utf16ToCompactUtf16,
Utf16ToLatin1,
Utf16ToUtf8,
Utf8ToCompactUtf16,
Utf8ToLatin1,
Utf8ToUtf16,
}Expand description
Possible transcoding operations that must be provided by the host.
Note that each transcoding operation may have a unique signature depending on the precise operation.
Variants§
Copy(FixedEncoding)
Latin1ToUtf16
Latin1ToUtf8
Utf16ToCompactProbablyUtf16
Utf16ToCompactUtf16
Utf16ToLatin1
Utf16ToUtf8
Utf8ToCompactUtf16
Utf8ToLatin1
Utf8ToUtf16
Implementations§
Source§impl Transcode
impl Transcode
Sourcepub const UTF16_TO_COMPACT_PROBABLY_UTF16_TAG: u32
pub const UTF16_TO_COMPACT_PROBABLY_UTF16_TAG: u32
The bit that the Utf16ToCompactProbablyUtf16 host libcall sets in its
returned length to indicate utf16. The libcall’s trampoline moves it to
the high bit of the destination memory’s pointer width, which is the
guest-visible latin1+utf16 tag.
Sourcepub fn symbol_fragment(&self) -> &'static str
pub fn symbol_fragment(&self) -> &'static str
Get this transcoding’s symbol fragment.
Trait Implementations§
impl Copy for Transcode
impl Eq for Transcode
impl StructuralPartialEq for Transcode
Auto Trait Implementations§
impl Forget for Transcode
impl Freeze for Transcode
impl Move for Transcode
impl RefUnwindSafe for Transcode
impl Send for Transcode
impl Sync for Transcode
impl Unpin for Transcode
impl UnsafeUnpin for Transcode
impl UnwindSafe for Transcode
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more