(function() {var type_impls = { "toml_edit":[["
1.64.0 · source§

impl<T> AsFd for Box<T>
where\n T: AsFd + ?Sized,

source§

fn as_fd(&self) -> BorrowedFd<'_>

Borrows the file descriptor. Read more
","AsFd","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.5.0 · source§

impl<T, A> AsMut<T> for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn as_mut(&mut self) -> &mut T

Converts this type into a mutable reference of the (usually inferred) input type.
","AsMut","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.63.0 · source§

impl<T> AsRawFd for Box<T>
where\n T: AsRawFd,

source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
","AsRawFd","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.5.0 · source§

impl<T, A> AsRef<T> for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
","AsRef","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<Args, F, A> AsyncFn<Args> for Box<F, A>
where\n Args: Tuple,\n F: AsyncFn<Args> + ?Sized,\n A: Allocator,

§

type CallFuture<'a> = <F as AsyncFn<Args>>::CallFuture<'a>\nwhere\n Box<F, A>: 'a

🔬This is a nightly-only experimental API. (async_fn_traits)
Future returned by AsyncFn::async_call.
source§

extern "rust-call" fn async_call(\n &self,\n args: Args\n) -> <Box<F, A> as AsyncFn<Args>>::CallFuture<'_>

🔬This is a nightly-only experimental API. (async_fn_traits)
Call the AsyncFn, returning a future which may borrow from the called closure.
","AsyncFn","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<Args, F, A> AsyncFnMut<Args> for Box<F, A>
where\n Args: Tuple,\n F: AsyncFnMut<Args> + ?Sized,\n A: Allocator,

§

type CallMutFuture<'a> = <F as AsyncFnMut<Args>>::CallMutFuture<'a>\nwhere\n Box<F, A>: 'a

🔬This is a nightly-only experimental API. (async_fn_traits)
Future returned by AsyncFnMut::async_call_mut.
source§

extern "rust-call" fn async_call_mut(\n &mut self,\n args: Args\n) -> <Box<F, A> as AsyncFnMut<Args>>::CallMutFuture<'_>

🔬This is a nightly-only experimental API. (async_fn_traits)
Call the AsyncFnMut, returning a future which may borrow from the called closure.
","AsyncFnMut","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<Args, F, A> AsyncFnOnce<Args> for Box<F, A>
where\n Args: Tuple,\n F: AsyncFnOnce<Args> + ?Sized,\n A: Allocator,

§

type Output = <F as AsyncFnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (async_fn_traits)
Output type of the called closure’s future.
§

type CallOnceFuture = <F as AsyncFnOnce<Args>>::CallOnceFuture

🔬This is a nightly-only experimental API. (async_fn_traits)
Future returned by AsyncFnOnce::async_call_once.
source§

extern "rust-call" fn async_call_once(\n self,\n args: Args\n) -> <Box<F, A> as AsyncFnOnce<Args>>::CallOnceFuture

🔬This is a nightly-only experimental API. (async_fn_traits)
Call the AsyncFnOnce, returning a future which may move out of the called closure.
","AsyncFnOnce","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<S> AsyncIterator for Box<S>
where\n S: AsyncIterator + Unpin + ?Sized,

§

type Item = <S as AsyncIterator>::Item

🔬This is a nightly-only experimental API. (async_iterator)
The type of items yielded by the async iterator.
source§

fn poll_next(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>\n) -> Poll<Option<<Box<S> as AsyncIterator>::Item>>

🔬This is a nightly-only experimental API. (async_iterator)
Attempt to pull out the next value of this async iterator, registering the\ncurrent task for wakeup if the value is not yet available, and returning\nNone if the async iterator is exhausted. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

🔬This is a nightly-only experimental API. (async_iterator)
Returns the bounds on the remaining length of the async iterator. Read more
","AsyncIterator","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.1.0 · source§

impl<T, A> Borrow<T> for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
","Borrow","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.1.0 · source§

impl<T, A> BorrowMut<T> for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
","BorrowMut","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<T> Box<T>

1.0.0 · source

pub fn new(x: T) -> Box<T>

Allocates memory on the heap and then places x into it.

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
let five = Box::new(5);
\n
source

pub fn new_uninit() -> Box<MaybeUninit<T>>

🔬This is a nightly-only experimental API. (new_uninit)

Constructs a new box with uninitialized contents.

\n
§Examples
\n
#![feature(new_uninit)]\n\nlet mut five = Box::<u32>::new_uninit();\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed() -> Box<MaybeUninit<T>>

🔬This is a nightly-only experimental API. (new_uninit)

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(new_uninit)]\n\nlet zero = Box::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
1.33.0 · source

pub fn pin(x: T) -> Pin<Box<T>>

Constructs a new Pin<Box<T>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

\n

Constructing and pinning of the Box can also be done in two steps: Box::pin(x)\ndoes the same as Box::into_pin(Box::new(x)). Consider using\ninto_pin if you already have a Box<T>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new.

\n
source

pub fn try_new(x: T) -> Result<Box<T>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Allocates memory on the heap then places x into it,\nreturning an error if the allocation fails

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
#![feature(allocator_api)]\n\nlet five = Box::try_new(5)?;
\n
source

pub fn try_new_uninit() -> Result<Box<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new box with uninitialized contents on the heap,\nreturning an error if the allocation fails

\n
§Examples
\n
#![feature(allocator_api, new_uninit)]\n\nlet mut five = Box::<u32>::try_new_uninit()?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed() -> Result<Box<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes on the heap

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api, new_uninit)]\n\nlet zero = Box::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
",0,"toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<T> Box<T>
where\n T: ?Sized,

1.4.0 · source

pub unsafe fn from_raw(raw: *mut T) -> Box<T>

Constructs a box from a raw pointer.

\n

After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

\n
§Safety
\n

This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

\n

The safety conditions are described in the memory layout section.

\n
§Examples
\n

Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw:

\n\n
let x = Box::new(5);\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
\n

Manually create a Box from scratch by using the global allocator:

\n\n
use std::alloc::{alloc, Layout};\n\nunsafe {\n    let ptr = alloc(Layout::new::<i32>()) as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw(ptr);\n}
\n
",0,"toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<T, A> Box<T, A>
where\n A: Allocator,

source

pub fn new_in(x: T, alloc: A) -> Box<T, A>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)

Allocates memory in the given allocator then places x into it.

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::new_in(5, System);
\n
source

pub fn try_new_in(x: T, alloc: A) -> Result<Box<T, A>, AllocError>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)

Allocates memory in the given allocator then places x into it,\nreturning an error if the allocation fails

\n

This doesn’t actually allocate if T is zero-sized.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::try_new_in(5, System)?;
\n
source

pub fn new_uninit_in(alloc: A) -> Box<MaybeUninit<T>, A>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new box with uninitialized contents in the provided allocator.

\n
§Examples
\n
#![feature(allocator_api, new_uninit)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
source

pub fn try_new_uninit_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new box with uninitialized contents in the provided allocator,\nreturning an error if the allocation fails

\n
§Examples
\n
#![feature(allocator_api, new_uninit)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
source

pub fn new_zeroed_in(alloc: A) -> Box<MaybeUninit<T>, A>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api, new_uninit)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
source

pub fn try_new_zeroed_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
where\n A: Allocator,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator,\nreturning an error if the allocation fails,

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api, new_uninit)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
source

pub fn pin_in(x: T, alloc: A) -> Pin<Box<T, A>>
where\n A: 'static + Allocator,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Box<T, A>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

\n

Constructing and pinning of the Box can also be done in two steps: Box::pin_in(x, alloc)\ndoes the same as Box::into_pin(Box::new_in(x, alloc)). Consider using\ninto_pin if you already have a Box<T, A>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new_in.

\n
source

pub fn into_boxed_slice(boxed: Box<T, A>) -> Box<[T], A>

🔬This is a nightly-only experimental API. (box_into_boxed_slice)

Converts a Box<T> into a Box<[T]>

\n

This conversion does not allocate on the heap and happens in place.

\n
source

pub fn into_inner(boxed: Box<T, A>) -> T

🔬This is a nightly-only experimental API. (box_into_inner)

Consumes the Box, returning the wrapped value.

\n
§Examples
\n
#![feature(box_into_inner)]\n\nlet c = Box::new(5);\n\nassert_eq!(Box::into_inner(c), 5);
\n
",0,"toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<T, A> Box<T, A>
where\n A: Allocator,\n T: ?Sized,

const: unstable · source

pub unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Box<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a box from a raw pointer in the given allocator.

\n

After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

\n
§Safety
\n

This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

\n
§Examples
\n

Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw_with_allocator:

\n\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
\n

Manually create a Box from scratch by using the system allocator:

\n\n
#![feature(allocator_api, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let ptr = System.allocate(Layout::new::<i32>())?.as_mut_ptr() as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw_in(ptr, System);\n}
\n
1.4.0 · source

pub fn into_raw(b: Box<T, A>) -> *mut T

Consumes the Box, returning a wrapped raw pointer.

\n

The pointer will be properly aligned and non-null.

\n

After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw function, allowing the Box destructor to perform\nthe cleanup.

\n

Note: this is an associated function, which means that you have\nto call it as Box::into_raw(b) instead of b.into_raw(). This\nis so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Converting the raw pointer back into a Box with Box::from_raw\nfor automatic cleanup:

\n\n
let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
\n

Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

\n\n
use std::alloc::{dealloc, Layout};\nuse std::ptr;\n\nlet x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    dealloc(ptr as *mut u8, Layout::new::<String>());\n}
\n

Note: This is equivalent to the following:

\n\n
let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    drop(Box::from_raw(ptr));\n}
\n
source

pub fn into_raw_with_allocator(b: Box<T, A>) -> (*mut T, A)

🔬This is a nightly-only experimental API. (allocator_api)

Consumes the Box, returning a wrapped raw pointer and the allocator.

\n

The pointer will be properly aligned and non-null.

\n

After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw_in function, allowing the Box destructor to perform\nthe cleanup.

\n

Note: this is an associated function, which means that you have\nto call it as Box::into_raw_with_allocator(b) instead of b.into_raw_with_allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Converting the raw pointer back into a Box with Box::from_raw_in\nfor automatic cleanup:

\n\n
#![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
\n

Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

\n\n
#![feature(allocator_api)]\n\nuse std::alloc::{Allocator, Layout, System};\nuse std::ptr::{self, NonNull};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    let non_null = NonNull::new_unchecked(ptr);\n    alloc.deallocate(non_null.cast(), Layout::new::<String>());\n}
\n
const: unstable · source

pub fn allocator(b: &Box<T, A>) -> &A

🔬This is a nightly-only experimental API. (allocator_api)

Returns a reference to the underlying allocator.

\n

Note: this is an associated function, which means that you have\nto call it as Box::allocator(&b) instead of b.allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
1.26.0 · source

pub fn leak<'a>(b: Box<T, A>) -> &'a mut T
where\n A: 'a,

Consumes and leaks the Box, returning a mutable reference,\n&'a mut T. Note that the type T must outlive the chosen lifetime\n'a. If the type has only static references, or none at all, then this\nmay be chosen to be 'static.

\n

This function is mainly useful for data that lives for the remainder of\nthe program’s life. Dropping the returned reference will cause a memory\nleak. If this is not acceptable, the reference should first be wrapped\nwith the Box::from_raw function producing a Box. This Box can\nthen be dropped which will properly destroy T and release the\nallocated memory.

\n

Note: this is an associated function, which means that you have\nto call it as Box::leak(b) instead of b.leak(). This\nis so that there is no conflict with a method on the inner type.

\n
§Examples
\n

Simple usage:

\n\n
let x = Box::new(41);\nlet static_ref: &'static mut usize = Box::leak(x);\n*static_ref += 1;\nassert_eq!(*static_ref, 42);
\n

Unsized data:

\n\n
let x = vec![1, 2, 3].into_boxed_slice();\nlet static_ref = Box::leak(x);\nstatic_ref[0] = 4;\nassert_eq!(*static_ref, [4, 2, 3]);
\n
1.63.0 (const: unstable) · source

pub fn into_pin(boxed: Box<T, A>) -> Pin<Box<T, A>>
where\n A: 'static,

Converts a Box<T> into a Pin<Box<T>>. If T does not implement Unpin, then\n*boxed will be pinned in memory and unable to be moved.

\n

This conversion does not allocate on the heap and happens in place.

\n

This is also available via From.

\n

Constructing and pinning a Box with Box::into_pin(Box::new(x))\ncan also be written more concisely using Box::pin(x).\nThis into_pin method is useful if you already have a Box<T>, or you are\nconstructing a (pinned) Box in a different way than with Box::new.

\n
§Notes
\n

It’s not recommended that crates add an impl like From<Box<T>> for Pin<T>,\nas it’ll introduce an ambiguity when calling Pin::from.\nA demonstration of such a poor impl is shown below.

\n\n
struct Foo; // A type defined in this crate.\nimpl From<Box<()>> for Pin<Foo> {\n    fn from(_: Box<()>) -> Pin<Foo> {\n        Pin::new(Foo)\n    }\n}\n\nlet foo = Box::new(());\nlet bar = Pin::from(foo);
\n
",0,"toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<B> BufRead for Box<B>
where\n B: BufRead + ?Sized,

source§

fn fill_buf(&mut self) -> Result<&[u8], Error>

Returns the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
source§

fn consume(&mut self, amt: usize)

Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to read. Read more
source§

fn read_until(&mut self, byte: u8, buf: &mut Vec<u8>) -> Result<usize, Error>

Read all bytes into buf until the delimiter byte or EOF is reached. Read more
source§

fn read_line(&mut self, buf: &mut String) -> Result<usize, Error>

Read all bytes until a newline (the 0xA byte) is reached, and append\nthem to the provided String buffer. Read more
source§

fn has_data_left(&mut self) -> Result<bool, Error>

🔬This is a nightly-only experimental API. (buf_read_has_data_left)
Check if the underlying Read has any data left to be read. Read more
source§

fn skip_until(&mut self, byte: u8) -> Result<usize, Error>

🔬This is a nightly-only experimental API. (bufread_skip_until)
Skip all bytes until the delimiter byte or EOF is reached. Read more
1.0.0 · source§

fn split(self, byte: u8) -> Split<Self>
where\n Self: Sized,

Returns an iterator over the contents of this reader split on the byte\nbyte. Read more
1.0.0 · source§

fn lines(self) -> Lines<Self>
where\n Self: Sized,

Returns an iterator over the lines of this reader. Read more
","BufRead","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> Clone for Box<T, A>
where\n T: Clone,\n A: Allocator + Clone,

source§

fn clone(&self) -> Box<T, A>

Returns a new box with a clone() of this box’s contents.

\n
§Examples
\n
let x = Box::new(5);\nlet y = x.clone();\n\n// The value is the same\nassert_eq!(x, y);\n\n// But they are unique objects\nassert_ne!(&*x as *const i32, &*y as *const i32);
\n
source§

fn clone_from(&mut self, source: &Box<T, A>)

Copies source’s contents into self without creating a new allocation.

\n
§Examples
\n
let x = Box::new(5);\nlet mut y = Box::new(10);\nlet yp: *const i32 = &*y;\n\ny.clone_from(&x);\n\n// The value is the same\nassert_eq!(x, y);\n\n// And no allocation occurred\nassert_eq!(yp, &*y);
\n
","Clone","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<G, R, A> Coroutine<R> for Box<G, A>
where\n G: Coroutine<R> + Unpin + ?Sized,\n A: Allocator,

§

type Yield = <G as Coroutine<R>>::Yield

🔬This is a nightly-only experimental API. (coroutine_trait)
The type of value this coroutine yields. Read more
§

type Return = <G as Coroutine<R>>::Return

🔬This is a nightly-only experimental API. (coroutine_trait)
The type of value this coroutine returns. Read more
source§

fn resume(\n self: Pin<&mut Box<G, A>>,\n arg: R\n) -> CoroutineState<<Box<G, A> as Coroutine<R>>::Yield, <Box<G, A> as Coroutine<R>>::Return>

🔬This is a nightly-only experimental API. (coroutine_trait)
Resumes the execution of this coroutine. Read more
","Coroutine","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> Debug for Box<T, A>
where\n T: Debug + ?Sized,\n A: Allocator,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
","Debug","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T> Default for Box<T>
where\n T: Default,

source§

fn default() -> Box<T>

Creates a Box<T>, with the Default value for T.

\n
","Default","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> Deref for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
","Deref","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> DerefMut for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn deref_mut(&mut self) -> &mut T

Mutably dereferences the value.
","DerefMut","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<'de, T> Deserialize<'de> for Box<T>
where\n T: Deserialize<'de>,

source§

fn deserialize<D>(\n deserializer: D\n) -> Result<Box<T>, <D as Deserializer<'de>>::Error>
where\n D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
","Deserialize<'de>","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> Display for Box<T, A>
where\n T: Display + ?Sized,\n A: Allocator,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
","Display","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<I, A> DoubleEndedIterator for Box<I, A>
where\n I: DoubleEndedIterator + ?Sized,\n A: Allocator,

source§

fn next_back(&mut self) -> Option<<I as Iterator>::Item>

Removes and returns an element from the end of the iterator. Read more
source§

fn nth_back(&mut self, n: usize) -> Option<<I as Iterator>::Item>

Returns the nth element from the end of the iterator. Read more
source§

fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator from the back by n elements. Read more
1.27.0 · source§

fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
where\n Self: Sized,\n F: FnMut(B, Self::Item) -> R,\n R: Try<Output = B>,

This is the reverse version of Iterator::try_fold(): it takes\nelements starting from the back of the iterator. Read more
1.27.0 · source§

fn rfold<B, F>(self, init: B, f: F) -> B
where\n Self: Sized,\n F: FnMut(B, Self::Item) -> B,

An iterator method that reduces the iterator’s elements to a single,\nfinal value, starting from the back. Read more
1.27.0 · source§

fn rfind<P>(&mut self, predicate: P) -> Option<Self::Item>
where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator from the back that satisfies a predicate. Read more
","DoubleEndedIterator","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> Drop for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
","Drop","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.8.0 · source§

impl<T> Error for Box<T>
where\n T: Error,

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
source§

fn provide<'b>(&'b self, request: &mut Request<'b>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
","Error","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<I, A> ExactSizeIterator for Box<I, A>
where\n I: ExactSizeIterator + ?Sized,\n A: Allocator,

source§

fn len(&self) -> usize

Returns the exact remaining length of the iterator. Read more
source§

fn is_empty(&self) -> bool

🔬This is a nightly-only experimental API. (exact_size_is_empty)
Returns true if the iterator is empty. Read more
","ExactSizeIterator","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.35.0 · source§

impl<Args, F, A> Fn<Args> for Box<F, A>
where\n Args: Tuple,\n F: Fn<Args> + ?Sized,\n A: Allocator,

source§

extern "rust-call" fn call(\n &self,\n args: Args\n) -> <Box<F, A> as FnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
","Fn","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.35.0 · source§

impl<Args, F, A> FnMut<Args> for Box<F, A>
where\n Args: Tuple,\n F: FnMut<Args> + ?Sized,\n A: Allocator,

source§

extern "rust-call" fn call_mut(\n &mut self,\n args: Args\n) -> <Box<F, A> as FnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
","FnMut","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.35.0 · source§

impl<Args, F, A> FnOnce<Args> for Box<F, A>
where\n Args: Tuple,\n F: FnOnce<Args> + ?Sized,\n A: Allocator,

§

type Output = <F as FnOnce<Args>>::Output

The returned type after the call operator is used.
source§

extern "rust-call" fn call_once(\n self,\n args: Args\n) -> <Box<F, A> as FnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
","FnOnce","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.6.0 · source§

impl<T> From<T> for Box<T>

source§

fn from(t: T) -> Box<T>

Converts a T into a Box<T>

\n

The conversion allocates on the heap and moves t\nfrom the stack into it.

\n
§Examples
\n
let x = 5;\nlet boxed = Box::new(5);\n\nassert_eq!(Box::from(x), boxed);
\n
","From","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.36.0 · source§

impl<F, A> Future for Box<F, A>
where\n F: Future + Unpin + ?Sized,\n A: Allocator,

§

type Output = <F as Future>::Output

The type of value produced on completion.
source§

fn poll(\n self: Pin<&mut Box<F, A>>,\n cx: &mut Context<'_>\n) -> Poll<<Box<F, A> as Future>::Output>

Attempt to resolve the future to a final value, registering\nthe current task for wakeup if the value is not yet available. Read more
","Future","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> Hash for Box<T, A>
where\n T: Hash + ?Sized,\n A: Allocator,

source§

fn hash<H>(&self, state: &mut H)
where\n H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
","Hash","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.22.0 · source§

impl<T, A> Hasher for Box<T, A>
where\n T: Hasher + ?Sized,\n A: Allocator,

source§

fn finish(&self) -> u64

Returns the hash value for the values written so far. Read more
source§

fn write(&mut self, bytes: &[u8])

Writes some data into this Hasher. Read more
source§

fn write_u8(&mut self, i: u8)

Writes a single u8 into this hasher.
source§

fn write_u16(&mut self, i: u16)

Writes a single u16 into this hasher.
source§

fn write_u32(&mut self, i: u32)

Writes a single u32 into this hasher.
source§

fn write_u64(&mut self, i: u64)

Writes a single u64 into this hasher.
source§

fn write_u128(&mut self, i: u128)

Writes a single u128 into this hasher.
source§

fn write_usize(&mut self, i: usize)

Writes a single usize into this hasher.
source§

fn write_i8(&mut self, i: i8)

Writes a single i8 into this hasher.
source§

fn write_i16(&mut self, i: i16)

Writes a single i16 into this hasher.
source§

fn write_i32(&mut self, i: i32)

Writes a single i32 into this hasher.
source§

fn write_i64(&mut self, i: i64)

Writes a single i64 into this hasher.
source§

fn write_i128(&mut self, i: i128)

Writes a single i128 into this hasher.
source§

fn write_isize(&mut self, i: isize)

Writes a single isize into this hasher.
source§

fn write_length_prefix(&mut self, len: usize)

🔬This is a nightly-only experimental API. (hasher_prefixfree_extras)
Writes a length prefix into this hasher, as part of being prefix-free. Read more
source§

fn write_str(&mut self, s: &str)

🔬This is a nightly-only experimental API. (hasher_prefixfree_extras)
Writes a single str into this hasher. Read more
","Hasher","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<I, A> Iterator for Box<I, A>
where\n I: Iterator + ?Sized,\n A: Allocator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<I as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn nth(&mut self, n: usize) -> Option<<I as Iterator>::Item>

Returns the nth element of the iterator. Read more
source§

fn last(self) -> Option<<I as Iterator>::Item>

Consumes the iterator, returning the last element. Read more
source§

fn next_chunk<const N: usize>(\n &mut self\n) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where\n Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usize
where\n Self: Sized,

Consumes the iterator, counting the number of iterations and returning it. Read more
source§

fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator by n elements. Read more
1.28.0 · source§

fn step_by(self, step: usize) -> StepBy<Self>
where\n Self: Sized,

Creates an iterator starting at the same point, but stepping by\nthe given amount at each iteration. Read more
1.0.0 · source§

fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
where\n Self: Sized,\n U: IntoIterator<Item = Self::Item>,

Takes two iterators and creates a new iterator over both in sequence. Read more
1.0.0 · source§

fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>
where\n Self: Sized,\n U: IntoIterator,

‘Zips up’ two iterators into a single iterator of pairs. Read more
source§

fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>
where\n Self: Sized,\n G: FnMut() -> Self::Item,

🔬This is a nightly-only experimental API. (iter_intersperse)
Creates a new iterator which places an item generated by separator\nbetween adjacent items of the original iterator. Read more
1.0.0 · source§

fn map<B, F>(self, f: F) -> Map<Self, F>
where\n Self: Sized,\n F: FnMut(Self::Item) -> B,

Takes a closure and creates an iterator which calls that closure on each\nelement. Read more
1.21.0 · source§

fn for_each<F>(self, f: F)
where\n Self: Sized,\n F: FnMut(Self::Item),

Calls a closure on each element of an iterator. Read more
1.0.0 · source§

fn filter<P>(self, predicate: P) -> Filter<Self, P>
where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

Creates an iterator which uses a closure to determine if an element\nshould be yielded. Read more
1.0.0 · source§

fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
where\n Self: Sized,\n F: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both filters and maps. Read more
1.0.0 · source§

fn enumerate(self) -> Enumerate<Self>
where\n Self: Sized,

Creates an iterator which gives the current iteration count as well as\nthe next value. Read more
1.0.0 · source§

fn peekable(self) -> Peekable<Self>
where\n Self: Sized,

Creates an iterator which can use the peek and peek_mut methods\nto look at the next element of the iterator without consuming it. See\ntheir documentation for more information. Read more
1.0.0 · source§

fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

Creates an iterator that skips elements based on a predicate. Read more
1.0.0 · source§

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

Creates an iterator that yields elements based on a predicate. Read more
1.57.0 · source§

fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
where\n Self: Sized,\n P: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both yields elements based on a predicate and maps. Read more
1.0.0 · source§

fn skip(self, n: usize) -> Skip<Self>
where\n Self: Sized,

Creates an iterator that skips the first n elements. Read more
1.0.0 · source§

fn take(self, n: usize) -> Take<Self>
where\n Self: Sized,

Creates an iterator that yields the first n elements, or fewer\nif the underlying iterator ends sooner. Read more
1.0.0 · source§

fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
where\n Self: Sized,\n F: FnMut(&mut St, Self::Item) -> Option<B>,

An iterator adapter which, like fold, holds internal state, but\nunlike fold, produces a new iterator. Read more
1.0.0 · source§

fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
where\n Self: Sized,\n U: IntoIterator,\n F: FnMut(Self::Item) -> U,

Creates an iterator that works like map, but flattens nested structure. Read more
source§

fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
where\n Self: Sized,\n F: FnMut(&[Self::Item; N]) -> R,

🔬This is a nightly-only experimental API. (iter_map_windows)
Calls the given function f for each contiguous window of size N over\nself and returns an iterator over the outputs of f. Like slice::windows(),\nthe windows during mapping overlap as well. Read more
1.0.0 · source§

fn fuse(self) -> Fuse<Self>
where\n Self: Sized,

Creates an iterator which ends after the first None. Read more
1.0.0 · source§

fn inspect<F>(self, f: F) -> Inspect<Self, F>
where\n Self: Sized,\n F: FnMut(&Self::Item),

Does something with each element of an iterator, passing the value on. Read more
1.0.0 · source§

fn by_ref(&mut self) -> &mut Self
where\n Self: Sized,

Borrows an iterator, rather than consuming it. Read more
1.0.0 · source§

fn collect<B>(self) -> B
where\n B: FromIterator<Self::Item>,\n Self: Sized,

Transforms an iterator into a collection. Read more
source§

fn collect_into<E>(self, collection: &mut E) -> &mut E
where\n E: Extend<Self::Item>,\n Self: Sized,

🔬This is a nightly-only experimental API. (iter_collect_into)
Collects all the items from an iterator into a collection. Read more
1.0.0 · source§

fn partition<B, F>(self, f: F) -> (B, B)
where\n Self: Sized,\n B: Default + Extend<Self::Item>,\n F: FnMut(&Self::Item) -> bool,

Consumes an iterator, creating two collections from it. Read more
source§

fn is_partitioned<P>(self, predicate: P) -> bool
where\n Self: Sized,\n P: FnMut(Self::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_is_partitioned)
Checks if the elements of this iterator are partitioned according to the given predicate,\nsuch that all those that return true precede all those that return false. Read more
1.27.0 · source§

fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
where\n Self: Sized,\n F: FnMut(B, Self::Item) -> R,\n R: Try<Output = B>,

An iterator method that applies a function as long as it returns\nsuccessfully, producing a single, final value. Read more
1.27.0 · source§

fn try_for_each<F, R>(&mut self, f: F) -> R
where\n Self: Sized,\n F: FnMut(Self::Item) -> R,\n R: Try<Output = ()>,

An iterator method that applies a fallible function to each item in the\niterator, stopping at the first error and returning that error. Read more
1.0.0 · source§

fn fold<B, F>(self, init: B, f: F) -> B
where\n Self: Sized,\n F: FnMut(B, Self::Item) -> B,

Folds every element into an accumulator by applying an operation,\nreturning the final result. Read more
1.51.0 · source§

fn reduce<F>(self, f: F) -> Option<Self::Item>
where\n Self: Sized,\n F: FnMut(Self::Item, Self::Item) -> Self::Item,

Reduces the elements to a single one, by repeatedly applying a reducing\noperation. Read more
source§

fn try_reduce<F, R>(\n &mut self,\n f: F\n) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
where\n Self: Sized,\n F: FnMut(Self::Item, Self::Item) -> R,\n R: Try<Output = Self::Item>,\n <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (iterator_try_reduce)
Reduces the elements to a single one by repeatedly applying a reducing operation. If the\nclosure returns a failure, the failure is propagated back to the caller immediately. Read more
1.0.0 · source§

fn all<F>(&mut self, f: F) -> bool
where\n Self: Sized,\n F: FnMut(Self::Item) -> bool,

Tests if every element of the iterator matches a predicate. Read more
1.0.0 · source§

fn any<F>(&mut self, f: F) -> bool
where\n Self: Sized,\n F: FnMut(Self::Item) -> bool,

Tests if any element of the iterator matches a predicate. Read more
1.0.0 · source§

fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator that satisfies a predicate. Read more
1.30.0 · source§

fn find_map<B, F>(&mut self, f: F) -> Option<B>
where\n Self: Sized,\n F: FnMut(Self::Item) -> Option<B>,

Applies function to the elements of iterator and returns\nthe first non-none result. Read more
source§

fn try_find<F, R>(\n &mut self,\n f: F\n) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
where\n Self: Sized,\n F: FnMut(&Self::Item) -> R,\n R: Try<Output = bool>,\n <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (try_find)
Applies function to the elements of iterator and returns\nthe first true result or the first error. Read more
1.0.0 · source§

fn position<P>(&mut self, predicate: P) -> Option<usize>
where\n Self: Sized,\n P: FnMut(Self::Item) -> bool,

Searches for an element in an iterator, returning its index. Read more
1.6.0 · source§

fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
where\n B: Ord,\n Self: Sized,\n F: FnMut(&Self::Item) -> B,

Returns the element that gives the maximum value from the\nspecified function. Read more
1.15.0 · source§

fn max_by<F>(self, compare: F) -> Option<Self::Item>
where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the maximum value with respect to the\nspecified comparison function. Read more
1.6.0 · source§

fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
where\n B: Ord,\n Self: Sized,\n F: FnMut(&Self::Item) -> B,

Returns the element that gives the minimum value from the\nspecified function. Read more
1.15.0 · source§

fn min_by<F>(self, compare: F) -> Option<Self::Item>
where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the minimum value with respect to the\nspecified comparison function. Read more
1.0.0 · source§

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
where\n FromA: Default + Extend<A>,\n FromB: Default + Extend<B>,\n Self: Sized + Iterator<Item = (A, B)>,

Converts an iterator of pairs into a pair of containers. Read more
1.36.0 · source§

fn copied<'a, T>(self) -> Copied<Self>
where\n T: 'a + Copy,\n Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which copies all of its elements. Read more
1.0.0 · source§

fn cloned<'a, T>(self) -> Cloned<Self>
where\n T: 'a + Clone,\n Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
source§

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>
where\n Self: Sized,

🔬This is a nightly-only experimental API. (iter_array_chunks)
Returns an iterator over N elements of the iterator at a time. Read more
1.11.0 · source§

fn sum<S>(self) -> S
where\n Self: Sized,\n S: Sum<Self::Item>,

Sums the elements of an iterator. Read more
1.11.0 · source§

fn product<P>(self) -> P
where\n Self: Sized,\n P: Product<Self::Item>,

Iterates over the entire iterator, multiplying all the elements Read more
source§

fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
where\n Self: Sized,\n I: IntoIterator,\n F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those\nof another with respect to the specified comparison function. Read more
1.5.0 · source§

fn partial_cmp<I>(self, other: I) -> Option<Ordering>
where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

Lexicographically compares the PartialOrd elements of\nthis Iterator with those of another. The comparison works like short-circuit\nevaluation, returning a result without comparing the remaining elements.\nAs soon as an order can be determined, the evaluation stops and a result is returned. Read more
source§

fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>
where\n Self: Sized,\n I: IntoIterator,\n F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those\nof another with respect to the specified comparison function. Read more
1.5.0 · source§

fn eq<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialEq<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are equal to those of\nanother. Read more
source§

fn eq_by<I, F>(self, other: I, eq: F) -> bool
where\n Self: Sized,\n I: IntoIterator,\n F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_order_by)
Determines if the elements of this Iterator are equal to those of\nanother with respect to the specified equality function. Read more
1.5.0 · source§

fn ne<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialEq<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are not equal to those of\nanother. Read more
1.5.0 · source§

fn lt<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are lexicographically\nless than those of another. Read more
1.5.0 · source§

fn le<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are lexicographically\nless or equal to those of another. Read more
1.5.0 · source§

fn gt<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are lexicographically\ngreater than those of another. Read more
1.5.0 · source§

fn ge<I>(self, other: I) -> bool
where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

Determines if the elements of this Iterator are lexicographically\ngreater than or equal to those of another. Read more
source§

fn is_sorted_by<F>(self, compare: F) -> bool
where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> bool,

🔬This is a nightly-only experimental API. (is_sorted)
Checks if the elements of this iterator are sorted using the given comparator function. Read more
source§

fn is_sorted_by_key<F, K>(self, f: F) -> bool
where\n Self: Sized,\n F: FnMut(Self::Item) -> K,\n K: PartialOrd,

🔬This is a nightly-only experimental API. (is_sorted)
Checks if the elements of this iterator are sorted using the given key extraction\nfunction. Read more
","Iterator","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> Ord for Box<T, A>
where\n T: Ord + ?Sized,\n A: Allocator,

source§

fn cmp(&self, other: &Box<T, A>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where\n Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
","Ord","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> PartialEq for Box<T, A>
where\n T: PartialEq + ?Sized,\n A: Allocator,

source§

fn eq(&self, other: &Box<T, A>) -> bool

This method tests for self and other values to be equal, and is used\nby ==.
source§

fn ne(&self, other: &Box<T, A>) -> bool

This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
","PartialEq","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> PartialOrd for Box<T, A>
where\n T: PartialOrd + ?Sized,\n A: Allocator,

source§

fn partial_cmp(&self, other: &Box<T, A>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &Box<T, A>) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &Box<T, A>) -> bool

This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
source§

fn ge(&self, other: &Box<T, A>) -> bool

This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
source§

fn gt(&self, other: &Box<T, A>) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
","PartialOrd","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> Pointer for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
","Pointer","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<R> Read for Box<R>
where\n R: Read + ?Sized,

source§

fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>

Pull some bytes from this source into the specified buffer, returning\nhow many bytes were read. Read more
source§

fn read_buf(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>

🔬This is a nightly-only experimental API. (read_buf)
Pull some bytes from this source into the specified buffer. Read more
source§

fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>

Like read, except that it reads into a slice of buffers. Read more
source§

fn is_read_vectored(&self) -> bool

🔬This is a nightly-only experimental API. (can_vector)
Determines if this Reader has an efficient read_vectored\nimplementation. Read more
source§

fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>

Read all bytes until EOF in this source, placing them into buf. Read more
source§

fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>

Read all bytes until EOF in this source, appending them to buf. Read more
source§

fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>

Read the exact number of bytes required to fill buf. Read more
source§

fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>

🔬This is a nightly-only experimental API. (read_buf)
Read the exact number of bytes required to fill cursor. Read more
1.0.0 · source§

fn by_ref(&mut self) -> &mut Self
where\n Self: Sized,

Creates a “by reference” adaptor for this instance of Read. Read more
1.0.0 · source§

fn bytes(self) -> Bytes<Self>
where\n Self: Sized,

Transforms this Read instance to an Iterator over its bytes. Read more
1.0.0 · source§

fn chain<R>(self, next: R) -> Chain<Self, R>
where\n R: Read,\n Self: Sized,

Creates an adapter which will chain this stream with another. Read more
1.0.0 · source§

fn take(self, limit: u64) -> Take<Self>
where\n Self: Sized,

Creates an adapter which will read at most limit bytes from it. Read more
","Read","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<S> Seek for Box<S>
where\n S: Seek + ?Sized,

source§

fn seek(&mut self, pos: SeekFrom) -> Result<u64, Error>

Seek to an offset, in bytes, in a stream. Read more
source§

fn stream_position(&mut self) -> Result<u64, Error>

Returns the current seek position from the start of the stream. Read more
1.55.0 · source§

fn rewind(&mut self) -> Result<(), Error>

Rewind to the beginning of a stream. Read more
source§

fn stream_len(&mut self) -> Result<u64, Error>

🔬This is a nightly-only experimental API. (seek_stream_len)
Returns the length of this stream (in bytes). Read more
source§

fn seek_relative(&mut self, offset: i64) -> Result<(), Error>

🔬This is a nightly-only experimental API. (seek_seek_relative)
Seeks relative to the current position. Read more
","Seek","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<T> Serialize for Box<T>
where\n T: Serialize + ?Sized,

source§

fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where\n S: Serializer,

Serialize this value into the given Serde serializer. Read more
","Serialize","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<W> Write for Box<W>
where\n W: Write + ?Sized,

source§

fn write(&mut self, buf: &[u8]) -> Result<usize, Error>

Write a buffer into this writer, returning how many bytes were written. Read more
source§

fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>

Like write, except that it writes from a slice of buffers. Read more
source§

fn is_write_vectored(&self) -> bool

🔬This is a nightly-only experimental API. (can_vector)
Determines if this Writer has an efficient write_vectored\nimplementation. Read more
source§

fn flush(&mut self) -> Result<(), Error>

Flush this output stream, ensuring that all intermediately buffered\ncontents reach their destination. Read more
source§

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

Attempts to write an entire buffer into this writer. Read more
source§

fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>

Writes a formatted string into this writer, returning any error\nencountered. Read more
source§

fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>

🔬This is a nightly-only experimental API. (write_all_vectored)
Attempts to write multiple buffers into this writer. Read more
1.0.0 · source§

fn by_ref(&mut self) -> &mut Self
where\n Self: Sized,

Creates a “by reference” adapter for this instance of Write. Read more
","Write","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<T, U, A> CoerceUnsized<Box<U, A>> for Box<T, A>
where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

","CoerceUnsized>","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
source§

impl<T, U> DispatchFromDyn<Box<U>> for Box<T>
where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

","DispatchFromDyn>","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.0.0 · source§

impl<T, A> Eq for Box<T, A>
where\n T: Eq + ?Sized,\n A: Allocator,

","Eq","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.26.0 · source§

impl<I, A> FusedIterator for Box<I, A>
where\n I: FusedIterator + ?Sized,\n A: Allocator,

","FusedIterator","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"],["
1.33.0 · source§

impl<T, A> Unpin for Box<T, A>
where\n A: Allocator,\n T: ?Sized,

","Unpin","toml_edit::array::ArrayIntoIter","toml_edit::array::ArrayIter","toml_edit::array::ArrayIterMut","toml_edit::array_of_tables::ArrayOfTablesIter","toml_edit::array_of_tables::ArrayOfTablesIterMut","toml_edit::array_of_tables::ArrayOfTablesIntoIter","toml_edit::inline_table::InlineTableIntoIter","toml_edit::inline_table::InlineTableIter","toml_edit::inline_table::InlineTableIterMut","toml_edit::table::IntoIter","toml_edit::table::Iter","toml_edit::table::IterMut"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()