pub struct SeriesName(/* private fields */);Expand description
A non-empty price series name.
Implementations§
Source§impl SeriesName
impl SeriesName
Sourcepub fn new(value: impl AsRef<str>) -> Result<SeriesName, SeriesNameError>
pub fn new(value: impl AsRef<str>) -> Result<SeriesName, SeriesNameError>
Creates a series name from non-empty text.
§Errors
Returns SeriesNameError::Empty when the trimmed name is empty.
Trait Implementations§
Source§impl AsRef<str> for SeriesName
impl AsRef<str> for SeriesName
Source§impl Clone for SeriesName
impl Clone for SeriesName
Source§fn clone(&self) -> SeriesName
fn clone(&self) -> SeriesName
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 Debug for SeriesName
impl Debug for SeriesName
Source§impl Display for SeriesName
impl Display for SeriesName
impl Eq for SeriesName
Source§impl FromStr for SeriesName
impl FromStr for SeriesName
Source§type Err = SeriesNameError
type Err = SeriesNameError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<SeriesName, <SeriesName as FromStr>::Err>
fn from_str(value: &str) -> Result<SeriesName, <SeriesName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for SeriesName
impl Hash for SeriesName
Source§impl Ord for SeriesName
impl Ord for SeriesName
Source§fn cmp(&self, other: &SeriesName) -> Ordering
fn cmp(&self, other: &SeriesName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SeriesName
impl PartialEq for SeriesName
Source§fn eq(&self, other: &SeriesName) -> bool
fn eq(&self, other: &SeriesName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SeriesName
impl PartialOrd for SeriesName
impl StructuralPartialEq for SeriesName
Auto Trait Implementations§
impl Freeze for SeriesName
impl RefUnwindSafe for SeriesName
impl Send for SeriesName
impl Sync for SeriesName
impl Unpin for SeriesName
impl UnsafeUnpin for SeriesName
impl UnwindSafe for SeriesName
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