Struct AddressLine
pub struct AddressLine(/* private fields */);Implementations§
§impl AddressLine
impl AddressLine
pub fn new(value: impl AsRef<str>) -> Result<AddressLine, AddressLineError>
pub fn new(value: impl AsRef<str>) -> Result<AddressLine, AddressLineError>
Creates a value from non-empty text.
§Errors
Returns AddressLineError::Empty when the trimmed value is empty.
pub fn as_str(&self) -> &str
Trait Implementations§
§impl AsRef<str> for AddressLine
impl AsRef<str> for AddressLine
§impl Clone for AddressLine
impl Clone for AddressLine
§fn clone(&self) -> AddressLine
fn clone(&self) -> AddressLine
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 more§impl Debug for AddressLine
impl Debug for AddressLine
§impl Display for AddressLine
impl Display for AddressLine
§impl From<AddressLine1> for AddressLine
impl From<AddressLine1> for AddressLine
§fn from(value: AddressLine1) -> AddressLine
fn from(value: AddressLine1) -> AddressLine
Converts to this type from the input type.
§impl From<AddressLine2> for AddressLine
impl From<AddressLine2> for AddressLine
§fn from(value: AddressLine2) -> AddressLine
fn from(value: AddressLine2) -> AddressLine
Converts to this type from the input type.
§impl FromStr for AddressLine
impl FromStr for AddressLine
§type Err = AddressLineError
type Err = AddressLineError
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<AddressLine, <AddressLine as FromStr>::Err>
fn from_str(value: &str) -> Result<AddressLine, <AddressLine as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for AddressLine
impl Hash for AddressLine
§impl Ord for AddressLine
impl Ord for AddressLine
§impl PartialEq for AddressLine
impl PartialEq for AddressLine
§impl PartialOrd for AddressLine
impl PartialOrd for AddressLine
§impl TryFrom<&str> for AddressLine
impl TryFrom<&str> for AddressLine
§type Error = AddressLineError
type Error = AddressLineError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<AddressLine, <AddressLine as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<AddressLine, <AddressLine as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for AddressLine
impl StructuralPartialEq for AddressLine
Auto Trait Implementations§
impl Freeze for AddressLine
impl RefUnwindSafe for AddressLine
impl Send for AddressLine
impl Sync for AddressLine
impl Unpin for AddressLine
impl UnsafeUnpin for AddressLine
impl UnwindSafe for AddressLine
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