pub struct Str(pub Shared<str>);Expand description
The worked example: a host type is a payload, a name, an equality, an encoding.
Tuple Fields§
§0: Shared<str>Implementations§
Trait Implementations§
Source§impl HostType for Str
impl HostType for Str
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Wire tag and registry key, stable across processes. Table indices are
process-local, names are not.
Source§fn eq_atom(&self, other: &dyn HostType) -> bool
fn eq_atom(&self, other: &dyn HostType) -> bool
Implementations downcast and return
false on a foreign type rather
than comparing tags.fn encode(&self, out: &mut Vec<u8>)
fn as_any(&self) -> &dyn Any
impl StructuralPartialEq for Str
Auto Trait Implementations§
impl Freeze for Str
impl RefUnwindSafe for Str
impl Send for Str
impl Sync for Str
impl Unpin for Str
impl UnwindSafe for Str
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