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