pub struct HelloWorld<'data> {
pub message: Cow<'data, str>,
}Expand description
A struct containing “Hello World” in the requested language.
Fields§
§message: Cow<'data, str>The translation of “Hello World”.
Trait Implementations§
Source§impl<'data> Clone for HelloWorld<'data>
impl<'data> Clone for HelloWorld<'data>
Source§fn clone(&self) -> HelloWorld<'data>
fn clone(&self) -> HelloWorld<'data>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'data> Debug for HelloWorld<'data>
impl<'data> Debug for HelloWorld<'data>
Source§impl Default for HelloWorld<'_>
impl Default for HelloWorld<'_>
Source§impl<'data> MaybeAsVarULE for HelloWorld<'data>
impl<'data> MaybeAsVarULE for HelloWorld<'data>
Source§impl<'data> PartialEq for HelloWorld<'data>
impl<'data> PartialEq for HelloWorld<'data>
Source§fn eq(&self, other: &HelloWorld<'data>) -> bool
fn eq(&self, other: &HelloWorld<'data>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'yoke> Yokeable<'yoke> for HelloWorld<'static>
impl<'yoke> Yokeable<'yoke> for HelloWorld<'static>
Source§type Output = HelloWorld<'yoke>
type Output = HelloWorld<'yoke>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Source§impl<'a> ZeroFrom<'a, str> for HelloWorld<'a>
impl<'a> ZeroFrom<'a, str> for HelloWorld<'a>
Source§impl<'zf, 'zf_inner> ZeroFrom<'zf, HelloWorld<'zf_inner>> for HelloWorld<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, HelloWorld<'zf_inner>> for HelloWorld<'zf>
Source§fn zero_from(this: &'zf HelloWorld<'zf_inner>) -> Self
fn zero_from(this: &'zf HelloWorld<'zf_inner>) -> Self
Clone the other
C into a struct that may retain references into C.impl<'data> StructuralPartialEq for HelloWorld<'data>
Auto Trait Implementations§
impl<'data> Freeze for HelloWorld<'data>
impl<'data> RefUnwindSafe for HelloWorld<'data>
impl<'data> Send for HelloWorld<'data>
impl<'data> Sync for HelloWorld<'data>
impl<'data> Unpin for HelloWorld<'data>
impl<'data> UnsafeUnpin for HelloWorld<'data>
impl<'data> UnwindSafe for HelloWorld<'data>
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