Type Alias TimeZone

Source
pub type TimeZone = PlSmallStr;

Aliased Type§

struct TimeZone(/* private fields */);

Implementations

Source§

impl PlSmallStr

Source

pub const EMPTY: PlSmallStr

Source

pub const EMPTY_REF: &'static PlSmallStr

Source

pub const fn from_static(s: &'static str) -> PlSmallStr

Source

pub fn from_str(s: &str) -> PlSmallStr

Source

pub fn from_string(s: String) -> PlSmallStr

Source

pub fn as_str(&self) -> &str

Source

pub fn as_mut_str(&mut self) -> &mut str

Source

pub fn into_string(self) -> String

Trait Implementations

Source§

impl AsRef<[u8]> for PlSmallStr

Source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<OsStr> for PlSmallStr

Source§

fn as_ref(&self) -> &OsStr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Path> for PlSmallStr

Source§

fn as_ref(&self) -> &Path

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<str> for PlSmallStr

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<str> for PlSmallStr

Source§

fn borrow(&self) -> &str

Immutably borrows from an owned value. Read more
Source§

impl Clone for PlSmallStr

Source§

fn clone(&self) -> PlSmallStr

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PlSmallStr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for PlSmallStr

Source§

fn default() -> PlSmallStr

Returns the “default value” for a type. Read more
Source§

impl Deref for PlSmallStr

Source§

type Target = str

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<PlSmallStr as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for PlSmallStr

Source§

fn deref_mut(&mut self) -> &mut <PlSmallStr as Deref>::Target

Mutably dereferences the value.
Source§

impl<'de> Deserialize<'de> for PlSmallStr

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<PlSmallStr, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for PlSmallStr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<&String> for PlSmallStr

Source§

fn from(value: &String) -> PlSmallStr

Converts to this type from the input type.
Source§

impl From<&str> for PlSmallStr

Source§

fn from(value: &str) -> PlSmallStr

Converts to this type from the input type.
Source§

impl From<CompactString> for PlSmallStr

Source§

fn from(value: CompactString) -> PlSmallStr

Converts to this type from the input type.
Source§

impl From<String> for PlSmallStr

Source§

fn from(value: String) -> PlSmallStr

Converts to this type from the input type.
Source§

impl<'a> FromIterator<&'a PlSmallStr> for PlSmallStr

Source§

fn from_iter<T>(iter: T) -> PlSmallStr
where T: IntoIterator<Item = &'a PlSmallStr>,

Creates a value from an iterator. Read more
Source§

impl<'a> FromIterator<&'a char> for PlSmallStr

Source§

fn from_iter<I>(iter: I) -> PlSmallStr
where I: IntoIterator<Item = &'a char>,

Creates a value from an iterator. Read more
Source§

impl<'a> FromIterator<&'a str> for PlSmallStr

Source§

fn from_iter<I>(iter: I) -> PlSmallStr
where I: IntoIterator<Item = &'a str>,

Creates a value from an iterator. Read more
Source§

impl FromIterator<Box<str>> for PlSmallStr

Source§

fn from_iter<I>(iter: I) -> PlSmallStr
where I: IntoIterator<Item = Box<str>>,

Creates a value from an iterator. Read more
Source§

impl<'a> FromIterator<Cow<'a, str>> for PlSmallStr

Source§

fn from_iter<I>(iter: I) -> PlSmallStr
where I: IntoIterator<Item = Cow<'a, str>>,

Creates a value from an iterator. Read more
Source§

impl FromIterator<PlSmallStr> for PlSmallStr

Source§

fn from_iter<T>(iter: T) -> PlSmallStr
where T: IntoIterator<Item = PlSmallStr>,

Creates a value from an iterator. Read more
Source§

impl FromIterator<String> for PlSmallStr

Source§

fn from_iter<I>(iter: I) -> PlSmallStr
where I: IntoIterator<Item = String>,

Creates a value from an iterator. Read more
Source§

impl FromIterator<char> for PlSmallStr

Source§

fn from_iter<I>(iter: I) -> PlSmallStr
where I: IntoIterator<Item = char>,

Creates a value from an iterator. Read more
Source§

impl Hash for PlSmallStr

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Literal for PlSmallStr

§

fn lit(self) -> Expr

Literal expression.
Source§

impl Ord for PlSmallStr

Source§

fn cmp(&self, other: &PlSmallStr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T> PartialEq<T> for PlSmallStr
where T: AsRef<str> + ?Sized,

Source§

fn eq(&self, other: &T) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for PlSmallStr

Source§

fn partial_cmp(&self, other: &PlSmallStr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for PlSmallStr

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Write for PlSmallStr

Source§

fn write_char(&mut self, c: char) -> Result<(), Error>

Writes a char into this writer, returning whether the write succeeded. Read more
Source§

fn write_fmt(&mut self, args: Arguments<'_>) -> Result<(), Error>

Glue for usage of the write! macro with implementors of this trait. Read more
Source§

fn write_str(&mut self, s: &str) -> Result<(), Error>

Writes a string slice into this writer, returning whether the write succeeded. Read more
Source§

impl Eq for PlSmallStr