pub struct LocalisedString;Expand description
Factorio LocalisedString:
a plain string or a translation table { "category.key", arg1, ... }.
Pass a string, or an array of strings (locale key plus __1__ / __2__ args).
.into() is transparent when lowering, so [key, name].into() becomes
{ key, name } in Lua.
Trait Implementations§
Source§impl Clone for LocalisedString
impl Clone for LocalisedString
Source§fn clone(&self) -> LocalisedString
fn clone(&self) -> LocalisedString
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 moreimpl Copy for LocalisedString
Source§impl Debug for LocalisedString
impl Debug for LocalisedString
Source§impl Default for LocalisedString
impl Default for LocalisedString
Source§fn default() -> LocalisedString
fn default() -> LocalisedString
Returns the “default value” for a type. Read more
impl Eq for LocalisedString
Source§impl<'a> From<&'a str> for LocalisedString
impl<'a> From<&'a str> for LocalisedString
Source§fn from(_: &'a str) -> LocalisedString
fn from(_: &'a str) -> LocalisedString
Converts to this type from the input type.
Source§impl From<String> for LocalisedString
impl From<String> for LocalisedString
Source§fn from(_: String) -> LocalisedString
fn from(_: String) -> LocalisedString
Converts to this type from the input type.
Source§impl PartialEq for LocalisedString
impl PartialEq for LocalisedString
impl StructuralPartialEq for LocalisedString
Auto Trait Implementations§
impl Freeze for LocalisedString
impl RefUnwindSafe for LocalisedString
impl Send for LocalisedString
impl Sync for LocalisedString
impl Unpin for LocalisedString
impl UnsafeUnpin for LocalisedString
impl UnwindSafe for LocalisedString
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