[−][src]Struct serde_traitobject::Box
Convenience wrapper around std::boxed::Boxserde_traitobject
for (de)serialization.
Implementations
impl<T> Box<T>
[src]
impl<T: ?Sized> Box<T>
[src]
pub fn into_box(self) -> Box<T>
[src]
Convert to a regular std::Boxed::Box<T>
. Coherence rules prevent currently prevent impl Into<std::boxed::Box<T>> for Box<T>
.
impl Box<dyn Any>
[src]
impl Box<dyn Any + Send>
[src]
pub fn into_any_send(self) -> Box<dyn Any + Send>
[src]
Convert into a std::boxed::Box<dyn std::any::Any + Send>
.
impl Box<dyn Any + Sync>
[src]
pub fn into_any_sync(self) -> Box<dyn Any + Sync>
[src]
Convert into a std::boxed::Box<dyn std::any::Any + Sync>
.
impl Box<dyn Any + Send + Sync>
[src]
pub fn into_any_send_sync(self) -> Box<dyn Any + Send + Sync>
[src]
Convert into a std::boxed::Box<dyn std::any::Any + Send + Sync>
.
Methods from Deref<Target = Box<T>>
Trait Implementations
impl<T: ?Sized> AsMut<Box<T>> for Box<T>
[src]
impl<T: ?Sized> AsMut<T> for Box<T>
[src]
impl<T: ?Sized> AsRef<Box<T>> for Box<T>
[src]
impl<T: ?Sized> AsRef<T> for Box<T>
[src]
impl<T: ?Sized> Borrow<T> for Box<T>
[src]
impl<T: ?Sized> BorrowMut<T> for Box<T>
[src]
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T: Clone + ?Sized> Clone for Box<T>
[src]
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T>
[src]
impl<T: Debug + ?Sized> Debug for Box<T>
[src]
impl<T: Default + ?Sized> Default for Box<T>
[src]
impl<T: ?Sized> Deref for Box<T>
[src]
impl<T: ?Sized> DerefMut for Box<T>
[src]
impl<'de, T: Deserialize + ?Sized + 'static> Deserialize<'de> for Box<T>
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl<T: Display + ?Sized> Display for Box<T>
[src]
impl<T: Eq + ?Sized> Eq for Box<T>
[src]
impl<T: Error> Error for Box<T>
[src]
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
impl<A, F: ?Sized> Fn<A> for Box<F> where
F: Fn<A>,
[src]
F: Fn<A>,
impl<A, F: ?Sized> FnMut<A> for Box<F> where
F: FnMut<A>,
[src]
F: FnMut<A>,
impl<A, F: ?Sized> FnOnce<A> for Box<F> where
F: FnOnce<A>,
[src]
F: FnOnce<A>,
type Output = F::Output
The returned type after the call operator is used.
extern "rust-call" fn call_once(self, args: A) -> Self::Output
[src]
impl<T: ?Sized> From<Box<T>> for Box<T>
[src]
impl<'a, E: Error + Serialize + Deserialize + 'a> From<E> for Box<dyn Error + 'a>
[src]
impl<T> From<T> for Box<T>
[src]
impl<T: Hash + ?Sized> Hash for Box<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Ord + ?Sized> Ord for Box<T>
[src]
fn cmp(&self, other: &Box<T>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: PartialEq + ?Sized> PartialEq<Box<T>> for Box<T>
[src]
impl<T: PartialOrd + ?Sized> PartialOrd<Box<T>> for Box<T>
[src]
fn partial_cmp(&self, other: &Box<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &Box<T>) -> bool
[src]
fn le(&self, other: &Box<T>) -> bool
[src]
fn gt(&self, other: &Box<T>) -> bool
[src]
fn ge(&self, other: &Box<T>) -> bool
[src]
impl<T: Serialize + ?Sized + 'static> Serialize for Box<T>
[src]
impl<T: ?Sized> StructuralEq for Box<T>
[src]
impl<T: ?Sized> StructuralPartialEq for Box<T>
[src]
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Box<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T: ?Sized> Send for Box<T> where
T: Send,
T: Send,
impl<T: ?Sized> Sync for Box<T> where
T: Sync,
T: Sync,
impl<T: ?Sized> Unpin for Box<T>
impl<T: ?Sized> UnwindSafe for Box<T> where
T: UnwindSafe,
T: UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Deserialize for T where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<!> for 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<'a, F> Pattern<'a> for F where
F: FnMut(char) -> bool,
[src]
F: FnMut(char) -> bool,
type Searcher = CharPredicateSearcher<'a, F>
🔬 This is a nightly-only experimental API. (pattern
)
API not fully fleshed out and ready to be stabilized
Associated searcher for this pattern
fn into_searcher(self, haystack: &'a str) -> CharPredicateSearcher<'a, F>
[src]
fn is_contained_in(self, haystack: &'a str) -> bool
[src]
fn is_prefix_of(self, haystack: &'a str) -> bool
[src]
fn strip_prefix_of(self, haystack: &'a str) -> Option<&'a str>
[src]
fn is_suffix_of(self, haystack: &'a str) -> bool where
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
[src]
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
fn strip_suffix_of(self, haystack: &'a str) -> Option<&'a str> where
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
[src]
CharPredicateSearcher<'a, F>: ReverseSearcher<'a>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Type for T where
T: ?Sized,
[src]
T: ?Sized,
default fn meta(self: *const T) -> <T as Type>::Meta
[src]
default fn data(self: *const T) -> *const ()
[src]
default fn data_mut(self: *mut T) -> *mut ()
[src]
default fn dangling(t: <T as Type>::Meta) -> NonNull<T>
[src]
default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T
[src]
const METATYPE: MetaType
[src]
type Meta: 'static
fn meta_type(self: *const Self) -> MetaType
[src]
impl<T> Type for T
[src]
const METATYPE: MetaType
[src]
type Meta = Concrete
Type of metadata for type.