Struct lifx_core::LifxString [−][src]
pub struct LifxString(pub String);
Lifx strings are fixed-length (32-bytes maximum)
Methods
impl LifxString[src]
impl LifxStringpub fn new(s: &str) -> LifxString[src]
pub fn new(s: &str) -> LifxStringConstructs a new LifxString, truncating to 32 characters.
Trait Implementations
impl Debug for LifxString[src]
impl Debug for LifxStringfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for LifxString[src]
impl Clone for LifxStringfn clone(&self) -> LifxString[src]
fn clone(&self) -> LifxStringReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for LifxString[src]
impl PartialEq for LifxStringfn eq(&self, other: &LifxString) -> bool[src]
fn eq(&self, other: &LifxString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &LifxString) -> bool[src]
fn ne(&self, other: &LifxString) -> boolThis method tests for !=.
impl Display for LifxString[src]
impl Display for LifxStringfn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl PartialEq<str> for LifxString[src]
impl PartialEq<str> for LifxStringAuto Trait Implementations
impl Send for LifxString
impl Send for LifxStringimpl Sync for LifxString
impl Sync for LifxString