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> Bake for HelloWorld<'data>
impl<'data> Bake for HelloWorld<'data>
Source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Source§impl<'data> BakeSize for HelloWorld<'data>
impl<'data> BakeSize for HelloWorld<'data>
Source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
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 · 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<'de: 'data, 'data> Deserialize<'de> for HelloWorld<'data>
impl<'de: 'data, 'data> Deserialize<'de> for HelloWorld<'data>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'data> MaybeAsVarULE for HelloWorld<'data>
impl<'data> MaybeAsVarULE for HelloWorld<'data>
Source§type EncodedStruct = str
type EncodedStruct = str
The [
VarULE] type for this data struct, or [()]
if it cannot be represented as [VarULE].Source§impl<'data> MaybeEncodeAsVarULE for HelloWorld<'data>
Available on crate feature export only.
impl<'data> MaybeEncodeAsVarULE for HelloWorld<'data>
Available on crate feature
export only.Source§type EncodeableStruct<'b> = &'b str
where
Self: 'b
type EncodeableStruct<'b> = &'b str where Self: 'b
The type returned by
Self::maybe_as_encodeable.Source§fn maybe_as_encodeable<'b>(&'b self) -> Option<Self::EncodeableStruct<'b>>
fn maybe_as_encodeable<'b>(&'b self) -> Option<Self::EncodeableStruct<'b>>
Returns something encodeable to the
MaybeAsVarULE::EncodedStruct that represents
this data struct, or None if the data struct does not support this representation.Source§impl<'data> PartialEq for HelloWorld<'data>
impl<'data> PartialEq for HelloWorld<'data>
Source§impl<'data> Serialize for HelloWorld<'data>
impl<'data> Serialize for HelloWorld<'data>
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§unsafe fn make(from: Self::Output) -> Self
unsafe fn make(from: Self::Output) -> Self
This method can be used to cast away
Self<'a>’s lifetime. Read moreSource§fn transform_mut<F>(&'yoke mut self, f: F)where
F: 'static + for<'_yoke> FnOnce(&'_yoke mut Self::Output),
fn transform_mut<F>(&'yoke mut self, f: F)where
F: 'static + for<'_yoke> FnOnce(&'_yoke mut Self::Output),
This method must cast
self between &'a mut Self<'static> and &'a mut Self<'a>,
and pass it to f. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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