Struct lightning_types::string::UntrustedString
source · pub struct UntrustedString(pub String);
Expand description
Struct to Display
fields in a safe way using PrintableString
Tuple Fields§
§0: String
Trait Implementations§
source§impl Clone for UntrustedString
impl Clone for UntrustedString
source§fn clone(&self) -> UntrustedString
fn clone(&self) -> UntrustedString
Returns a copy 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 moresource§impl Debug for UntrustedString
impl Debug for UntrustedString
source§impl Default for UntrustedString
impl Default for UntrustedString
source§fn default() -> UntrustedString
fn default() -> UntrustedString
Returns the “default value” for a type. Read more
source§impl Display for UntrustedString
impl Display for UntrustedString
source§impl Hash for UntrustedString
impl Hash for UntrustedString
source§impl Ord for UntrustedString
impl Ord for UntrustedString
source§fn cmp(&self, other: &UntrustedString) -> Ordering
fn cmp(&self, other: &UntrustedString) -> Ordering
1.21.0 · 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 UntrustedString
impl PartialEq for UntrustedString
source§impl PartialOrd for UntrustedString
impl PartialOrd for UntrustedString
impl Eq for UntrustedString
impl StructuralPartialEq for UntrustedString
Auto Trait Implementations§
impl Freeze for UntrustedString
impl RefUnwindSafe for UntrustedString
impl Send for UntrustedString
impl Sync for UntrustedString
impl Unpin for UntrustedString
impl UnwindSafe for UntrustedString
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)