pub struct XString<S: Str + ?Sized = str, A: Allocator = Global> { /* private fields */ }Implementations§
Source§impl<S: Str + ?Sized> XString<S>
impl<S: Str + ?Sized> XString<S>
pub fn new(source: &S) -> Self
pub fn from_static(source: &'static S) -> Self
Trait Implementations§
Source§impl<'de, T: Str + ?Sized, A: Allocator + Default> Deserialize<'de> for XString<T, A>where
&'de T: Deserialize<'de> + 'de,
impl<'de, T: Str + ?Sized, A: Allocator + Default> Deserialize<'de> for XString<T, A>where
&'de T: Deserialize<'de> + 'de,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S: Str + ?Sized + Ord, A: Allocator> Ord for XString<S, A>
impl<S: Str + ?Sized + Ord, A: Allocator> Ord for XString<S, A>
Source§impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd<&S> for XString<S, A>
impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd<&S> for XString<S, A>
Source§impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd<Arc<S>> for XString<S, A>
impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd<Arc<S>> for XString<S, A>
Source§impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd<Box<S>> for XString<S, A>
impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd<Box<S>> for XString<S, A>
Source§impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd<Rc<S>> for XString<S, A>
impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd<Rc<S>> for XString<S, A>
Source§impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd<S> for XString<S, A>
impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd<S> for XString<S, A>
Source§impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd for XString<S, A>
impl<S: Str + ?Sized + PartialOrd, A: Allocator> PartialOrd for XString<S, A>
Source§impl<S: Str + ?Sized + ToSocketAddrs, A: Allocator> ToSocketAddrs for XString<S, A>
impl<S: Str + ?Sized + ToSocketAddrs, A: Allocator> ToSocketAddrs for XString<S, A>
Source§type Iter = <S as ToSocketAddrs>::Iter
type Iter = <S as ToSocketAddrs>::Iter
Returned iterator over socket addresses which this type may correspond
to.
Source§fn to_socket_addrs(&self) -> Result<Self::Iter>
fn to_socket_addrs(&self) -> Result<Self::Iter>
Converts this object to an iterator of resolved
SocketAddrs. Read moreimpl<S: Str + ?Sized + Eq, A: Allocator> Eq for XString<S, A>
impl<S: Str + ?Sized + Send, A: Allocator> Send for XString<S, A>
impl<S: Str + ?Sized + Sync, A: Allocator> Sync for XString<S, A>
impl<S: Str + ?Sized + Unpin, A: Allocator> Unpin for XString<S, A>
Auto Trait Implementations§
impl<S, A> Freeze for XString<S, A>where
S: ?Sized,
impl<S = str, A = Global> !RefUnwindSafe for XString<S, A>
impl<S = str, A = Global> !UnwindSafe for XString<S, A>
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