Struct bincode_core::config::WithOtherLimit [−][src]
A configuration struct with a user-specified byte limit
Trait Implementations
impl<O: Clone + Options, L: Clone + SizeLimit> Clone for WithOtherLimit<O, L>
[src]
fn clone(&self) -> WithOtherLimit<O, L>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<O: Copy + Options, L: Copy + SizeLimit> Copy for WithOtherLimit<O, L>
[src]
Auto Trait Implementations
impl<O, L> RefUnwindSafe for WithOtherLimit<O, L> where
L: RefUnwindSafe,
O: RefUnwindSafe,
L: RefUnwindSafe,
O: RefUnwindSafe,
impl<O, L> Send for WithOtherLimit<O, L> where
L: Send,
O: Send,
L: Send,
O: Send,
impl<O, L> Sync for WithOtherLimit<O, L> where
L: Sync,
O: Sync,
L: Sync,
O: Sync,
impl<O, L> Unpin for WithOtherLimit<O, L> where
L: Unpin,
O: Unpin,
L: Unpin,
O: Unpin,
impl<O, L> UnwindSafe for WithOtherLimit<O, L> where
L: UnwindSafe,
O: UnwindSafe,
L: UnwindSafe,
O: 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,
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> Options for T where
T: InternalOptions,
[src]
T: InternalOptions,
fn with_no_limit(self) -> WithOtherLimit<Self, Infinite>
[src]
fn with_limit(self, limit: u64) -> WithOtherLimit<Self, Bounded>
[src]
fn with_little_endian(self) -> WithOtherEndian<Self, LittleEndian>
[src]
fn with_big_endian(self) -> WithOtherEndian<Self, BigEndian>
[src]
fn with_native_endian(self) -> WithOtherEndian<Self, NativeEndian>
[src]
fn with_varint_encoding(self) -> WithOtherIntEncoding<Self, VarintEncoding>
[src]
fn with_fixint_encoding(self) -> WithOtherIntEncoding<Self, FixintEncoding>
[src]
fn reject_trailing_bytes(self) -> WithOtherTrailing<Self, RejectTrailing>
[src]
fn allow_trailing_bytes(self) -> WithOtherTrailing<Self, AllowTrailing>
[src]
fn serialized_size<T: ?Sized + Serialize>(
self,
t: &T
) -> Result<usize, SerializeError<()>>
[src]
self,
t: &T
) -> Result<usize, SerializeError<()>>
fn serialize_into<W: CoreWrite, T: ?Sized + Serialize>(
self,
w: W,
t: &T
) -> Result<(), SerializeError<W>>
[src]
self,
w: W,
t: &T
) -> Result<(), SerializeError<W>>
fn deserialize<'a, T: Deserialize<'a>>(
self,
bytes: &'a [u8]
) -> Result<T, DeserializeError<'a, &'a [u8]>>
[src]
self,
bytes: &'a [u8]
) -> Result<T, DeserializeError<'a, &'a [u8]>>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,