[−][src]Struct rkyv::std_impl::ArchivedString
An archived String
.
Uses ArchivedStringSlice
under
the hood.
Implementations
impl ArchivedString
[src]
pub fn as_str(&self) -> &str
[src]
Extracts a string slice containing the entire ArchivedString
.
pub fn as_mut_str(&mut self) -> &mut str
[src]
Converts an ArchivedString
into a mutable string slice.
pub fn str_pin(self: Pin<&mut Self>) -> Pin<&mut str>
[src]
Gets the value of this archived string as a pinned mutable reference.
Trait Implementations
impl Borrow<str> for ArchivedString
[src]
impl<C> CheckBytes<C> for ArchivedString where
ArchivedStringSlice: CheckBytes<C>,
[src]
ArchivedStringSlice: CheckBytes<C>,
type Error = <ArchivedStringSlice as CheckBytes<C>>::Error
The error that may result from validating the type.
pub unsafe fn check_bytes<'a>(
bytes: *const u8,
context: &mut C
) -> Result<&'a Self, Self::Error>
[src]
bytes: *const u8,
context: &mut C
) -> Result<&'a Self, Self::Error>
impl Debug for ArchivedString
[src]
impl Deref for ArchivedString
[src]
impl DerefMut for ArchivedString
[src]
impl Display for ArchivedString
[src]
impl Eq for ArchivedString
[src]
impl Hash for ArchivedString
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ArchivedString
[src]
pub fn cmp(&self, other: &ArchivedString) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'_> PartialEq<&'_ str> for ArchivedString
[src]
pub fn eq(&self, other: &&str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<ArchivedString> for ArchivedString
[src]
pub fn eq(&self, other: &ArchivedString) -> bool
[src]
pub fn ne(&self, other: &ArchivedString) -> bool
[src]
impl<'_> PartialEq<ArchivedString> for &'_ str
[src]
pub fn eq(&self, other: &ArchivedString) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<ArchivedString> for String
[src]
pub fn eq(&self, other: &ArchivedString) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<String> for ArchivedString
[src]
pub fn eq(&self, other: &String) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<ArchivedString> for ArchivedString
[src]
pub fn partial_cmp(&self, other: &ArchivedString) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ArchivedString) -> bool
[src]
pub fn le(&self, other: &ArchivedString) -> bool
[src]
pub fn gt(&self, other: &ArchivedString) -> bool
[src]
pub fn ge(&self, other: &ArchivedString) -> bool
[src]
impl StructuralEq for ArchivedString
[src]
impl StructuralPartialEq for ArchivedString
[src]
Auto Trait Implementations
impl RefUnwindSafe for ArchivedString
impl Send for ArchivedString
impl Sync for ArchivedString
impl !Unpin for ArchivedString
impl UnwindSafe for ArchivedString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,