Struct Box

1.0.0 · Source
pub struct Box<T, A = Global>(/* private fields */)
where
    A: Allocator,
    T: ?Sized;
Expand description

A pointer type that uniquely owns a heap allocation of type T.

See the module-level documentation for more.

Implementations§

Source§

impl<A> Box<dyn Any, A>
where A: Allocator,

1.0.0 · Source

pub fn downcast<T>(self) -> Result<Box<T, A>, Box<dyn Any, A>>
where T: Any,

Attempts to downcast the box to a concrete type.

§Examples
use std::any::Any;

fn print_if_string(value: Box<dyn Any>) {
    if let Ok(string) = value.downcast::<String>() {
        println!("String ({}): {}", string.len(), string);
    }
}

let my_string = "Hello World".to_string();
print_if_string(Box::new(my_string));
print_if_string(Box::new(0i8));
Source

pub unsafe fn downcast_unchecked<T>(self) -> Box<T, A>
where T: Any,

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

Downcasts the box to a concrete type.

For a safe alternative see downcast.

§Examples
#![feature(downcast_unchecked)]

use std::any::Any;

let x: Box<dyn Any> = Box::new(1_usize);

unsafe {
    assert_eq!(*x.downcast_unchecked::<usize>(), 1);
}
§Safety

The contained value must be of type T. Calling this method with the incorrect type is undefined behavior.

Source§

impl<A> Box<dyn Any + Send, A>
where A: Allocator,

1.0.0 · Source

pub fn downcast<T>(self) -> Result<Box<T, A>, Box<dyn Any + Send, A>>
where T: Any,

Attempts to downcast the box to a concrete type.

§Examples
use std::any::Any;

fn print_if_string(value: Box<dyn Any + Send>) {
    if let Ok(string) = value.downcast::<String>() {
        println!("String ({}): {}", string.len(), string);
    }
}

let my_string = "Hello World".to_string();
print_if_string(Box::new(my_string));
print_if_string(Box::new(0i8));
Source

pub unsafe fn downcast_unchecked<T>(self) -> Box<T, A>
where T: Any,

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

Downcasts the box to a concrete type.

For a safe alternative see downcast.

§Examples
#![feature(downcast_unchecked)]

use std::any::Any;

let x: Box<dyn Any + Send> = Box::new(1_usize);

unsafe {
    assert_eq!(*x.downcast_unchecked::<usize>(), 1);
}
§Safety

The contained value must be of type T. Calling this method with the incorrect type is undefined behavior.

Source§

impl<A> Box<dyn Any + Send + Sync, A>
where A: Allocator,

1.51.0 · Source

pub fn downcast<T>(self) -> Result<Box<T, A>, Box<dyn Any + Send + Sync, A>>
where T: Any,

Attempts to downcast the box to a concrete type.

§Examples
use std::any::Any;

fn print_if_string(value: Box<dyn Any + Send + Sync>) {
    if let Ok(string) = value.downcast::<String>() {
        println!("String ({}): {}", string.len(), string);
    }
}

let my_string = "Hello World".to_string();
print_if_string(Box::new(my_string));
print_if_string(Box::new(0i8));
Source

pub unsafe fn downcast_unchecked<T>(self) -> Box<T, A>
where T: Any,

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

Downcasts the box to a concrete type.

For a safe alternative see downcast.

§Examples
#![feature(downcast_unchecked)]

use std::any::Any;

let x: Box<dyn Any + Send + Sync> = Box::new(1_usize);

unsafe {
    assert_eq!(*x.downcast_unchecked::<usize>(), 1);
}
§Safety

The contained value must be of type T. Calling this method with the incorrect type is undefined behavior.

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.

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

§Examples
let five = Box::new(5);
Examples found in repository?
examples/app/log_layers.rs (lines 31-36)
29fn custom_layer(_app: &mut App) -> Option<BoxedLayer> {
30    // You can provide multiple layers like this, since Vec<Layer> is also a layer:
31    Some(Box::new(vec![
32        bevy::log::tracing_subscriber::fmt::layer()
33            .with_file(true)
34            .boxed(),
35        CustomLayer.boxed(),
36    ]))
37}
More examples
Hide additional examples
examples/asset/custom_asset_reader.rs (lines 46-49)
42    fn build(&self, app: &mut App) {
43        app.register_asset_source(
44            AssetSourceId::Default,
45            AssetSource::build().with_reader(|| {
46                Box::new(CustomAssetReader(
47                    // This is the default reader for the current platform
48                    AssetSource::get_default_reader("assets".to_string())(),
49                ))
50            }),
51        );
52    }
examples/reflection/reflection_types.rs (lines 70-74)
67fn setup() {
68    let mut z = <HashMap<_, _>>::default();
69    z.insert("Hello".to_string(), 1.0);
70    let value: Box<dyn Reflect> = Box::new(A {
71        x: 1,
72        y: vec![1, 2],
73        z,
74    });
75
76    // There are a number of different "reflect traits", which each expose different operations on
77    // the underlying type
78    match value.reflect_ref() {
79        // `Struct` is a trait automatically implemented for structs that derive Reflect. This trait
80        // allows you to interact with fields via their string names or indices
81        ReflectRef::Struct(value) => {
82            info!(
83                "This is a 'struct' type with an 'x' value of {}",
84                value.get_field::<usize>("x").unwrap()
85            );
86        }
87        // `TupleStruct` is a trait automatically implemented for tuple structs that derive Reflect.
88        // This trait allows you to interact with fields via their indices
89        ReflectRef::TupleStruct(_) => {}
90        // `Tuple` is a special trait that can be manually implemented (instead of deriving
91        // Reflect). This exposes "tuple" operations on your type, allowing you to interact
92        // with fields via their indices. Tuple is automatically implemented for tuples of
93        // arity 12 or less.
94        ReflectRef::Tuple(_) => {}
95        // `Enum` is a trait automatically implemented for enums that derive Reflect. This trait allows you
96        // to interact with the current variant and its fields (if it has any)
97        ReflectRef::Enum(_) => {}
98        // `List` is a special trait that can be manually implemented (instead of deriving Reflect).
99        // This exposes "list" operations on your type, such as insertion. `List` is automatically
100        // implemented for relevant core types like Vec<T>.
101        ReflectRef::List(_) => {}
102        // `Array` is a special trait that can be manually implemented (instead of deriving Reflect).
103        // This exposes "array" operations on your type, such as indexing. `Array`
104        // is automatically implemented for relevant core types like [T; N].
105        ReflectRef::Array(_) => {}
106        // `Map` is a special trait that can be manually implemented (instead of deriving Reflect).
107        // This exposes "map" operations on your type, such as getting / inserting by key.
108        // Map is automatically implemented for relevant core types like HashMap<K, V>
109        ReflectRef::Map(_) => {}
110        // `Set` is a special trait that can be manually implemented (instead of deriving Reflect).
111        // This exposes "set" operations on your type, such as getting / inserting by value.
112        // Set is automatically implemented for relevant core types like HashSet<T>
113        ReflectRef::Set(_) => {}
114        // `Function` is a special trait that can be manually implemented (instead of deriving Reflect).
115        // This exposes "function" operations on your type, such as calling it with arguments.
116        // This trait is automatically implemented for types like DynamicFunction.
117        // This variant only exists if the `reflect_functions` feature is enabled.
118        #[cfg(feature = "reflect_functions")]
119        ReflectRef::Function(_) => {}
120        // `Opaque` types do not implement any of the other traits above. They are simply a Reflect
121        // implementation. Opaque is implemented for opaque types like String and Instant,
122        // but also include primitive types like i32, usize, and f32 (despite not technically being opaque).
123        ReflectRef::Opaque(_) => {}
124        #[expect(
125            clippy::allow_attributes,
126            reason = "`unreachable_patterns` is not always linted"
127        )]
128        #[allow(
129            unreachable_patterns,
130            reason = "This example cannot always detect when `bevy_reflect/functions` is enabled."
131        )]
132        _ => {}
133    }
134
135    let mut dynamic_list = DynamicList::default();
136    dynamic_list.push(3u32);
137    dynamic_list.push(4u32);
138    dynamic_list.push(5u32);
139
140    let mut value: A = value.take::<A>().unwrap();
141    value.y.apply(&dynamic_list);
142    assert_eq!(value.y, vec![3u32, 4u32, 5u32]);
143}
examples/reflection/type_data.rs (line 31)
10fn main() {
11    trait Damageable {
12        type Health;
13        fn damage(&mut self, damage: Self::Health);
14    }
15
16    #[derive(Reflect, PartialEq, Debug)]
17    struct Zombie {
18        health: u32,
19    }
20
21    impl Damageable for Zombie {
22        type Health = u32;
23        fn damage(&mut self, damage: Self::Health) {
24            self.health -= damage;
25        }
26    }
27
28    // Let's say we have a reflected value.
29    // Here we know it's a `Zombie`, but for demonstration purposes let's pretend we don't.
30    // Pretend it's just some `Box<dyn Reflect>` value.
31    let mut value: Box<dyn Reflect> = Box::new(Zombie { health: 100 });
32
33    // We think `value` might contain a type that implements `Damageable`
34    // and now we want to call `Damageable::damage` on it.
35    // How can we do this without knowing in advance the concrete type is `Zombie`?
36
37    // This is where type data comes in.
38    // Type data is a way of associating type-specific data with a type for use in dynamic contexts.
39    // This type data can then be used at runtime to perform type-specific operations.
40
41    // Let's create a type data struct for `Damageable` that we can associate with `Zombie`!
42
43    // Firstly, type data must be cloneable.
44    #[derive(Clone)]
45    // Next, they are usually named with the `Reflect` prefix (we'll see why in a bit).
46    struct ReflectDamageable {
47        // Type data can contain whatever you want, but it's common to include function pointers
48        // to the type-specific operations you want to perform (such as trait methods).
49        // Just remember that we're working with `Reflect` data,
50        // so we can't use `Self`, generics, or associated types.
51        // In those cases, we'll have to use `dyn Reflect` trait objects.
52        damage: fn(&mut dyn Reflect, damage: Box<dyn Reflect>),
53    }
54
55    // Now, we can create a blanket implementation of the `FromType` trait to construct our type data
56    // for any type that implements `Reflect` and `Damageable`.
57    impl<T: Reflect + Damageable<Health: Reflect>> FromType<T> for ReflectDamageable {
58        fn from_type() -> Self {
59            Self {
60                damage: |reflect, damage| {
61                    // This requires that `reflect` is `T` and not a dynamic representation like `DynamicStruct`.
62                    // We could have the function pointer return a `Result`, but we'll just `unwrap` for simplicity.
63                    let damageable = reflect.downcast_mut::<T>().unwrap();
64                    let damage = damage.take::<T::Health>().unwrap();
65                    damageable.damage(damage);
66                },
67            }
68        }
69    }
70
71    // It's also common to provide convenience methods for calling the type-specific operations.
72    impl ReflectDamageable {
73        pub fn damage(&self, reflect: &mut dyn Reflect, damage: Box<dyn Reflect>) {
74            (self.damage)(reflect, damage);
75        }
76    }
77
78    // With all this done, we're ready to make use of `ReflectDamageable`!
79    // It starts with registering our type along with its type data:
80    let mut registry = TypeRegistry::default();
81    registry.register::<Zombie>();
82    registry.register_type_data::<Zombie, ReflectDamageable>();
83
84    // Then at any point we can retrieve the type data from the registry:
85    let type_id = value.reflect_type_info().type_id();
86    let reflect_damageable = registry
87        .get_type_data::<ReflectDamageable>(type_id)
88        .unwrap();
89
90    // And call our method:
91    reflect_damageable.damage(value.as_reflect_mut(), Box::new(25u32));
92    assert_eq!(value.take::<Zombie>().unwrap(), Zombie { health: 75 });
93
94    // This is a simple example, but type data can be used for much more complex operations.
95    // Bevy also provides some useful shorthand for working with type data.
96
97    // For example, we can have the type data be automatically registered when we register the type
98    // by using the `#[reflect(MyTrait)]` attribute when defining our type.
99    #[derive(Reflect)]
100    // Notice that we don't need to type out `ReflectDamageable`.
101    // This is why we named it with the `Reflect` prefix:
102    // the derive macro will automatically look for a type named `ReflectDamageable` in the current scope.
103    #[reflect(Damageable)]
104    struct Skeleton {
105        health: u32,
106    }
107
108    impl Damageable for Skeleton {
109        type Health = u32;
110        fn damage(&mut self, damage: Self::Health) {
111            self.health -= damage;
112        }
113    }
114
115    // This will now register `Skeleton` along with its `ReflectDamageable` type data.
116    registry.register::<Skeleton>();
117
118    // And for object-safe traits (see https://doc.rust-lang.org/reference/items/traits.html#object-safety),
119    // Bevy provides a convenience macro for generating type data that converts `dyn Reflect` into `dyn MyTrait`.
120    #[reflect_trait]
121    trait Health {
122        fn health(&self) -> u32;
123    }
124
125    impl Health for Skeleton {
126        fn health(&self) -> u32 {
127            self.health
128        }
129    }
130
131    // Using the `#[reflect_trait]` macro we're able to automatically generate a `ReflectHealth` type data struct,
132    // which can then be registered like any other type data:
133    registry.register_type_data::<Skeleton, ReflectHealth>();
134
135    // Now we can use `ReflectHealth` to convert `dyn Reflect` into `dyn Health`:
136    let value: Box<dyn Reflect> = Box::new(Skeleton { health: 50 });
137
138    let type_id = value.reflect_type_info().type_id();
139    let reflect_health = registry.get_type_data::<ReflectHealth>(type_id).unwrap();
140
141    // Type data generated by `#[reflect_trait]` comes with a `get`, `get_mut`, and `get_boxed` method,
142    // which convert `&dyn Reflect` into `&dyn MyTrait`, `&mut dyn Reflect` into `&mut dyn MyTrait`,
143    // and `Box<dyn Reflect>` into `Box<dyn MyTrait>`, respectively.
144    let value: &dyn Health = reflect_health.get(value.as_reflect()).unwrap();
145    assert_eq!(value.health(), 50);
146
147    // Lastly, here's a list of some useful type data provided by Bevy that you might want to register for your types:
148    // - `ReflectDefault` for types that implement `Default`
149    // - `ReflectFromWorld` for types that implement `FromWorld`
150    // - `ReflectComponent` for types that implement `Component`
151    // - `ReflectResource` for types that implement `Resource`
152    // - `ReflectSerialize` for types that implement `Serialize`
153    // - `ReflectDeserialize` for types that implement `Deserialize`
154    //
155    // And here are some that are automatically registered by the `Reflect` derive macro:
156    // - `ReflectFromPtr`
157    // - `ReflectFromReflect` (if not `#[reflect(from_reflect = false)]`)
158}
examples/reflection/function_reflection.rs (line 29)
19fn main() {
20    // There are times when it may be helpful to store a function away for later.
21    // In Rust, we can do this by storing either a function pointer or a function trait object.
22    // For example, say we wanted to store the following function:
23    fn add(left: i32, right: i32) -> i32 {
24        left + right
25    }
26
27    // We could store it as either of the following:
28    let fn_pointer: fn(i32, i32) -> i32 = add;
29    let fn_trait_object: Box<dyn Fn(i32, i32) -> i32> = Box::new(add);
30
31    // And we can call them like so:
32    let result = fn_pointer(2, 2);
33    assert_eq!(result, 4);
34    let result = fn_trait_object(2, 2);
35    assert_eq!(result, 4);
36
37    // However, you'll notice that we have to know the types of the arguments and return value at compile time.
38    // This means there's not really a way to store or call these functions dynamically at runtime.
39    // Luckily, Bevy's reflection crate comes with a set of tools for doing just that!
40    // We do this by first converting our function into the reflection-based `DynamicFunction` type
41    // using the `IntoFunction` trait.
42    let function: DynamicFunction<'static> = dbg!(add.into_function());
43
44    // This time, you'll notice that `DynamicFunction` doesn't take any information about the function's arguments or return value.
45    // This is because `DynamicFunction` checks the types of the arguments and return value at runtime.
46    // Now we can generate a list of arguments:
47    let args: ArgList = dbg!(ArgList::new().with_owned(2_i32).with_owned(2_i32));
48
49    // And finally, we can call the function.
50    // This returns a `Result` indicating whether the function was called successfully.
51    // For now, we'll just unwrap it to get our `Return` value,
52    // which is an enum containing the function's return value.
53    let return_value: Return = dbg!(function.call(args).unwrap());
54
55    // The `Return` value can be pattern matched or unwrapped to get the underlying reflection data.
56    // For the sake of brevity, we'll just unwrap it here and downcast it to the expected type of `i32`.
57    let value: Box<dyn PartialReflect> = return_value.unwrap_owned();
58    assert_eq!(value.try_take::<i32>().unwrap(), 4);
59
60    // The same can also be done for closures that capture references to their environment.
61    // Closures that capture their environment immutably can be converted into a `DynamicFunction`
62    // using the `IntoFunction` trait.
63    let minimum = 5;
64    let clamp = |value: i32| value.max(minimum);
65
66    let function: DynamicFunction = dbg!(clamp.into_function());
67    let args = dbg!(ArgList::new().with_owned(2_i32));
68    let return_value = dbg!(function.call(args).unwrap());
69    let value: Box<dyn PartialReflect> = return_value.unwrap_owned();
70    assert_eq!(value.try_take::<i32>().unwrap(), 5);
71
72    // We can also handle closures that capture their environment mutably
73    // using the `IntoFunctionMut` trait.
74    let mut count = 0;
75    let increment = |amount: i32| count += amount;
76
77    let closure: DynamicFunctionMut = dbg!(increment.into_function_mut());
78    let args = dbg!(ArgList::new().with_owned(5_i32));
79
80    // Because `DynamicFunctionMut` mutably borrows `total`,
81    // it will need to be dropped before `total` can be accessed again.
82    // This can be done manually with `drop(closure)` or by using the `DynamicFunctionMut::call_once` method.
83    dbg!(closure.call_once(args).unwrap());
84    assert_eq!(count, 5);
85
86    // Generic functions can also be converted into a `DynamicFunction`,
87    // however, they will need to be manually monomorphized first.
88    fn stringify<T: ToString>(value: T) -> String {
89        value.to_string()
90    }
91
92    // We have to manually specify the concrete generic type we want to use.
93    let function = stringify::<i32>.into_function();
94
95    let args = ArgList::new().with_owned(123_i32);
96    let return_value = function.call(args).unwrap();
97    let value: Box<dyn PartialReflect> = return_value.unwrap_owned();
98    assert_eq!(value.try_take::<String>().unwrap(), "123");
99
100    // To make things a little easier, we can also "overload" functions.
101    // This makes it so that a single `DynamicFunction` can represent multiple functions,
102    // and the correct one is chosen based on the types of the arguments.
103    // Each function overload must have a unique argument signature.
104    let function = stringify::<i32>
105        .into_function()
106        .with_overload(stringify::<f32>);
107
108    // Now our `function` accepts both `i32` and `f32` arguments.
109    let args = ArgList::new().with_owned(1.23_f32);
110    let return_value = function.call(args).unwrap();
111    let value: Box<dyn PartialReflect> = return_value.unwrap_owned();
112    assert_eq!(value.try_take::<String>().unwrap(), "1.23");
113
114    // Function overloading even allows us to have a variable number of arguments.
115    let function = (|| 0)
116        .into_function()
117        .with_overload(|a: i32| a)
118        .with_overload(|a: i32, b: i32| a + b)
119        .with_overload(|a: i32, b: i32, c: i32| a + b + c);
120
121    let args = ArgList::new()
122        .with_owned(1_i32)
123        .with_owned(2_i32)
124        .with_owned(3_i32);
125    let return_value = function.call(args).unwrap();
126    let value: Box<dyn PartialReflect> = return_value.unwrap_owned();
127    assert_eq!(value.try_take::<i32>().unwrap(), 6);
128
129    // As stated earlier, `IntoFunction` works for many kinds of simple functions.
130    // Functions with non-reflectable arguments or return values may not be able to be converted.
131    // Generic functions are also not supported (unless manually monomorphized like `foo::<i32>.into_function()`).
132    // Additionally, the lifetime of the return value is tied to the lifetime of the first argument.
133    // However, this means that many methods (i.e. functions with a `self` parameter) are also supported:
134    #[derive(Reflect, Default)]
135    struct Data {
136        value: String,
137    }
138
139    impl Data {
140        fn set_value(&mut self, value: String) {
141            self.value = value;
142        }
143
144        // Note that only `&'static str` implements `Reflect`.
145        // To get around this limitation we can use `&String` instead.
146        fn get_value(&self) -> &String {
147            &self.value
148        }
149    }
150
151    let mut data = Data::default();
152
153    let set_value = dbg!(Data::set_value.into_function());
154    let args = dbg!(ArgList::new().with_mut(&mut data)).with_owned(String::from("Hello, world!"));
155    dbg!(set_value.call(args).unwrap());
156    assert_eq!(data.value, "Hello, world!");
157
158    let get_value = dbg!(Data::get_value.into_function());
159    let args = dbg!(ArgList::new().with_ref(&data));
160    let return_value = dbg!(get_value.call(args).unwrap());
161    let value: &dyn PartialReflect = return_value.unwrap_ref();
162    assert_eq!(value.try_downcast_ref::<String>().unwrap(), "Hello, world!");
163
164    // For more complex use cases, you can always create a custom `DynamicFunction` manually.
165    // This is useful for functions that can't be converted via the `IntoFunction` trait.
166    // For example, this function doesn't implement `IntoFunction` due to the fact that
167    // the lifetime of the return value is not tied to the lifetime of the first argument.
168    fn get_or_insert(value: i32, container: &mut Option<i32>) -> &i32 {
169        if container.is_none() {
170            *container = Some(value);
171        }
172
173        container.as_ref().unwrap()
174    }
175
176    let get_or_insert_function = dbg!(DynamicFunction::new(
177        |mut args: ArgList| -> FunctionResult {
178            // The `ArgList` contains the arguments in the order they were pushed.
179            // The `DynamicFunction` will validate that the list contains
180            // exactly the number of arguments we expect.
181            // We can retrieve them out in order (note that this modifies the `ArgList`):
182            let value = args.take::<i32>()?;
183            let container = args.take::<&mut Option<i32>>()?;
184
185            // We could have also done the following to make use of type inference:
186            // let value = args.take_owned()?;
187            // let container = args.take_mut()?;
188
189            Ok(Return::Ref(get_or_insert(value, container)))
190        },
191        // Functions can be either anonymous or named.
192        // It's good practice, though, to try and name your functions whenever possible.
193        // This makes it easier to debug and is also required for function registration.
194        // We can either give it a custom name or use the function's type name as
195        // derived from `std::any::type_name_of_val`.
196        SignatureInfo::named(std::any::type_name_of_val(&get_or_insert))
197            // We can always change the name if needed.
198            // It's a good idea to also ensure that the name is unique,
199            // such as by using its type name or by prefixing it with your crate name.
200            .with_name("my_crate::get_or_insert")
201            // Since our function takes arguments, we should provide that argument information.
202            // This is used to validate arguments when calling the function.
203            // And it aids consumers of the function with their own validation and debugging.
204            // Arguments should be provided in the order they are defined in the function.
205            .with_arg::<i32>("value")
206            .with_arg::<&mut Option<i32>>("container")
207            // We can provide return information as well.
208            .with_return::<&i32>(),
209    ));
210
211    let mut container: Option<i32> = None;
212
213    let args = dbg!(ArgList::new().with_owned(5_i32).with_mut(&mut container));
214    let value = dbg!(get_or_insert_function.call(args).unwrap()).unwrap_ref();
215    assert_eq!(value.try_downcast_ref::<i32>(), Some(&5));
216
217    let args = dbg!(ArgList::new().with_owned(500_i32).with_mut(&mut container));
218    let value = dbg!(get_or_insert_function.call(args).unwrap()).unwrap_ref();
219    assert_eq!(value.try_downcast_ref::<i32>(), Some(&5));
220}
examples/reflection/dynamic_types.rs (line 40)
12fn main() {
13    #[derive(Reflect, Default, PartialEq, Debug)]
14    #[reflect(Identifiable, Default)]
15    struct Player {
16        id: u32,
17    }
18
19    #[reflect_trait]
20    trait Identifiable {
21        fn id(&self) -> u32;
22    }
23
24    impl Identifiable for Player {
25        fn id(&self) -> u32 {
26            self.id
27        }
28    }
29
30    // Normally, when instantiating a type, you get back exactly that type.
31    // This is because the type is known at compile time.
32    // We call this the "concrete" or "canonical" type.
33    let player: Player = Player { id: 123 };
34
35    // When working with reflected types, however, we often "erase" this type information
36    // using the `Reflect` trait object.
37    // This trait object also gives us access to all the methods in the `PartialReflect` trait too.
38    // The underlying type is still the same (in this case, `Player`),
39    // but now we've hidden that information from the compiler.
40    let reflected: Box<dyn Reflect> = Box::new(player);
41
42    // Because it's the same type under the hood, we can still downcast it back to the original type.
43    assert!(reflected.downcast_ref::<Player>().is_some());
44
45    // We can attempt to clone our value using `PartialReflect::reflect_clone`.
46    // This will recursively call `PartialReflect::reflect_clone` on all fields of the type.
47    // Or, if we had registered `ReflectClone` using `#[reflect(Clone)]`, it would simply call `Clone::clone` directly.
48    let cloned: Box<dyn Reflect> = reflected.reflect_clone().unwrap();
49    assert_eq!(cloned.downcast_ref::<Player>(), Some(&Player { id: 123 }));
50
51    // Another way we can "clone" our data is by converting it to a dynamic type.
52    // Notice here we bind it as a `dyn PartialReflect` instead of `dyn Reflect`.
53    // This is because it returns a dynamic type that simply represents the original type.
54    // In this case, because `Player` is a struct, it will return a `DynamicStruct`.
55    let dynamic: Box<dyn PartialReflect> = reflected.to_dynamic();
56    assert!(dynamic.is_dynamic());
57
58    // And if we try to convert it back to a `dyn Reflect` trait object, we'll get `None`.
59    // Dynamic types cannot be directly cast to `dyn Reflect` trait objects.
60    assert!(dynamic.try_as_reflect().is_none());
61
62    // Generally dynamic types are used to represent (or "proxy") the original type,
63    // so that we can continue to access its fields and overall structure.
64    let dynamic_ref = dynamic.reflect_ref().as_struct().unwrap();
65    let id = dynamic_ref.field("id").unwrap().try_downcast_ref::<u32>();
66    assert_eq!(id, Some(&123));
67
68    // It also enables us to create a representation of a type without having compile-time
69    // access to the actual type. This is how the reflection deserializers work.
70    // They generally can't know how to construct a type ahead of time,
71    // so they instead build and return these dynamic representations.
72    let input = "(id: 123)";
73    let mut registry = TypeRegistry::default();
74    registry.register::<Player>();
75    let registration = registry.get(std::any::TypeId::of::<Player>()).unwrap();
76    let deserialized = TypedReflectDeserializer::new(registration, &registry)
77        .deserialize(&mut ron::Deserializer::from_str(input).unwrap())
78        .unwrap();
79
80    // Our deserialized output is a `DynamicStruct` that proxies/represents a `Player`.
81    assert!(deserialized.represents::<Player>());
82
83    // And while this does allow us to access the fields and structure of the type,
84    // there may be instances where we need the actual type.
85    // For example, if we want to convert our `dyn Reflect` into a `dyn Identifiable`,
86    // we can't use the `DynamicStruct` proxy.
87    let reflect_identifiable = registration
88        .data::<ReflectIdentifiable>()
89        .expect("`ReflectIdentifiable` should be registered");
90
91    // Trying to access the registry with our `deserialized` will give a compile error
92    // since it doesn't implement `Reflect`, only `PartialReflect`.
93    // Similarly, trying to force the operation will fail.
94    // This fails since the underlying type of `deserialized` is `DynamicStruct` and not `Player`.
95    assert!(deserialized
96        .try_as_reflect()
97        .and_then(|reflect_trait_obj| reflect_identifiable.get(reflect_trait_obj))
98        .is_none());
99
100    // So how can we go from a dynamic type to a concrete type?
101    // There are two ways:
102
103    // 1. Using `PartialReflect::apply`.
104    {
105        // If you know the type at compile time, you can construct a new value and apply the dynamic
106        // value to it.
107        let mut value = Player::default();
108        value.apply(deserialized.as_ref());
109        assert_eq!(value.id, 123);
110
111        // If you don't know the type at compile time, you need a dynamic way of constructing
112        // an instance of the type. One such way is to use the `ReflectDefault` type data.
113        let reflect_default = registration
114            .data::<ReflectDefault>()
115            .expect("`ReflectDefault` should be registered");
116
117        let mut value: Box<dyn Reflect> = reflect_default.default();
118        value.apply(deserialized.as_ref());
119
120        let identifiable: &dyn Identifiable = reflect_identifiable.get(value.as_reflect()).unwrap();
121        assert_eq!(identifiable.id(), 123);
122    }
123
124    // 2. Using `FromReflect`
125    {
126        // If you know the type at compile time, you can use the `FromReflect` trait to convert the
127        // dynamic value into the concrete type directly.
128        let value: Player = Player::from_reflect(deserialized.as_ref()).unwrap();
129        assert_eq!(value.id, 123);
130
131        // If you don't know the type at compile time, you can use the `ReflectFromReflect` type data
132        // to perform the conversion dynamically.
133        let reflect_from_reflect = registration
134            .data::<ReflectFromReflect>()
135            .expect("`ReflectFromReflect` should be registered");
136
137        let value: Box<dyn Reflect> = reflect_from_reflect
138            .from_reflect(deserialized.as_ref())
139            .unwrap();
140        let identifiable: &dyn Identifiable = reflect_identifiable.get(value.as_reflect()).unwrap();
141        assert_eq!(identifiable.id(), 123);
142    }
143
144    // Lastly, while dynamic types are commonly generated via reflection methods like
145    // `PartialReflect::to_dynamic` or via the reflection deserializers,
146    // you can also construct them manually.
147    let mut my_dynamic_list = DynamicList::from_iter([1u32, 2u32, 3u32]);
148
149    // This is useful when you just need to apply some subset of changes to a type.
150    let mut my_list: Vec<u32> = Vec::new();
151    my_list.apply(&my_dynamic_list);
152    assert_eq!(my_list, vec![1, 2, 3]);
153
154    // And if you want it to actually proxy a type, you can configure it to do that as well:
155    assert!(!my_dynamic_list
156        .as_partial_reflect()
157        .represents::<Vec<u32>>());
158    my_dynamic_list.set_represented_type(Some(<Vec<u32>>::type_info()));
159    assert!(my_dynamic_list
160        .as_partial_reflect()
161        .represents::<Vec<u32>>());
162
163    // ============================= REFERENCE ============================= //
164    // For reference, here are all the available dynamic types:
165
166    // 1. `DynamicTuple`
167    {
168        let mut dynamic_tuple = DynamicTuple::default();
169        dynamic_tuple.insert(1u32);
170        dynamic_tuple.insert(2u32);
171        dynamic_tuple.insert(3u32);
172
173        let mut my_tuple: (u32, u32, u32) = (0, 0, 0);
174        my_tuple.apply(&dynamic_tuple);
175        assert_eq!(my_tuple, (1, 2, 3));
176    }
177
178    // 2. `DynamicArray`
179    {
180        let dynamic_array = DynamicArray::from_iter([1u32, 2u32, 3u32]);
181
182        let mut my_array = [0u32; 3];
183        my_array.apply(&dynamic_array);
184        assert_eq!(my_array, [1, 2, 3]);
185    }
186
187    // 3. `DynamicList`
188    {
189        let dynamic_list = DynamicList::from_iter([1u32, 2u32, 3u32]);
190
191        let mut my_list: Vec<u32> = Vec::new();
192        my_list.apply(&dynamic_list);
193        assert_eq!(my_list, vec![1, 2, 3]);
194    }
195
196    // 4. `DynamicSet`
197    {
198        let mut dynamic_set = DynamicSet::from_iter(["x", "y", "z"]);
199        assert!(dynamic_set.contains(&"x"));
200
201        dynamic_set.remove(&"y");
202
203        let mut my_set: HashSet<&str> = HashSet::default();
204        my_set.apply(&dynamic_set);
205        assert_eq!(my_set, HashSet::from_iter(["x", "z"]));
206    }
207
208    // 5. `DynamicMap`
209    {
210        let dynamic_map = DynamicMap::from_iter([("x", 1u32), ("y", 2u32), ("z", 3u32)]);
211
212        let mut my_map: HashMap<&str, u32> = HashMap::default();
213        my_map.apply(&dynamic_map);
214        assert_eq!(my_map.get("x"), Some(&1));
215        assert_eq!(my_map.get("y"), Some(&2));
216        assert_eq!(my_map.get("z"), Some(&3));
217    }
218
219    // 6. `DynamicStruct`
220    {
221        #[derive(Reflect, Default, Debug, PartialEq)]
222        struct MyStruct {
223            x: u32,
224            y: u32,
225            z: u32,
226        }
227
228        let mut dynamic_struct = DynamicStruct::default();
229        dynamic_struct.insert("x", 1u32);
230        dynamic_struct.insert("y", 2u32);
231        dynamic_struct.insert("z", 3u32);
232
233        let mut my_struct = MyStruct::default();
234        my_struct.apply(&dynamic_struct);
235        assert_eq!(my_struct, MyStruct { x: 1, y: 2, z: 3 });
236    }
237
238    // 7. `DynamicTupleStruct`
239    {
240        #[derive(Reflect, Default, Debug, PartialEq)]
241        struct MyTupleStruct(u32, u32, u32);
242
243        let mut dynamic_tuple_struct = DynamicTupleStruct::default();
244        dynamic_tuple_struct.insert(1u32);
245        dynamic_tuple_struct.insert(2u32);
246        dynamic_tuple_struct.insert(3u32);
247
248        let mut my_tuple_struct = MyTupleStruct::default();
249        my_tuple_struct.apply(&dynamic_tuple_struct);
250        assert_eq!(my_tuple_struct, MyTupleStruct(1, 2, 3));
251    }
252
253    // 8. `DynamicEnum`
254    {
255        #[derive(Reflect, Default, Debug, PartialEq)]
256        enum MyEnum {
257            #[default]
258            Empty,
259            Xyz(u32, u32, u32),
260        }
261
262        let mut values = DynamicTuple::default();
263        values.insert(1u32);
264        values.insert(2u32);
265        values.insert(3u32);
266
267        let dynamic_variant = DynamicVariant::Tuple(values);
268        let dynamic_enum = DynamicEnum::new("Xyz", dynamic_variant);
269
270        let mut my_enum = MyEnum::default();
271        my_enum.apply(&dynamic_enum);
272        assert_eq!(my_enum, MyEnum::Xyz(1, 2, 3));
273    }
274}
1.82.0 · Source

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

Constructs a new box with uninitialized contents.

§Examples
let mut five = Box::<u32>::new_uninit();
// Deferred initialization:
five.write(5);
let five = unsafe { five.assume_init() };

assert_eq!(*five, 5)
Source

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

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

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

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

§Examples
#![feature(new_zeroed_alloc)]

let zero = Box::<u32>::new_zeroed();
let zero = unsafe { zero.assume_init() };

assert_eq!(*zero, 0)
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 x will be pinned in memory and unable to be moved.

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

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, returning an error if the allocation fails

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

§Examples
#![feature(allocator_api)]

let five = Box::try_new(5)?;
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, returning an error if the allocation fails

§Examples
#![feature(allocator_api)]

let mut five = Box::<u32>::try_new_uninit()?;
// Deferred initialization:
five.write(5);
let five = unsafe { five.assume_init() };

assert_eq!(*five, 5);
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 being filled with 0 bytes on the heap

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

§Examples
#![feature(allocator_api)]

let zero = Box::<u32>::try_new_zeroed()?;
let zero = unsafe { zero.assume_init() };

assert_eq!(*zero, 0);
Source§

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

Source

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

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

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

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

§Examples
#![feature(allocator_api)]

use std::alloc::System;

let five = Box::new_in(5, System);
Source

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

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

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

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

§Examples
#![feature(allocator_api)]

use std::alloc::System;

let five = Box::try_new_in(5, System)?;
Source

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

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

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

§Examples
#![feature(allocator_api)]

use std::alloc::System;

let mut five = Box::<u32, _>::new_uninit_in(System);
// Deferred initialization:
five.write(5);
let five = unsafe { five.assume_init() };

assert_eq!(*five, 5)
Source

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

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

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

§Examples
#![feature(allocator_api)]

use std::alloc::System;

let mut five = Box::<u32, _>::try_new_uninit_in(System)?;
// Deferred initialization:
five.write(5);
let five = unsafe { five.assume_init() };

assert_eq!(*five, 5);
Source

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

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

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

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

§Examples
#![feature(allocator_api)]

use std::alloc::System;

let zero = Box::<u32, _>::new_zeroed_in(System);
let zero = unsafe { zero.assume_init() };

assert_eq!(*zero, 0)
Source

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

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

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

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

§Examples
#![feature(allocator_api)]

use std::alloc::System;

let zero = Box::<u32, _>::try_new_zeroed_in(System)?;
let zero = unsafe { zero.assume_init() };

assert_eq!(*zero, 0);
Source

pub fn pin_in(x: T, alloc: A) -> Pin<Box<T, A>>
where 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 x will be pinned in memory and unable to be moved.

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

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]>

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

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.

§Examples
#![feature(box_into_inner)]

let c = Box::new(5);

assert_eq!(Box::into_inner(c), 5);
Source§

impl<T> Box<[T]>

1.82.0 · Source

pub fn new_uninit_slice(len: usize) -> Box<[MaybeUninit<T>]>

Constructs a new boxed slice with uninitialized contents.

§Examples
let mut values = Box::<[u32]>::new_uninit_slice(3);
// Deferred initialization:
values[0].write(1);
values[1].write(2);
values[2].write(3);
let values = unsafe {values.assume_init() };

assert_eq!(*values, [1, 2, 3])
Source

pub fn new_zeroed_slice(len: usize) -> Box<[MaybeUninit<T>]>

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

Constructs a new boxed slice with uninitialized contents, with the memory being filled with 0 bytes.

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

§Examples
#![feature(new_zeroed_alloc)]

let values = Box::<[u32]>::new_zeroed_slice(3);
let values = unsafe { values.assume_init() };

assert_eq!(*values, [0, 0, 0])
Source

pub fn try_new_uninit_slice( len: usize, ) -> Result<Box<[MaybeUninit<T>]>, AllocError>

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

Constructs a new boxed slice with uninitialized contents. Returns an error if the allocation fails.

§Examples
#![feature(allocator_api)]

let mut values = Box::<[u32]>::try_new_uninit_slice(3)?;
// Deferred initialization:
values[0].write(1);
values[1].write(2);
values[2].write(3);
let values = unsafe { values.assume_init() };

assert_eq!(*values, [1, 2, 3]);
Source

pub fn try_new_zeroed_slice( len: usize, ) -> Result<Box<[MaybeUninit<T>]>, AllocError>

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

Constructs a new boxed slice with uninitialized contents, with the memory being filled with 0 bytes. Returns an error if the allocation fails.

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

§Examples
#![feature(allocator_api)]

let values = Box::<[u32]>::try_new_zeroed_slice(3)?;
let values = unsafe { values.assume_init() };

assert_eq!(*values, [0, 0, 0]);
Source

pub fn into_array<const N: usize>(self) -> Option<Box<[T; N]>>

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

Converts the boxed slice into a boxed array.

This operation does not reallocate; the underlying array of the slice is simply reinterpreted as an array type.

If N is not exactly equal to the length of self, then this method returns None.

Source§

impl<T, A> Box<[T], A>
where A: Allocator,

Source

pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[MaybeUninit<T>], A>

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

Constructs a new boxed slice with uninitialized contents in the provided allocator.

§Examples
#![feature(allocator_api)]

use std::alloc::System;

let mut values = Box::<[u32], _>::new_uninit_slice_in(3, System);
// Deferred initialization:
values[0].write(1);
values[1].write(2);
values[2].write(3);
let values = unsafe { values.assume_init() };

assert_eq!(*values, [1, 2, 3])
Source

pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Box<[MaybeUninit<T>], A>

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

Constructs a new boxed slice with uninitialized contents in the provided allocator, with the memory being filled with 0 bytes.

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

§Examples
#![feature(allocator_api)]

use std::alloc::System;

let values = Box::<[u32], _>::new_zeroed_slice_in(3, System);
let values = unsafe { values.assume_init() };

assert_eq!(*values, [0, 0, 0])
Source

pub fn try_new_uninit_slice_in( len: usize, alloc: A, ) -> Result<Box<[MaybeUninit<T>], A>, AllocError>

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

Constructs a new boxed slice with uninitialized contents in the provided allocator. Returns an error if the allocation fails.

§Examples
#![feature(allocator_api)]

use std::alloc::System;

let mut values = Box::<[u32], _>::try_new_uninit_slice_in(3, System)?;
// Deferred initialization:
values[0].write(1);
values[1].write(2);
values[2].write(3);
let values = unsafe { values.assume_init() };

assert_eq!(*values, [1, 2, 3]);
Source

pub fn try_new_zeroed_slice_in( len: usize, alloc: A, ) -> Result<Box<[MaybeUninit<T>], A>, AllocError>

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

Constructs a new boxed slice with uninitialized contents in the provided allocator, with the memory being filled with 0 bytes. Returns an error if the allocation fails.

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

§Examples
#![feature(allocator_api)]

use std::alloc::System;

let values = Box::<[u32], _>::try_new_zeroed_slice_in(3, System)?;
let values = unsafe { values.assume_init() };

assert_eq!(*values, [0, 0, 0]);
Source§

impl<T, A> Box<MaybeUninit<T>, A>
where A: Allocator,

1.82.0 · Source

pub unsafe fn assume_init(self) -> Box<T, A>

Converts to Box<T, A>.

§Safety

As with MaybeUninit::assume_init, it is up to the caller to guarantee that the value really is in an initialized state. Calling this when the content is not yet fully initialized causes immediate undefined behavior.

§Examples
let mut five = Box::<u32>::new_uninit();
// Deferred initialization:
five.write(5);
let five: Box<u32> = unsafe { five.assume_init() };

assert_eq!(*five, 5)
1.87.0 · Source

pub fn write(boxed: Box<MaybeUninit<T>, A>, value: T) -> Box<T, A>

Writes the value and converts to Box<T, A>.

This method converts the box similarly to Box::assume_init but writes value into it before conversion thus guaranteeing safety. In some scenarios use of this method may improve performance because the compiler may be able to optimize copying from stack.

§Examples
let big_box = Box::<[usize; 1024]>::new_uninit();

let mut array = [0; 1024];
for (i, place) in array.iter_mut().enumerate() {
    *place = i;
}

// The optimizer may be able to elide this copy, so previous code writes
// to heap directly.
let big_box = Box::write(big_box, array);

for (i, x) in big_box.iter().enumerate() {
    assert_eq!(*x, i);
}
Source§

impl<T, A> Box<[MaybeUninit<T>], A>
where A: Allocator,

1.82.0 · Source

pub unsafe fn assume_init(self) -> Box<[T], A>

Converts to Box<[T], A>.

§Safety

As with MaybeUninit::assume_init, it is up to the caller to guarantee that the values really are in an initialized state. Calling this when the content is not yet fully initialized causes immediate undefined behavior.

§Examples
let mut values = Box::<[u32]>::new_uninit_slice(3);
// Deferred initialization:
values[0].write(1);
values[1].write(2);
values[2].write(3);
let values = unsafe { values.assume_init() };

assert_eq!(*values, [1, 2, 3])
Source§

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

1.4.0 · Source

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

Constructs a box from a raw pointer.

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

§Safety

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

The raw pointer must point to a block of memory allocated by the global allocator.

The safety conditions are described in the memory layout section.

§Examples

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

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

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

use std::alloc::{alloc, Layout};

unsafe {
    let ptr = alloc(Layout::new::<i32>()) as *mut i32;
    // In general .write is required to avoid attempting to destruct
    // the (uninitialized) previous contents of `ptr`, though for this
    // simple example `*ptr = 5` would have worked as well.
    ptr.write(5);
    let x = Box::from_raw(ptr);
}
Source

pub unsafe fn from_non_null(ptr: NonNull<T>) -> Box<T>

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

Constructs a box from a NonNull pointer.

After calling this function, the NonNull pointer is owned by the resulting Box. Specifically, the Box destructor will call the destructor of T and free the allocated memory. For this to be safe, the memory must have been allocated in accordance with the memory layout used by Box .

§Safety

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

The non-null pointer must point to a block of memory allocated by the global allocator.

The safety conditions are described in the memory layout section.

§Examples

Recreate a Box which was previously converted to a NonNull pointer using Box::into_non_null:

#![feature(box_vec_non_null)]

let x = Box::new(5);
let non_null = Box::into_non_null(x);
let x = unsafe { Box::from_non_null(non_null) };

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

#![feature(box_vec_non_null)]

use std::alloc::{alloc, Layout};
use std::ptr::NonNull;

unsafe {
    let non_null = NonNull::new(alloc(Layout::new::<i32>()).cast::<i32>())
        .expect("allocation failed");
    // In general .write is required to avoid attempting to destruct
    // the (uninitialized) previous contents of `non_null`.
    non_null.write(5);
    let x = Box::from_non_null(non_null);
}
Source§

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

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.

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

§Safety

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

The raw pointer must point to a block of memory allocated by alloc.

§Examples

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

#![feature(allocator_api)]

use std::alloc::System;

let x = Box::new_in(5, System);
let (ptr, alloc) = Box::into_raw_with_allocator(x);
let x = unsafe { Box::from_raw_in(ptr, alloc) };

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

#![feature(allocator_api, slice_ptr_get)]

use std::alloc::{Allocator, Layout, System};

unsafe {
    let ptr = System.allocate(Layout::new::<i32>())?.as_mut_ptr() as *mut i32;
    // In general .write is required to avoid attempting to destruct
    // the (uninitialized) previous contents of `ptr`, though for this
    // simple example `*ptr = 5` would have worked as well.
    ptr.write(5);
    let x = Box::from_raw_in(ptr, System);
}
Source

pub unsafe fn from_non_null_in(raw: NonNull<T>, alloc: A) -> Box<T, A>

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

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

After calling this function, the NonNull pointer is owned by the resulting Box. Specifically, the Box destructor will call the destructor of T and free the allocated memory. For this to be safe, the memory must have been allocated in accordance with the memory layout used by Box .

§Safety

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

The non-null pointer must point to a block of memory allocated by alloc.

§Examples

Recreate a Box which was previously converted to a NonNull pointer using Box::into_non_null_with_allocator:

#![feature(allocator_api, box_vec_non_null)]

use std::alloc::System;

let x = Box::new_in(5, System);
let (non_null, alloc) = Box::into_non_null_with_allocator(x);
let x = unsafe { Box::from_non_null_in(non_null, alloc) };

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

#![feature(allocator_api, box_vec_non_null, slice_ptr_get)]

use std::alloc::{Allocator, Layout, System};

unsafe {
    let non_null = System.allocate(Layout::new::<i32>())?.cast::<i32>();
    // In general .write is required to avoid attempting to destruct
    // the (uninitialized) previous contents of `non_null`.
    non_null.write(5);
    let x = Box::from_non_null_in(non_null, System);
}
1.4.0 · Source

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

Consumes the Box, returning a wrapped raw pointer.

The pointer will be properly aligned and non-null.

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

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

§Examples

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

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

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

use std::alloc::{dealloc, Layout};
use std::ptr;

let x = Box::new(String::from("Hello"));
let ptr = Box::into_raw(x);
unsafe {
    ptr::drop_in_place(ptr);
    dealloc(ptr as *mut u8, Layout::new::<String>());
}

Note: This is equivalent to the following:

let x = Box::new(String::from("Hello"));
let ptr = Box::into_raw(x);
unsafe {
    drop(Box::from_raw(ptr));
}
Source

pub fn into_non_null(b: Box<T, A>) -> NonNull<T>

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

Consumes the Box, returning a wrapped NonNull pointer.

The pointer will be properly aligned.

After calling this function, the caller is responsible for the memory previously managed by the Box. In particular, the caller should properly destroy T and release the memory, taking into account the memory layout used by Box. The easiest way to do this is to convert the NonNull pointer back into a Box with the Box::from_non_null function, allowing the Box destructor to perform the cleanup.

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

§Examples

Converting the NonNull pointer back into a Box with Box::from_non_null for automatic cleanup:

#![feature(box_vec_non_null)]

let x = Box::new(String::from("Hello"));
let non_null = Box::into_non_null(x);
let x = unsafe { Box::from_non_null(non_null) };

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

#![feature(box_vec_non_null)]

use std::alloc::{dealloc, Layout};

let x = Box::new(String::from("Hello"));
let non_null = Box::into_non_null(x);
unsafe {
    non_null.drop_in_place();
    dealloc(non_null.as_ptr().cast::<u8>(), Layout::new::<String>());
}

Note: This is equivalent to the following:

#![feature(box_vec_non_null)]

let x = Box::new(String::from("Hello"));
let non_null = Box::into_non_null(x);
unsafe {
    drop(Box::from_non_null(non_null));
}
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.

The pointer will be properly aligned and non-null.

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

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

§Examples

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

#![feature(allocator_api)]

use std::alloc::System;

let x = Box::new_in(String::from("Hello"), System);
let (ptr, alloc) = Box::into_raw_with_allocator(x);
let x = unsafe { Box::from_raw_in(ptr, alloc) };

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

#![feature(allocator_api)]

use std::alloc::{Allocator, Layout, System};
use std::ptr::{self, NonNull};

let x = Box::new_in(String::from("Hello"), System);
let (ptr, alloc) = Box::into_raw_with_allocator(x);
unsafe {
    ptr::drop_in_place(ptr);
    let non_null = NonNull::new_unchecked(ptr);
    alloc.deallocate(non_null.cast(), Layout::new::<String>());
}
Source

pub fn into_non_null_with_allocator(b: Box<T, A>) -> (NonNull<T>, A)

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

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

The pointer will be properly aligned.

After calling this function, the caller is responsible for the memory previously managed by the Box. In particular, the caller should properly destroy T and release the memory, taking into account the memory layout used by Box. The easiest way to do this is to convert the NonNull pointer back into a Box with the Box::from_non_null_in function, allowing the Box destructor to perform the cleanup.

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

§Examples

Converting the NonNull pointer back into a Box with Box::from_non_null_in for automatic cleanup:

#![feature(allocator_api, box_vec_non_null)]

use std::alloc::System;

let x = Box::new_in(String::from("Hello"), System);
let (non_null, alloc) = Box::into_non_null_with_allocator(x);
let x = unsafe { Box::from_non_null_in(non_null, alloc) };

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

#![feature(allocator_api, box_vec_non_null)]

use std::alloc::{Allocator, Layout, System};

let x = Box::new_in(String::from("Hello"), System);
let (non_null, alloc) = Box::into_non_null_with_allocator(x);
unsafe {
    non_null.drop_in_place();
    alloc.deallocate(non_null.cast::<u8>(), Layout::new::<String>());
}
Source

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

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

Returns a raw mutable pointer to the Box’s contents.

The caller must ensure that the Box outlives the pointer this function returns, or else it will end up dangling.

This method guarantees that for the purpose of the aliasing model, this method does not materialize a reference to the underlying memory, and thus the returned pointer will remain valid when mixed with other calls to as_ptr and as_mut_ptr. Note that calling other methods that materialize references to the memory may still invalidate this pointer. See the example below for how this guarantee can be used.

§Examples

Due to the aliasing guarantee, the following code is legal:

#![feature(box_as_ptr)]

unsafe {
    let mut b = Box::new(0);
    let ptr1 = Box::as_mut_ptr(&mut b);
    ptr1.write(1);
    let ptr2 = Box::as_mut_ptr(&mut b);
    ptr2.write(2);
    // Notably, the write to `ptr2` did *not* invalidate `ptr1`:
    ptr1.write(3);
}
Source

pub fn as_ptr(b: &Box<T, A>) -> *const T

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

Returns a raw pointer to the Box’s contents.

The caller must ensure that the Box outlives the pointer this function returns, or else it will end up dangling.

The caller must also ensure that the memory the pointer (non-transitively) points to is never written to (except inside an UnsafeCell) using this pointer or any pointer derived from it. If you need to mutate the contents of the Box, use as_mut_ptr.

This method guarantees that for the purpose of the aliasing model, this method does not materialize a reference to the underlying memory, and thus the returned pointer will remain valid when mixed with other calls to as_ptr and as_mut_ptr. Note that calling other methods that materialize mutable references to the memory, as well as writing to this memory, may still invalidate this pointer. See the example below for how this guarantee can be used.

§Examples

Due to the aliasing guarantee, the following code is legal:

#![feature(box_as_ptr)]

unsafe {
    let mut v = Box::new(0);
    let ptr1 = Box::as_ptr(&v);
    let ptr2 = Box::as_mut_ptr(&mut v);
    let _val = ptr2.read();
    // No write to this memory has happened yet, so `ptr1` is still valid.
    let _val = ptr1.read();
    // However, once we do a write...
    ptr2.write(1);
    // ... `ptr1` is no longer valid.
    // This would be UB: let _val = ptr1.read();
}
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.

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

1.26.0 · Source

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

Consumes and leaks the Box, returning a mutable reference, &'a mut T.

Note that the type T must outlive the chosen lifetime 'a. If the type has only static references, or none at all, then this may be chosen to be 'static.

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

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

§Examples

Simple usage:

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

Unsized data:

let x = vec![1, 2, 3].into_boxed_slice();
let static_ref = Box::leak(x);
static_ref[0] = 4;
assert_eq!(*static_ref, [4, 2, 3]);
1.63.0 · Source

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

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

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

This is also available via From.

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

§Notes

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

struct Foo; // A type defined in this crate.
impl From<Box<()>> for Pin<Foo> {
    fn from(_: Box<()>) -> Pin<Foo> {
        Pin::new(Foo)
    }
}

let foo = Box::new(());
let bar = Pin::from(foo);

Trait Implementations§

Source§

impl<A, T> ApplicationHandler<T> for Box<A>
where A: ApplicationHandler<T> + ?Sized, T: 'static,

Source§

fn new_events(&mut self, event_loop: &ActiveEventLoop, cause: StartCause)

Emitted when new events arrive from the OS to be processed. Read more
Source§

fn resumed(&mut self, event_loop: &ActiveEventLoop)

Emitted when the application has been resumed. Read more
Source§

fn user_event(&mut self, event_loop: &ActiveEventLoop, event: T)

Emitted when an event is sent from EventLoopProxy::send_event.
Source§

fn window_event( &mut self, event_loop: &ActiveEventLoop, window_id: WindowId, event: WindowEvent, )

Emitted when the OS sends an event to a winit window.
Source§

fn device_event( &mut self, event_loop: &ActiveEventLoop, device_id: DeviceId, event: DeviceEvent, )

Emitted when the OS sends an event to a device.
Source§

fn about_to_wait(&mut self, event_loop: &ActiveEventLoop)

Emitted when the event loop is about to block and wait for new events. Read more
Source§

fn suspended(&mut self, event_loop: &ActiveEventLoop)

Emitted when the application has been suspended. Read more
Source§

fn exiting(&mut self, event_loop: &ActiveEventLoop)

Emitted when the event loop is being shut down. Read more
Source§

fn memory_warning(&mut self, event_loop: &ActiveEventLoop)

Emitted when the application has received a memory warning. Read more
1.64.0 · Source§

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

Source§

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

Borrows the file descriptor. Read more
1.5.0 · Source§

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

Source§

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

Converts this type into a mutable reference of the (usually inferred) input type.
1.63.0 · Source§

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

Source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
Source§

impl<T> AsRawXcbConnection for Box<T>

Source§

fn as_raw_xcb_connection(&self) -> *mut xcb_connection_t

Get a raw xcb connection pointer from this object.
1.5.0 · Source§

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

Source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsyncBufRead for Box<T>
where T: AsyncBufRead + Unpin + ?Sized,

Source§

fn poll_fill_buf( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, ) -> Poll<Result<&[u8], Error>>

Attempt to return the contents of the internal buffer, filling it with more data from the inner reader if it is empty. Read more
Source§

fn consume(self: Pin<&mut Box<T>>, amt: usize)

Tells this buffer that amt bytes have been consumed from the buffer, so they should no longer be returned in calls to poll_read. Read more
Source§

impl<T> AsyncBufRead for Box<T>
where T: AsyncBufRead + Unpin + ?Sized,

Source§

fn poll_fill_buf( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, ) -> Poll<Result<&[u8], Error>>

Attempts to return the contents of the internal buffer, filling it with more data from the inner reader if it is empty. Read more
Source§

fn consume(self: Pin<&mut Box<T>>, amt: usize)

Tells this buffer that amt bytes have been consumed from the buffer, so they should no longer be returned in calls to poll_read. Read more
1.85.0 · Source§

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

Source§

extern "rust-call" fn async_call( &self, args: Args, ) -> <Box<F, A> as AsyncFnMut<Args>>::CallRefFuture<'_>

🔬This is a nightly-only experimental API. (async_fn_traits)
Call the AsyncFn, returning a future which may borrow from the called closure.
1.85.0 · Source§

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

Source§

type CallRefFuture<'a> = <F as AsyncFnMut<Args>>::CallRefFuture<'a> where Box<F, A>: 'a

🔬This is a nightly-only experimental API. (async_fn_traits)
Source§

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

🔬This is a nightly-only experimental API. (async_fn_traits)
Call the AsyncFnMut, returning a future which may borrow from the called closure.
1.85.0 · Source§

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

Source§

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.
Source§

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( self, args: Args, ) -> <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.
Source§

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

Source§

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( self: Pin<&mut Box<S>>, cx: &mut Context<'_>, ) -> Poll<Option<<Box<S> as AsyncIterator>::Item>>

🔬This is a nightly-only experimental API. (async_iterator)
Attempts to pull out the next value of this async iterator, registering the current task for wakeup if the value is not yet available, and returning None 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
Source§

impl<T> AsyncRead for Box<T>
where T: AsyncRead + Unpin + ?Sized,

Source§

fn poll_read( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, buf: &mut [u8], ) -> Poll<Result<usize, Error>>

Attempt to read from the AsyncRead into buf. Read more
Source§

fn poll_read_vectored( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, bufs: &mut [IoSliceMut<'_>], ) -> Poll<Result<usize, Error>>

Attempt to read from the AsyncRead into bufs using vectored IO operations. Read more
Source§

impl<T> AsyncRead for Box<T>
where T: AsyncRead + Unpin + ?Sized,

Source§

fn poll_read( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>, ) -> Poll<Result<(), Error>>

Attempts to read from the AsyncRead into buf. Read more
Source§

impl<T> AsyncSeek for Box<T>
where T: AsyncSeek + Unpin + ?Sized,

Source§

fn poll_seek( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, pos: SeekFrom, ) -> Poll<Result<u64, Error>>

Attempt to seek to an offset, in bytes, in a stream. Read more
Source§

impl<T> AsyncSeek for Box<T>
where T: AsyncSeek + Unpin + ?Sized,

Source§

fn start_seek(self: Pin<&mut Box<T>>, pos: SeekFrom) -> Result<(), Error>

Attempts to seek to an offset, in bytes, in a stream. Read more
Source§

fn poll_complete( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, ) -> Poll<Result<u64, Error>>

Waits for a seek operation to complete. Read more
Source§

impl<T> AsyncSeekForward for Box<T>

Source§

fn poll_seek_forward( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, offset: u64, ) -> Poll<Result<u64, Error>>

Attempts to asynchronously seek forward by a specified number of bytes from the current cursor position. Read more
Source§

impl<T> AsyncWrite for Box<T>
where T: AsyncWrite + Unpin + ?Sized,

Source§

fn poll_write( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>

Attempt to write bytes from buf into the object. Read more
Source§

fn poll_write_vectored( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>], ) -> Poll<Result<usize, Error>>

Attempt to write bytes from bufs into the object using vectored IO operations. Read more
Source§

fn poll_flush( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>

Attempt to flush the object, ensuring that any buffered data reach their destination. Read more
Source§

fn poll_close( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>

Attempt to close the object. Read more
Source§

impl<T> AsyncWrite for Box<T>
where T: AsyncWrite + Unpin + ?Sized,

Source§

fn poll_write( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>

Attempt to write bytes from buf into the object. Read more
Source§

fn poll_write_vectored( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>], ) -> Poll<Result<usize, Error>>

Like poll_write, except that it writes from a slice of buffers. Read more
Source§

fn is_write_vectored(&self) -> bool

Determines if this writer has an efficient poll_write_vectored implementation. Read more
Source§

fn poll_flush( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>

Attempts to flush the object, ensuring that any buffered data reach their destination. Read more
Source§

fn poll_shutdown( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>

Initiates or attempts to shut down this writer, returning success when the I/O connection has completely shut down. Read more
Source§

impl<T> Body for Box<T>
where T: Body + Unpin + ?Sized,

Source§

type Data = <T as Body>::Data

Values yielded by the Body.
Source§

type Error = <T as Body>::Error

The error type this Body might generate.
Source§

fn poll_frame( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, ) -> Poll<Option<Result<Frame<<Box<T> as Body>::Data>, <Box<T> as Body>::Error>>>

Attempt to pull out the next data buffer of this stream.
Source§

fn is_end_stream(&self) -> bool

Returns true when the end of stream has been reached. Read more
Source§

fn size_hint(&self) -> SizeHint

Returns the bounds on the remaining length of the stream. Read more
1.1.0 · Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
1.1.0 · Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> Buf for Box<T>
where T: Buf + ?Sized,

Source§

fn remaining(&self) -> usize

Returns the number of bytes between the current position and the end of the buffer. Read more
Source§

fn chunk(&self) -> &[u8]

Returns a slice starting at the current position and of length between 0 and Buf::remaining(). Note that this can return a shorter slice (this allows non-continuous internal representation). Read more
Source§

fn chunks_vectored<'b>(&'b self, dst: &mut [IoSlice<'b>]) -> usize

Fills dst with potentially multiple slices starting at self’s current position. Read more
Source§

fn advance(&mut self, cnt: usize)

Advance the internal cursor of the Buf Read more
Source§

fn has_remaining(&self) -> bool

Returns true if there are any more bytes to consume Read more
Source§

fn copy_to_slice(&mut self, dst: &mut [u8])

Copies bytes from self into dst. Read more
Source§

fn get_u8(&mut self) -> u8

Gets an unsigned 8 bit integer from self. Read more
Source§

fn get_i8(&mut self) -> i8

Gets a signed 8 bit integer from self. Read more
Source§

fn get_u16(&mut self) -> u16

Gets an unsigned 16 bit integer from self in big-endian byte order. Read more
Source§

fn get_u16_le(&mut self) -> u16

Gets an unsigned 16 bit integer from self in little-endian byte order. Read more
Source§

fn get_u16_ne(&mut self) -> u16

Gets an unsigned 16 bit integer from self in native-endian byte order. Read more
Source§

fn get_i16(&mut self) -> i16

Gets a signed 16 bit integer from self in big-endian byte order. Read more
Source§

fn get_i16_le(&mut self) -> i16

Gets a signed 16 bit integer from self in little-endian byte order. Read more
Source§

fn get_i16_ne(&mut self) -> i16

Gets a signed 16 bit integer from self in native-endian byte order. Read more
Source§

fn get_u32(&mut self) -> u32

Gets an unsigned 32 bit integer from self in the big-endian byte order. Read more
Source§

fn get_u32_le(&mut self) -> u32

Gets an unsigned 32 bit integer from self in the little-endian byte order. Read more
Source§

fn get_u32_ne(&mut self) -> u32

Gets an unsigned 32 bit integer from self in native-endian byte order. Read more
Source§

fn get_i32(&mut self) -> i32

Gets a signed 32 bit integer from self in big-endian byte order. Read more
Source§

fn get_i32_le(&mut self) -> i32

Gets a signed 32 bit integer from self in little-endian byte order. Read more
Source§

fn get_i32_ne(&mut self) -> i32

Gets a signed 32 bit integer from self in native-endian byte order. Read more
Source§

fn get_u64(&mut self) -> u64

Gets an unsigned 64 bit integer from self in big-endian byte order. Read more
Source§

fn get_u64_le(&mut self) -> u64

Gets an unsigned 64 bit integer from self in little-endian byte order. Read more
Source§

fn get_u64_ne(&mut self) -> u64

Gets an unsigned 64 bit integer from self in native-endian byte order. Read more
Source§

fn get_i64(&mut self) -> i64

Gets a signed 64 bit integer from self in big-endian byte order. Read more
Source§

fn get_i64_le(&mut self) -> i64

Gets a signed 64 bit integer from self in little-endian byte order. Read more
Source§

fn get_i64_ne(&mut self) -> i64

Gets a signed 64 bit integer from self in native-endian byte order. Read more
Source§

fn get_u128(&mut self) -> u128

Gets an unsigned 128 bit integer from self in big-endian byte order. Read more
Source§

fn get_u128_le(&mut self) -> u128

Gets an unsigned 128 bit integer from self in little-endian byte order. Read more
Source§

fn get_u128_ne(&mut self) -> u128

Gets an unsigned 128 bit integer from self in native-endian byte order. Read more
Source§

fn get_i128(&mut self) -> i128

Gets a signed 128 bit integer from self in big-endian byte order. Read more
Source§

fn get_i128_le(&mut self) -> i128

Gets a signed 128 bit integer from self in little-endian byte order. Read more
Source§

fn get_i128_ne(&mut self) -> i128

Gets a signed 128 bit integer from self in native-endian byte order. Read more
Source§

fn get_uint(&mut self, nbytes: usize) -> u64

Gets an unsigned n-byte integer from self in big-endian byte order. Read more
Source§

fn get_uint_le(&mut self, nbytes: usize) -> u64

Gets an unsigned n-byte integer from self in little-endian byte order. Read more
Source§

fn get_uint_ne(&mut self, nbytes: usize) -> u64

Gets an unsigned n-byte integer from self in native-endian byte order. Read more
Source§

fn get_int(&mut self, nbytes: usize) -> i64

Gets a signed n-byte integer from self in big-endian byte order. Read more
Source§

fn get_int_le(&mut self, nbytes: usize) -> i64

Gets a signed n-byte integer from self in little-endian byte order. Read more
Source§

fn get_int_ne(&mut self, nbytes: usize) -> i64

Gets a signed n-byte integer from self in native-endian byte order. Read more
Source§

fn get_f32(&mut self) -> f32

Gets an IEEE754 single-precision (4 bytes) floating point number from self in big-endian byte order. Read more
Source§

fn get_f32_le(&mut self) -> f32

Gets an IEEE754 single-precision (4 bytes) floating point number from self in little-endian byte order. Read more
Source§

fn get_f32_ne(&mut self) -> f32

Gets an IEEE754 single-precision (4 bytes) floating point number from self in native-endian byte order. Read more
Source§

fn get_f64(&mut self) -> f64

Gets an IEEE754 double-precision (8 bytes) floating point number from self in big-endian byte order. Read more
Source§

fn get_f64_le(&mut self) -> f64

Gets an IEEE754 double-precision (8 bytes) floating point number from self in little-endian byte order. Read more
Source§

fn get_f64_ne(&mut self) -> f64

Gets an IEEE754 double-precision (8 bytes) floating point number from self in native-endian byte order. Read more
Source§

fn try_copy_to_slice(&mut self, dst: &mut [u8]) -> Result<(), TryGetError>

Copies bytes from self into dst. Read more
Source§

fn try_get_u8(&mut self) -> Result<u8, TryGetError>

Gets an unsigned 8 bit integer from self. Read more
Source§

fn try_get_i8(&mut self) -> Result<i8, TryGetError>

Gets a signed 8 bit integer from self. Read more
Source§

fn try_get_u16(&mut self) -> Result<u16, TryGetError>

Gets an unsigned 16 bit integer from self in big-endian byte order. Read more
Source§

fn try_get_u16_le(&mut self) -> Result<u16, TryGetError>

Gets an unsigned 16 bit integer from self in little-endian byte order. Read more
Source§

fn try_get_u16_ne(&mut self) -> Result<u16, TryGetError>

Gets an unsigned 16 bit integer from self in native-endian byte order. Read more
Source§

fn try_get_i16(&mut self) -> Result<i16, TryGetError>

Gets a signed 16 bit integer from self in big-endian byte order. Read more
Source§

fn try_get_i16_le(&mut self) -> Result<i16, TryGetError>

Gets an signed 16 bit integer from self in little-endian byte order. Read more
Source§

fn try_get_i16_ne(&mut self) -> Result<i16, TryGetError>

Gets a signed 16 bit integer from self in native-endian byte order. Read more
Source§

fn try_get_u32(&mut self) -> Result<u32, TryGetError>

Gets an unsigned 32 bit integer from self in big-endian byte order. Read more
Source§

fn try_get_u32_le(&mut self) -> Result<u32, TryGetError>

Gets an unsigned 32 bit integer from self in little-endian byte order. Read more
Source§

fn try_get_u32_ne(&mut self) -> Result<u32, TryGetError>

Gets an unsigned 32 bit integer from self in native-endian byte order. Read more
Source§

fn try_get_i32(&mut self) -> Result<i32, TryGetError>

Gets a signed 32 bit integer from self in big-endian byte order. Read more
Source§

fn try_get_i32_le(&mut self) -> Result<i32, TryGetError>

Gets a signed 32 bit integer from self in little-endian byte order. Read more
Source§

fn try_get_i32_ne(&mut self) -> Result<i32, TryGetError>

Gets a signed 32 bit integer from self in native-endian byte order. Read more
Source§

fn try_get_u64(&mut self) -> Result<u64, TryGetError>

Gets an unsigned 64 bit integer from self in big-endian byte order. Read more
Source§

fn try_get_u64_le(&mut self) -> Result<u64, TryGetError>

Gets an unsigned 64 bit integer from self in little-endian byte order. Read more
Source§

fn try_get_u64_ne(&mut self) -> Result<u64, TryGetError>

Gets an unsigned 64 bit integer from self in native-endian byte order. Read more
Source§

fn try_get_i64(&mut self) -> Result<i64, TryGetError>

Gets a signed 64 bit integer from self in big-endian byte order. Read more
Source§

fn try_get_i64_le(&mut self) -> Result<i64, TryGetError>

Gets a signed 64 bit integer from self in little-endian byte order. Read more
Source§

fn try_get_i64_ne(&mut self) -> Result<i64, TryGetError>

Gets a signed 64 bit integer from self in native-endian byte order. Read more
Source§

fn try_get_u128(&mut self) -> Result<u128, TryGetError>

Gets an unsigned 128 bit integer from self in big-endian byte order. Read more
Source§

fn try_get_u128_le(&mut self) -> Result<u128, TryGetError>

Gets an unsigned 128 bit integer from self in little-endian byte order. Read more
Source§

fn try_get_u128_ne(&mut self) -> Result<u128, TryGetError>

Gets an unsigned 128 bit integer from self in native-endian byte order. Read more
Source§

fn try_get_i128(&mut self) -> Result<i128, TryGetError>

Gets a signed 128 bit integer from self in big-endian byte order. Read more
Source§

fn try_get_i128_le(&mut self) -> Result<i128, TryGetError>

Gets a signed 128 bit integer from self in little-endian byte order. Read more
Source§

fn try_get_i128_ne(&mut self) -> Result<i128, TryGetError>

Gets a signed 128 bit integer from self in native-endian byte order. Read more
Source§

fn try_get_uint(&mut self, nbytes: usize) -> Result<u64, TryGetError>

Gets an unsigned n-byte integer from self in big-endian byte order. Read more
Source§

fn try_get_uint_le(&mut self, nbytes: usize) -> Result<u64, TryGetError>

Gets an unsigned n-byte integer from self in little-endian byte order. Read more
Source§

fn try_get_uint_ne(&mut self, nbytes: usize) -> Result<u64, TryGetError>

Gets an unsigned n-byte integer from self in native-endian byte order. Read more
Source§

fn try_get_int(&mut self, nbytes: usize) -> Result<i64, TryGetError>

Gets a signed n-byte integer from self in big-endian byte order. Read more
Source§

fn try_get_int_le(&mut self, nbytes: usize) -> Result<i64, TryGetError>

Gets a signed n-byte integer from self in little-endian byte order. Read more
Source§

fn try_get_int_ne(&mut self, nbytes: usize) -> Result<i64, TryGetError>

Gets a signed n-byte integer from self in native-endian byte order. Read more
Source§

fn try_get_f32(&mut self) -> Result<f32, TryGetError>

Gets an IEEE754 single-precision (4 bytes) floating point number from self in big-endian byte order. Read more
Source§

fn try_get_f32_le(&mut self) -> Result<f32, TryGetError>

Gets an IEEE754 single-precision (4 bytes) floating point number from self in little-endian byte order. Read more
Source§

fn try_get_f32_ne(&mut self) -> Result<f32, TryGetError>

Gets an IEEE754 single-precision (4 bytes) floating point number from self in native-endian byte order. Read more
Source§

fn try_get_f64(&mut self) -> Result<f64, TryGetError>

Gets an IEEE754 double-precision (8 bytes) floating point number from self in big-endian byte order. Read more
Source§

fn try_get_f64_le(&mut self) -> Result<f64, TryGetError>

Gets an IEEE754 double-precision (8 bytes) floating point number from self in little-endian byte order. Read more
Source§

fn try_get_f64_ne(&mut self) -> Result<f64, TryGetError>

Gets an IEEE754 double-precision (8 bytes) floating point number from self in native-endian byte order. Read more
Source§

fn copy_to_bytes(&mut self, len: usize) -> Bytes

Consumes len bytes inside self and returns new instance of Bytes with this data. Read more
Source§

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

Creates an adaptor which will read at most limit bytes from self. Read more
Source§

fn chain<U>(self, next: U) -> Chain<Self, U>
where U: Buf, Self: Sized,

Creates an adaptor which will chain this buffer with another. Read more
Source§

fn reader(self) -> Reader<Self>
where Self: Sized,

Creates an adaptor which implements the Read trait for self. Read more
Source§

impl<T> BufMut for Box<T>
where T: BufMut + ?Sized,

Source§

fn remaining_mut(&self) -> usize

Returns the number of bytes that can be written from the current position until the end of the buffer is reached. Read more
Source§

fn chunk_mut(&mut self) -> &mut UninitSlice

Returns a mutable slice starting at the current BufMut position and of length between 0 and BufMut::remaining_mut(). Note that this can be shorter than the whole remainder of the buffer (this allows non-continuous implementation). Read more
Source§

unsafe fn advance_mut(&mut self, cnt: usize)

Advance the internal cursor of the BufMut Read more
Source§

fn put_slice(&mut self, src: &[u8])

Transfer bytes into self from src and advance the cursor by the number of bytes written. Read more
Source§

fn put_u8(&mut self, n: u8)

Writes an unsigned 8 bit integer to self. Read more
Source§

fn put_i8(&mut self, n: i8)

Writes a signed 8 bit integer to self. Read more
Source§

fn put_u16(&mut self, n: u16)

Writes an unsigned 16 bit integer to self in big-endian byte order. Read more
Source§

fn put_u16_le(&mut self, n: u16)

Writes an unsigned 16 bit integer to self in little-endian byte order. Read more
Source§

fn put_u16_ne(&mut self, n: u16)

Writes an unsigned 16 bit integer to self in native-endian byte order. Read more
Source§

fn put_i16(&mut self, n: i16)

Writes a signed 16 bit integer to self in big-endian byte order. Read more
Source§

fn put_i16_le(&mut self, n: i16)

Writes a signed 16 bit integer to self in little-endian byte order. Read more
Source§

fn put_i16_ne(&mut self, n: i16)

Writes a signed 16 bit integer to self in native-endian byte order. Read more
Source§

fn put_u32(&mut self, n: u32)

Writes an unsigned 32 bit integer to self in big-endian byte order. Read more
Source§

fn put_u32_le(&mut self, n: u32)

Writes an unsigned 32 bit integer to self in little-endian byte order. Read more
Source§

fn put_u32_ne(&mut self, n: u32)

Writes an unsigned 32 bit integer to self in native-endian byte order. Read more
Source§

fn put_i32(&mut self, n: i32)

Writes a signed 32 bit integer to self in big-endian byte order. Read more
Source§

fn put_i32_le(&mut self, n: i32)

Writes a signed 32 bit integer to self in little-endian byte order. Read more
Source§

fn put_i32_ne(&mut self, n: i32)

Writes a signed 32 bit integer to self in native-endian byte order. Read more
Source§

fn put_u64(&mut self, n: u64)

Writes an unsigned 64 bit integer to self in the big-endian byte order. Read more
Source§

fn put_u64_le(&mut self, n: u64)

Writes an unsigned 64 bit integer to self in little-endian byte order. Read more
Source§

fn put_u64_ne(&mut self, n: u64)

Writes an unsigned 64 bit integer to self in native-endian byte order. Read more
Source§

fn put_i64(&mut self, n: i64)

Writes a signed 64 bit integer to self in the big-endian byte order. Read more
Source§

fn put_i64_le(&mut self, n: i64)

Writes a signed 64 bit integer to self in little-endian byte order. Read more
Source§

fn put_i64_ne(&mut self, n: i64)

Writes a signed 64 bit integer to self in native-endian byte order. Read more
Source§

fn has_remaining_mut(&self) -> bool

Returns true if there is space in self for more bytes. Read more
Source§

fn put<T>(&mut self, src: T)
where T: Buf, Self: Sized,

Transfer bytes into self from src and advance the cursor by the number of bytes written. Read more
Source§

fn put_bytes(&mut self, val: u8, cnt: usize)

Put cnt bytes val into self. Read more
Source§

fn put_u128(&mut self, n: u128)

Writes an unsigned 128 bit integer to self in the big-endian byte order. Read more
Source§

fn put_u128_le(&mut self, n: u128)

Writes an unsigned 128 bit integer to self in little-endian byte order. Read more
Source§

fn put_u128_ne(&mut self, n: u128)

Writes an unsigned 128 bit integer to self in native-endian byte order. Read more
Source§

fn put_i128(&mut self, n: i128)

Writes a signed 128 bit integer to self in the big-endian byte order. Read more
Source§

fn put_i128_le(&mut self, n: i128)

Writes a signed 128 bit integer to self in little-endian byte order. Read more
Source§

fn put_i128_ne(&mut self, n: i128)

Writes a signed 128 bit integer to self in native-endian byte order. Read more
Source§

fn put_uint(&mut self, n: u64, nbytes: usize)

Writes an unsigned n-byte integer to self in big-endian byte order. Read more
Source§

fn put_uint_le(&mut self, n: u64, nbytes: usize)

Writes an unsigned n-byte integer to self in the little-endian byte order. Read more
Source§

fn put_uint_ne(&mut self, n: u64, nbytes: usize)

Writes an unsigned n-byte integer to self in the native-endian byte order. Read more
Source§

fn put_int(&mut self, n: i64, nbytes: usize)

Writes low nbytes of a signed integer to self in big-endian byte order. Read more
Source§

fn put_int_le(&mut self, n: i64, nbytes: usize)

Writes low nbytes of a signed integer to self in little-endian byte order. Read more
Source§

fn put_int_ne(&mut self, n: i64, nbytes: usize)

Writes low nbytes of a signed integer to self in native-endian byte order. Read more
Source§

fn put_f32(&mut self, n: f32)

Writes an IEEE754 single-precision (4 bytes) floating point number to self in big-endian byte order. Read more
Source§

fn put_f32_le(&mut self, n: f32)

Writes an IEEE754 single-precision (4 bytes) floating point number to self in little-endian byte order. Read more
Source§

fn put_f32_ne(&mut self, n: f32)

Writes an IEEE754 single-precision (4 bytes) floating point number to self in native-endian byte order. Read more
Source§

fn put_f64(&mut self, n: f64)

Writes an IEEE754 double-precision (8 bytes) floating point number to self in big-endian byte order. Read more
Source§

fn put_f64_le(&mut self, n: f64)

Writes an IEEE754 double-precision (8 bytes) floating point number to self in little-endian byte order. Read more
Source§

fn put_f64_ne(&mut self, n: f64)

Writes an IEEE754 double-precision (8 bytes) floating point number to self in native-endian byte order. Read more
Source§

fn limit(self, limit: usize) -> Limit<Self>
where Self: Sized,

Creates an adaptor which can write at most limit bytes to self. Read more
Source§

fn writer(self) -> Writer<Self>
where Self: Sized,

Creates an adaptor which implements the Write trait for self. Read more
Source§

fn chain_mut<U>(self, next: U) -> Chain<Self, U>
where U: BufMut, Self: Sized,

Creates an adapter which will chain this buffer with another. Read more
1.0.0 · Source§

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

Source§

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

Returns the contents of the internal buffer, filling it with more data, via Read methods, if empty. Read more
Source§

fn consume(&mut self, amt: usize)

Marks the given amount of additional bytes from the internal buffer as having been read. Subsequent calls to read only return bytes that have not been marked as read. Read more
Source§

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

🔬This is a nightly-only experimental API. (buf_read_has_data_left)
Checks if there is any data left to be read. Read more
Source§

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

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

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

Skips all bytes until the delimiter byte or EOF is reached. Read more
Source§

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

Reads all bytes until a newline (the 0xA byte) is reached, and append them to the provided String buffer. Read more
1.0.0 · Source§

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

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

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

Returns an iterator over the lines of this reader. Read more
Source§

impl<T> BufferMut for Box<T>
where T: BufferMut + ?Sized,

Source§

fn capacity(&self) -> usize

Source§

fn write<const N: usize>(&mut self, offset: usize, val: &[u8; N])

Source§

fn write_slice(&mut self, offset: usize, val: &[u8])

Source§

fn try_enlarge(&mut self, wanted: usize) -> Result<(), EnlargeError>

Source§

impl<T> BufferRef for Box<T>
where T: BufferRef + ?Sized,

Source§

fn len(&self) -> usize

Source§

fn read<const N: usize>(&self, offset: usize) -> &[u8; N]

Source§

fn read_slice(&self, offset: usize, val: &mut [u8])

Source§

impl<T> CalculateSizeFor for Box<T>
where T: CalculateSizeFor + ?Sized,

Source§

fn calculate_size_for(nr_of_el: u64) -> NonZero<u64>

Returns the size of Self assuming the (contained) runtime-sized array has nr_of_el elements
Source§

impl<T> Clear for Box<T>
where T: Clear,

Source§

fn clear(&mut self)

Clear all data in self, retaining the allocated capacithy.
1.3.0 · Source§

impl<T, A> Clone for Box<[T], A>
where T: Clone, A: Allocator + Clone,

Source§

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

Copies source’s contents into self without creating a new allocation, so long as the two are of the same length.

§Examples
let x = Box::new([5, 6, 7]);
let mut y = Box::new([8, 9, 10]);
let yp: *const [i32] = &*y;

y.clone_from(&x);

// The value is the same
assert_eq!(x, y);

// And no allocation occurred
assert_eq!(yp, &*y);
Source§

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

Returns a copy of the value. Read more
Source§

impl Clone for Box<ByteStr>

Source§

fn clone(&self) -> Box<ByteStr>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Clone for Box<CStr>

Source§

fn clone(&self) -> Box<CStr>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Clone for Box<OsStr>

Source§

fn clone(&self) -> Box<OsStr>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.29.0 · Source§

impl Clone for Box<Path>

Source§

fn clone(&self) -> Box<Path>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Clone for Box<RawValue>

Source§

fn clone(&self) -> Box<RawValue>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<K, V> Clone for Box<Slice<K, V>>
where K: Clone, V: Clone,

Source§

fn clone(&self) -> Box<Slice<K, V>>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Clone for Box<Slice<T>>
where T: Clone,

Source§

fn clone(&self) -> Box<Slice<T>>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<V> Clone for Box<Slice<V>>
where V: Clone,

Source§

fn clone(&self) -> Box<Slice<V>>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Clone for Box<Slice>

Source§

fn clone(&self) -> Box<Slice>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.0.0 · Source§

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

Source§

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

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

§Examples
let x = Box::new(5);
let y = x.clone();

// The value is the same
assert_eq!(x, y);

// But they are unique objects
assert_ne!(&*x as *const i32, &*y as *const i32);
Source§

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

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

§Examples
let x = Box::new(5);
let mut y = Box::new(10);
let yp: *const i32 = &*y;

y.clone_from(&x);

// The value is the same
assert_eq!(x, y);

// And no allocation occurred
assert_eq!(yp, &*y);
Source§

impl<T> Clone for Box<UniqueEntityEquivalentSlice<T>>

Source§

fn clone(&self) -> Box<UniqueEntityEquivalentSlice<T>>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Clone for Box<dyn AnyClone + Send + Sync>

Source§

fn clone(&self) -> Box<dyn AnyClone + Send + Sync>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.3.0 · Source§

impl Clone for Box<str>

Source§

fn clone(&self) -> Box<str>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<C> Connection for Box<C>
where C: Connection + ?Sized,

Source§

fn wait_for_event(&self) -> Result<Event, ConnectionError>

Wait for a new event from the X11 server.
Source§

fn wait_for_raw_event( &self, ) -> Result<<Box<C> as RequestConnection>::Buf, ConnectionError>

Wait for a new raw/unparsed event from the X11 server.
Source§

fn wait_for_event_with_sequence(&self) -> Result<(Event, u64), ConnectionError>

Wait for a new event from the X11 server.
Source§

fn wait_for_raw_event_with_sequence( &self, ) -> Result<(<Box<C> as RequestConnection>::Buf, u64), ConnectionError>

Wait for a new raw/unparsed event from the X11 server.
Source§

fn poll_for_event(&self) -> Result<Option<Event>, ConnectionError>

Poll for a new event from the X11 server.
Source§

fn poll_for_raw_event( &self, ) -> Result<Option<<Box<C> as RequestConnection>::Buf>, ConnectionError>

Poll for a new raw/unparsed event from the X11 server.
Source§

fn poll_for_event_with_sequence( &self, ) -> Result<Option<(Event, u64)>, ConnectionError>

Poll for a new event from the X11 server.
Source§

fn poll_for_raw_event_with_sequence( &self, ) -> Result<Option<(<Box<C> as RequestConnection>::Buf, u64)>, ConnectionError>

Poll for a new unparsed/raw event from the X11 server.
Source§

fn flush(&self) -> Result<(), ConnectionError>

Send all pending requests to the server. Read more
Source§

fn setup(&self) -> &Setup

Get the setup information sent by the X11 server. Read more
Source§

fn generate_id(&self) -> Result<u32, ReplyOrIdError>

Generate a new X11 identifier. Read more
Source§

impl<T> ContainsEntity for Box<T>
where T: ContainsEntity,

Source§

fn entity(&self) -> Entity

Returns the contained entity.
Source§

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

Source§

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
Source§

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( self: Pin<&mut Box<G, A>>, arg: R, ) -> 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
Source§

impl<G, R, A> Coroutine<R> for Pin<Box<G, A>>
where G: Coroutine<R> + ?Sized, A: Allocator + 'static,

Source§

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
Source§

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( self: Pin<&mut Pin<Box<G, A>>>, arg: R, ) -> CoroutineState<<Pin<Box<G, A>> as Coroutine<R>>::Yield, <Pin<Box<G, A>> as Coroutine<R>>::Return>

🔬This is a nightly-only experimental API. (coroutine_trait)
Resumes the execution of this coroutine. Read more
Source§

impl<T> CreateFrom for Box<T>
where T: CreateFrom + ?Sized,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Box<T>
where B: BufferRef,

1.0.0 · Source§

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

Source§

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

Formats the value using the given formatter. Read more
1.0.0 · Source§

impl<T> Default for Box<[T]>

Source§

fn default() -> Box<[T]>

Returns the “default value” for a type. Read more
1.17.0 · Source§

impl Default for Box<CStr>

Source§

fn default() -> Box<CStr>

Returns the “default value” for a type. Read more
1.17.0 · Source§

impl Default for Box<OsStr>

Source§

fn default() -> Box<OsStr>

Returns the “default value” for a type. Read more
Source§

impl Default for Box<RawValue>

Source§

fn default() -> Box<RawValue>

Returns the “default value” for a type. Read more
Source§

impl<K, V> Default for Box<Slice<K, V>>

Source§

fn default() -> Box<Slice<K, V>>

Returns the “default value” for a type. Read more
Source§

impl<T> Default for Box<Slice<T>>

Source§

fn default() -> Box<Slice<T>>

Returns the “default value” for a type. Read more
Source§

impl<V> Default for Box<Slice<V>>

Source§

fn default() -> Box<Slice<V>>

Returns the “default value” for a type. Read more
Source§

impl Default for Box<Slice>

Source§

fn default() -> Box<Slice>

Returns the “default value” for a type. Read more
1.0.0 · Source§

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

Source§

fn default() -> Box<T>

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

Source§

impl<T> Default for Box<UniqueEntityEquivalentSlice<T>>

Source§

fn default() -> Box<UniqueEntityEquivalentSlice<T>>

Returns the “default value” for a type. Read more
1.17.0 · Source§

impl Default for Box<str>

Source§

fn default() -> Box<str>

Returns the “default value” for a type. Read more
1.0.0 · Source§

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

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &T

Dereferences the value.
1.0.0 · Source§

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

Source§

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

Mutably dereferences the value.
Source§

impl<'de, T> Deserialize<'de> for Box<[T]>
where T: Deserialize<'de>,

Source§

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

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'de> Deserialize<'de> for Box<CStr>

Source§

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

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'de> Deserialize<'de> for Box<OsStr>

Source§

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

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'de> Deserialize<'de> for Box<Path>

Source§

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

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'de> Deserialize<'de> for Box<RawValue>

Source§

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

Deserialize this value from the given Serde deserializer. Read more
Source§

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

Source§

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

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'de> Deserialize<'de> for Box<str>

Source§

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

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'de, T> Deserializer<'de> for Box<T>
where T: Deserializer<'de> + ?Sized,

Source§

fn erased_deserialize_any( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_bool( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_i8( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_i16( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_i32( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_i64( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_i128( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_u8( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_u16( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_u32( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_u64( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_u128( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_f32( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_f64( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_char( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_str( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_string( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_bytes( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_byte_buf( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_option( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_unit( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_unit_struct( &mut self, name: &'static str, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_newtype_struct( &mut self, name: &'static str, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_seq( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_tuple( &mut self, len: usize, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_tuple_struct( &mut self, name: &'static str, len: usize, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_map( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_struct( &mut self, name: &'static str, fields: &'static [&'static str], visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_identifier( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_enum( &mut self, name: &'static str, variants: &'static [&'static str], visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_deserialize_ignored_any( &mut self, visitor: &mut dyn Visitor<'de>, ) -> Result<Out, Error>

Source§

fn erased_is_human_readable(&self) -> bool

Source§

impl<'de> Deserializer<'de> for Box<dyn Deserializer<'de> + '_>

Source§

type Error = Error

The error type that can be returned if some error occurs during deserialization.
Source§

fn deserialize_any<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
Source§

fn deserialize_bool<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a bool value.
Source§

fn deserialize_i8<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i8 value.
Source§

fn deserialize_i16<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i16 value.
Source§

fn deserialize_i32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i32 value.
Source§

fn deserialize_i64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i64 value.
Source§

fn deserialize_i128<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
Source§

fn deserialize_u8<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u8 value.
Source§

fn deserialize_u16<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u16 value.
Source§

fn deserialize_u32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u32 value.
Source§

fn deserialize_u64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u64 value.
Source§

fn deserialize_u128<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
Source§

fn deserialize_f32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f32 value.
Source§

fn deserialize_f64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f64 value.
Source§

fn deserialize_char<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a char value.
Source§

fn deserialize_str<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_string<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_bytes<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_byte_buf<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_option<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an optional value. Read more
Source§

fn deserialize_unit<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit value.
Source§

fn deserialize_unit_struct<V>( self, name: &'static str, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit struct with a particular name.
Source§

fn deserialize_newtype_struct<V>( self, name: &'static str, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a newtype struct with a particular name.
Source§

fn deserialize_seq<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values.
Source§

fn deserialize_tuple<V>( self, len: usize, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data.
Source§

fn deserialize_tuple_struct<V>( self, name: &'static str, len: usize, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields.
Source§

fn deserialize_map<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a map of key-value pairs.
Source§

fn deserialize_struct<V>( self, name: &'static str, fields: &'static [&'static str], visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a struct with a particular name and fields.
Source§

fn deserialize_identifier<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant.
Source§

fn deserialize_enum<V>( self, name: &'static str, variants: &'static [&'static str], visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an enum value with a particular name and possible variants.
Source§

fn deserialize_ignored_any<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
Source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
Source§

impl<'de> Deserializer<'de> for Box<dyn Deserializer<'de> + Send + '_>

Source§

type Error = Error

The error type that can be returned if some error occurs during deserialization.
Source§

fn deserialize_any<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
Source§

fn deserialize_bool<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a bool value.
Source§

fn deserialize_i8<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i8 value.
Source§

fn deserialize_i16<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i16 value.
Source§

fn deserialize_i32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i32 value.
Source§

fn deserialize_i64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i64 value.
Source§

fn deserialize_i128<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
Source§

fn deserialize_u8<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u8 value.
Source§

fn deserialize_u16<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u16 value.
Source§

fn deserialize_u32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u32 value.
Source§

fn deserialize_u64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u64 value.
Source§

fn deserialize_u128<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
Source§

fn deserialize_f32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f32 value.
Source§

fn deserialize_f64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f64 value.
Source§

fn deserialize_char<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a char value.
Source§

fn deserialize_str<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_string<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_bytes<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_byte_buf<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_option<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an optional value. Read more
Source§

fn deserialize_unit<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit value.
Source§

fn deserialize_unit_struct<V>( self, name: &'static str, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit struct with a particular name.
Source§

fn deserialize_newtype_struct<V>( self, name: &'static str, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a newtype struct with a particular name.
Source§

fn deserialize_seq<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values.
Source§

fn deserialize_tuple<V>( self, len: usize, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data.
Source§

fn deserialize_tuple_struct<V>( self, name: &'static str, len: usize, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields.
Source§

fn deserialize_map<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a map of key-value pairs.
Source§

fn deserialize_struct<V>( self, name: &'static str, fields: &'static [&'static str], visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a struct with a particular name and fields.
Source§

fn deserialize_identifier<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant.
Source§

fn deserialize_enum<V>( self, name: &'static str, variants: &'static [&'static str], visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an enum value with a particular name and possible variants.
Source§

fn deserialize_ignored_any<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
Source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
Source§

impl<'de> Deserializer<'de> for Box<dyn Deserializer<'de> + Send + Sync + '_>

Source§

type Error = Error

The error type that can be returned if some error occurs during deserialization.
Source§

fn deserialize_any<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
Source§

fn deserialize_bool<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a bool value.
Source§

fn deserialize_i8<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i8 value.
Source§

fn deserialize_i16<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i16 value.
Source§

fn deserialize_i32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i32 value.
Source§

fn deserialize_i64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i64 value.
Source§

fn deserialize_i128<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
Source§

fn deserialize_u8<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u8 value.
Source§

fn deserialize_u16<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u16 value.
Source§

fn deserialize_u32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u32 value.
Source§

fn deserialize_u64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u64 value.
Source§

fn deserialize_u128<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
Source§

fn deserialize_f32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f32 value.
Source§

fn deserialize_f64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f64 value.
Source§

fn deserialize_char<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a char value.
Source§

fn deserialize_str<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_string<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_bytes<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_byte_buf<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_option<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an optional value. Read more
Source§

fn deserialize_unit<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit value.
Source§

fn deserialize_unit_struct<V>( self, name: &'static str, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit struct with a particular name.
Source§

fn deserialize_newtype_struct<V>( self, name: &'static str, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a newtype struct with a particular name.
Source§

fn deserialize_seq<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values.
Source§

fn deserialize_tuple<V>( self, len: usize, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data.
Source§

fn deserialize_tuple_struct<V>( self, name: &'static str, len: usize, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields.
Source§

fn deserialize_map<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a map of key-value pairs.
Source§

fn deserialize_struct<V>( self, name: &'static str, fields: &'static [&'static str], visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a struct with a particular name and fields.
Source§

fn deserialize_identifier<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant.
Source§

fn deserialize_enum<V>( self, name: &'static str, variants: &'static [&'static str], visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an enum value with a particular name and possible variants.
Source§

fn deserialize_ignored_any<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
Source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
Source§

impl<'de> Deserializer<'de> for Box<dyn Deserializer<'de> + Sync + '_>

Source§

type Error = Error

The error type that can be returned if some error occurs during deserialization.
Source§

fn deserialize_any<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
Source§

fn deserialize_bool<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a bool value.
Source§

fn deserialize_i8<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i8 value.
Source§

fn deserialize_i16<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i16 value.
Source§

fn deserialize_i32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i32 value.
Source§

fn deserialize_i64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i64 value.
Source§

fn deserialize_i128<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
Source§

fn deserialize_u8<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u8 value.
Source§

fn deserialize_u16<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u16 value.
Source§

fn deserialize_u32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u32 value.
Source§

fn deserialize_u64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u64 value.
Source§

fn deserialize_u128<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
Source§

fn deserialize_f32<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f32 value.
Source§

fn deserialize_f64<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f64 value.
Source§

fn deserialize_char<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a char value.
Source§

fn deserialize_str<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_string<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_bytes<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_byte_buf<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_option<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an optional value. Read more
Source§

fn deserialize_unit<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit value.
Source§

fn deserialize_unit_struct<V>( self, name: &'static str, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit struct with a particular name.
Source§

fn deserialize_newtype_struct<V>( self, name: &'static str, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a newtype struct with a particular name.
Source§

fn deserialize_seq<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values.
Source§

fn deserialize_tuple<V>( self, len: usize, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data.
Source§

fn deserialize_tuple_struct<V>( self, name: &'static str, len: usize, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields.
Source§

fn deserialize_map<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a map of key-value pairs.
Source§

fn deserialize_struct<V>( self, name: &'static str, fields: &'static [&'static str], visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a struct with a particular name and fields.
Source§

fn deserialize_identifier<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant.
Source§

fn deserialize_enum<V>( self, name: &'static str, variants: &'static [&'static str], visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an enum value with a particular name and possible variants.
Source§

fn deserialize_ignored_any<V>( self, visitor: V, ) -> Result<<V as Visitor<'de>>::Value, Error>
where V: Visitor<'de>,

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
Source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
1.0.0 · Source§

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

Source§

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

Formats the value using the given formatter. Read more
1.0.0 · Source§

impl<I, A> DoubleEndedIterator for Box<I, A>

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 Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Output = B>,

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

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

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

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

Searches for an element of an iterator from the back that satisfies a predicate. Read more
1.0.0 · Source§

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

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<I> EntitySetIterator for Box<I>

Source§

fn collect_set<B>(self) -> B
where B: FromEntitySetIterator<Self::Item>, Self: Sized,

Transforms an EntitySetIterator into a collection. Read more
1.8.0 · Source§

impl<E> Error for Box<E>
where E: 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)>

Returns 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
Source§

impl<T> EventSource for Box<T>
where T: EventSource,

Blanket implementation for boxed event sources. EventSource is not an object safe trait, so this does not include trait objects.

Source§

const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = T::NEEDS_EXTRA_LIFECYCLE_EVENTS

Whether this source needs to be sent the EventSource::before_sleep and EventSource::before_handle_events notifications. These are opt-in because they require more expensive checks, and almost all sources will not need these notifications
Source§

type Event = <T as EventSource>::Event

The type of events generated by your source.
Source§

type Metadata = <T as EventSource>::Metadata

Some metadata of your event source Read more
Source§

type Ret = <T as EventSource>::Ret

The return type of the user callback Read more
Source§

type Error = <T as EventSource>::Error

The error type returned from process_events() (not the user callback!).
Source§

fn process_events<F>( &mut self, readiness: Readiness, token: Token, callback: F, ) -> Result<PostAction, <Box<T> as EventSource>::Error>
where F: FnMut(<Box<T> as EventSource>::Event, &mut <Box<T> as EventSource>::Metadata) -> <Box<T> as EventSource>::Ret,

Process any relevant events Read more
Source§

fn register( &mut self, poll: &mut Poll, token_factory: &mut TokenFactory, ) -> Result<(), Error>

Register yourself to this poll instance Read more
Source§

fn reregister( &mut self, poll: &mut Poll, token_factory: &mut TokenFactory, ) -> Result<(), Error>

Re-register your file descriptors Read more
Source§

fn unregister(&mut self, poll: &mut Poll) -> Result<(), Error>

Unregister your file descriptors Read more
Source§

fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>

Notification that a single poll is about to begin Read more
Source§

fn before_handle_events(&mut self, events: EventIterator<'_>)

Notification that polling is complete, and EventSource::process_events will be called with the given events for this source. The iterator may be empty, which indicates that no events were generated for this source Read more
1.0.0 · Source§

impl<I, A> ExactSizeIterator for Box<I, A>

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
1.45.0 · Source§

impl<A> Extend<Box<str, A>> for String
where A: Allocator,

Source§

fn extend<I>(&mut self, iter: I)
where I: IntoIterator<Item = Box<str, A>>,

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Source§

impl<S> Filter<S> for Box<dyn Filter<S> + Send + Sync>

Source§

fn enabled(&self, meta: &Metadata<'_>, cx: &Context<'_, S>) -> bool

Returns true if this layer is interested in a span or event with the given Metadata in the current Context, similarly to Subscriber::enabled. Read more
Source§

fn callsite_enabled(&self, meta: &'static Metadata<'static>) -> Interest

Returns an Interest indicating whether this layer will always, sometimes, or never be interested in the given Metadata. Read more
Source§

fn max_level_hint(&self) -> Option<LevelFilter>

Returns an optional hint of the highest verbosity level that this Filter will enable. Read more
Source§

fn event_enabled(&self, event: &Event<'_>, cx: &Context<'_, S>) -> bool

Called before the filtered [Layer]'s [on_event], to determine if on_event` should be called. Read more
Source§

fn on_new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)

Notifies this filter that a new span was constructed with the given Attributes and Id. Read more
Source§

fn on_record(&self, id: &Id, values: &Record<'_>, ctx: Context<'_, S>)

Notifies this filter that a span with the given Id recorded the given values. Read more
Source§

fn on_enter(&self, id: &Id, ctx: Context<'_, S>)

Notifies this filter that a span with the given ID was entered. Read more
Source§

fn on_exit(&self, id: &Id, ctx: Context<'_, S>)

Notifies this filter that a span with the given ID was exited. Read more
Source§

fn on_close(&self, id: Id, ctx: Context<'_, S>)

Notifies this filter that a span with the given ID has been closed. Read more
1.35.0 · Source§

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

Source§

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

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
1.35.0 · Source§

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

Source§

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

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
1.35.0 · Source§

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

Source§

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

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

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

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
1.17.0 · Source§

impl<T> From<&[T]> for Box<[T]>
where T: Clone,

Source§

fn from(slice: &[T]) -> Box<[T]>

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

This conversion allocates on the heap and performs a copy of slice and its contents.

§Examples
// create a &[u8] which will be used to create a Box<[u8]>
let slice: &[u8] = &[104, 101, 108, 108, 111];
let boxed_slice: Box<[u8]> = Box::from(slice);

println!("{boxed_slice:?}");
1.17.0 · Source§

impl From<&CStr> for Box<CStr>

Source§

fn from(s: &CStr) -> Box<CStr>

Converts a &CStr into a Box<CStr>, by copying the contents into a newly allocated Box.

1.17.0 · Source§

impl From<&OsStr> for Box<OsStr>

Source§

fn from(s: &OsStr) -> Box<OsStr>

Copies the string into a newly allocated Box<OsStr>.

1.17.0 · Source§

impl From<&Path> for Box<Path>

Source§

fn from(path: &Path) -> Box<Path>

Creates a boxed Path from a reference.

This will allocate and clone path to it.

Source§

impl<K, V> From<&Slice<K, V>> for Box<Slice<K, V>>
where K: Copy, V: Copy,

Source§

fn from(slice: &Slice<K, V>) -> Box<Slice<K, V>>

Converts to this type from the input type.
Source§

impl<T> From<&Slice<T>> for Box<Slice<T>>
where T: Copy,

Source§

fn from(slice: &Slice<T>) -> Box<Slice<T>>

Converts to this type from the input type.
Source§

impl<V> From<&Slice<V>> for Box<Slice<V>>
where V: Copy,

Source§

fn from(value: &Slice<V>) -> Box<Slice<V>>

Converts to this type from the input type.
Source§

impl From<&Slice> for Box<Slice>

Source§

fn from(value: &Slice) -> Box<Slice>

Converts to this type from the input type.
Source§

impl<T> From<&UniqueEntityEquivalentSlice<T>> for Box<UniqueEntityEquivalentSlice<T>>

Source§

fn from( value: &UniqueEntityEquivalentSlice<T>, ) -> Box<UniqueEntityEquivalentSlice<T>>

Converts to this type from the input type.
1.84.0 · Source§

impl<T> From<&mut [T]> for Box<[T]>
where T: Clone,

Source§

fn from(slice: &mut [T]) -> Box<[T]>

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

This conversion allocates on the heap and performs a copy of slice and its contents.

§Examples
// create a &mut [u8] which will be used to create a Box<[u8]>
let mut array = [104, 101, 108, 108, 111];
let slice: &mut [u8] = &mut array;
let boxed_slice: Box<[u8]> = Box::from(slice);

println!("{boxed_slice:?}");
1.84.0 · Source§

impl From<&mut CStr> for Box<CStr>

Source§

fn from(s: &mut CStr) -> Box<CStr>

Converts a &mut CStr into a Box<CStr>, by copying the contents into a newly allocated Box.

1.84.0 · Source§

impl From<&mut OsStr> for Box<OsStr>

Source§

fn from(s: &mut OsStr) -> Box<OsStr>

Copies the string into a newly allocated Box<OsStr>.

1.84.0 · Source§

impl From<&mut Path> for Box<Path>

Source§

fn from(path: &mut Path) -> Box<Path>

Creates a boxed Path from a reference.

This will allocate and clone path to it.

1.84.0 · Source§

impl From<&mut str> for Box<str>

Source§

fn from(s: &mut str) -> Box<str>

Converts a &mut str into a Box<str>

This conversion allocates on the heap and performs a copy of s.

§Examples
let mut original = String::from("hello");
let original: &mut str = &mut original;
let boxed: Box<str> = Box::from(original);
println!("{boxed}");
1.6.0 · Source§

impl<'a> From<&str> for Box<dyn Error + 'a>

Source§

fn from(err: &str) -> Box<dyn Error + 'a>

Converts a str into a box of dyn Error.

§Examples
use std::error::Error;

let a_str_error = "a str error";
let a_boxed_error = Box::<dyn Error>::from(a_str_error);
assert!(size_of::<Box<dyn Error>>() == size_of_val(&a_boxed_error))
1.0.0 · Source§

impl<'a> From<&str> for Box<dyn Error + Send + Sync + 'a>

Source§

fn from(err: &str) -> Box<dyn Error + Send + Sync + 'a>

Converts a str into a box of dyn Error + Send + Sync.

§Examples
use std::error::Error;

let a_str_error = "a str error";
let a_boxed_error = Box::<dyn Error + Send + Sync>::from(a_str_error);
assert!(
    size_of::<Box<dyn Error + Send + Sync>>() == size_of_val(&a_boxed_error))
1.17.0 · Source§

impl From<&str> for Box<str>

Source§

fn from(s: &str) -> Box<str>

Converts a &str into a Box<str>

This conversion allocates on the heap and performs a copy of s.

§Examples
let boxed: Box<str> = Box::from("hello");
println!("{boxed}");
1.45.0 · Source§

impl<T, const N: usize> From<[T; N]> for Box<[T]>

Source§

fn from(array: [T; N]) -> Box<[T]>

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

This conversion moves the array to newly heap-allocated memory.

§Examples
let boxed: Box<[u8]> = Box::from([4, 2]);
println!("{boxed:?}");
Source§

impl<T, O> From<BitBox<T, O>> for Box<[T]>
where T: BitStore, O: BitOrder,

Source§

fn from(bb: BitBox<T, O>) -> Box<[T]>

Converts to this type from the input type.
Source§

impl From<Box<[Signature]>> for Fields

Source§

fn from(fields: Box<[Signature]>) -> Fields

Converts to this type from the input type.
1.18.0 · Source§

impl<T, A> From<Box<[T], A>> for Vec<T, A>
where A: Allocator,

Source§

fn from(s: Box<[T], A>) -> Vec<T, A>

Converts a boxed slice into a vector by transferring ownership of the existing heap allocation.

§Examples
let b: Box<[i32]> = vec![1, 2, 3].into_boxed_slice();
assert_eq!(Vec::from(b), vec![1, 2, 3]);
Source§

impl From<Box<[u8]>> for Box<ByteStr>

Source§

fn from(s: Box<[u8]>) -> Box<ByteStr>

Converts to this type from the input type.
Source§

impl From<Box<[u8]>> for Bytes

Source§

fn from(slice: Box<[u8]>) -> Bytes

Converts to this type from the input type.
Source§

impl From<Box<BinderError>> for DispatchError

Source§

fn from(source: Box<BinderError>) -> DispatchError

Converts to this type from the input type.
Source§

impl From<Box<BinderError>> for DrawError

Source§

fn from(source: Box<BinderError>) -> DrawError

Converts to this type from the input type.
Source§

impl From<Box<ByteStr>> for Box<[u8]>

Source§

fn from(s: Box<ByteStr>) -> Box<[u8]>

Converts to this type from the input type.
1.18.0 · Source§

impl From<Box<CStr>> for CString

Source§

fn from(s: Box<CStr>) -> CString

Converts a Box<CStr> into a CString without copying or allocating.

Source§

impl From<Box<DeviceMismatch>> for DeviceError

Source§

fn from(source: Box<DeviceMismatch>) -> DeviceError

Converts to this type from the input type.
Source§

impl<'a, F> From<Box<F>> for FutureObj<'a, ()>
where F: Future<Output = ()> + Send + 'a,

Source§

fn from(boxed: Box<F>) -> FutureObj<'a, ()>

Converts to this type from the input type.
Source§

impl<'a, F> From<Box<F>> for LocalFutureObj<'a, ()>
where F: Future<Output = ()> + 'a,

Source§

fn from(boxed: Box<F>) -> LocalFutureObj<'a, ()>

Converts to this type from the input type.
1.18.0 · Source§

impl From<Box<OsStr>> for OsString

Source§

fn from(boxed: Box<OsStr>) -> OsString

Converts a Box<OsStr> into an OsString without copying or allocating.

1.18.0 · Source§

impl From<Box<Path>> for PathBuf

Source§

fn from(boxed: Box<Path>) -> PathBuf

Converts a Box<Path> into a PathBuf.

This conversion does not allocate or copy memory.

Source§

impl From<Box<RawValue>> for Box<str>

Source§

fn from(raw_value: Box<RawValue>) -> Box<str>

Converts to this type from the input type.
Source§

impl From<Box<Signature>> for Child

Source§

fn from(child: Box<Signature>) -> Child

Converts to this type from the input type.
Source§

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

Source§

fn from(b: Box<T>) -> Atomic<T>

Converts to this type from the input type.
Source§

impl<T, O> From<Box<T>> for BitBox<T, O>
where T: BitStore, O: BitOrder,

Source§

fn from(elem: Box<T>) -> BitBox<T, O>

Converts to this type from the input type.
Source§

impl<T> From<Box<T>> for BoxBytes
where T: BoxBytesOf + ?Sized,

Source§

fn from(value: Box<T>) -> BoxBytes

Converts to this type from the input type.
Source§

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

Source§

fn from(b: Box<T>) -> Owned<T>

Returns a new owned pointer pointing to b.

§Panics

Panics if the pointer (the Box) is not properly aligned.

§Examples
use crossbeam_epoch::Owned;

let o = unsafe { Owned::from_raw(Box::into_raw(Box::new(1234))) };
1.21.0 · Source§

impl<T, A> From<Box<T, A>> for Arc<T, A>
where A: Allocator, T: ?Sized,

Source§

fn from(v: Box<T, A>) -> Arc<T, A>

Move a boxed object to a new, reference-counted allocation.

§Example
let unique: Box<str> = Box::from("eggplant");
let shared: Arc<str> = Arc::from(unique);
assert_eq!("eggplant", &shared[..]);
1.33.0 · Source§

impl<T, A> From<Box<T, A>> for Pin<Box<T, A>>
where A: Allocator + 'static, T: ?Sized,

Source§

fn from(boxed: Box<T, A>) -> Pin<Box<T, A>>

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

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

This is also available via Box::into_pin.

Constructing and pinning a Box with <Pin<Box<T>>>::from(Box::new(x)) can also be written more concisely using Box::pin(x). This From implementation is useful if you already have a Box<T>, or you are constructing a (pinned) Box in a different way than with Box::new.

1.21.0 · Source§

impl<T, A> From<Box<T, A>> for Rc<T, A>
where A: Allocator, T: ?Sized,

Source§

fn from(v: Box<T, A>) -> Rc<T, A>

Move a boxed object to a new, reference counted, allocation.

§Example
let original: Box<i32> = Box::new(1);
let shared: Rc<i32> = Rc::from(original);
assert_eq!(1, *shared);
Source§

impl<T> From<Box<UniqueEntityEquivalentSlice<T>>> for UniqueEntityEquivalentVec<T>

Source§

fn from( value: Box<UniqueEntityEquivalentSlice<T>>, ) -> UniqueEntityEquivalentVec<T>

Converts to this type from the input type.
Source§

impl From<Box<dyn Error + Send + Sync>> for Error

Source§

fn from(source: Box<dyn Error + Send + Sync>) -> Error

Converts to this type from the input type.
Source§

impl From<Box<dyn Error + Send + Sync>> for ParseError

Source§

fn from(e: Box<dyn Error + Send + Sync>) -> ParseError

Converts to this type from the input type.
Source§

impl<'a> From<Box<dyn Future<Output = ()> + 'a>> for LocalFutureObj<'a, ()>

Source§

fn from(boxed: Box<dyn Future<Output = ()> + 'a>) -> LocalFutureObj<'a, ()>

Converts to this type from the input type.
Source§

impl<'a> From<Box<dyn Future<Output = ()> + Send + 'a>> for FutureObj<'a, ()>

Source§

fn from(boxed: Box<dyn Future<Output = ()> + Send + 'a>) -> FutureObj<'a, ()>

Converts to this type from the input type.
Source§

impl From<Box<str>> for SmolStr

Source§

fn from(s: Box<str>) -> SmolStr

Converts to this type from the input type.
1.18.0 · Source§

impl From<Box<str>> for String

Source§

fn from(s: Box<str>) -> String

Converts the given boxed str slice to a String. It is notable that the str slice is owned.

§Examples
let s1: String = String::from("hello world");
let s2: Box<str> = s1.into_boxed_str();
let s3: String = String::from(s2);

assert_eq!("hello world", s3)
1.19.0 · Source§

impl<A> From<Box<str, A>> for Box<[u8], A>
where A: Allocator,

Source§

fn from(s: Box<str, A>) -> Box<[u8], A>

Converts a Box<str> into a Box<[u8]>

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

§Examples
// create a Box<str> which will be used to create a Box<[u8]>
let boxed: Box<str> = Box::from("hello");
let boxed_str: Box<[u8]> = Box::from(boxed);

// create a &[u8] which will be used to create a Box<[u8]>
let slice: &[u8] = &[104, 101, 108, 108, 111];
let boxed_slice = Box::from(slice);

assert_eq!(boxed_slice, boxed_str);
1.20.0 · Source§

impl From<CString> for Box<CStr>

Source§

fn from(s: CString) -> Box<CStr>

Converts a CString into a Box<CStr> without copying or allocating.

1.45.0 · Source§

impl<T> From<Cow<'_, [T]>> for Box<[T]>
where T: Clone,

Source§

fn from(cow: Cow<'_, [T]>) -> Box<[T]>

Converts a Cow<'_, [T]> into a Box<[T]>

When cow is the Cow::Borrowed variant, this conversion allocates on the heap and copies the underlying slice. Otherwise, it will try to reuse the owned Vec’s allocation.

1.45.0 · Source§

impl From<Cow<'_, CStr>> for Box<CStr>

Source§

fn from(cow: Cow<'_, CStr>) -> Box<CStr>

Converts a Cow<'a, CStr> into a Box<CStr>, by copying the contents if they are borrowed.

1.45.0 · Source§

impl From<Cow<'_, OsStr>> for Box<OsStr>

Source§

fn from(cow: Cow<'_, OsStr>) -> Box<OsStr>

Converts a Cow<'a, OsStr> into a Box<OsStr>, by copying the contents if they are borrowed.

1.45.0 · Source§

impl From<Cow<'_, Path>> for Box<Path>

Source§

fn from(cow: Cow<'_, Path>) -> Box<Path>

Creates a boxed Path from a clone-on-write pointer.

Converting from a Cow::Owned does not clone or allocate.

1.45.0 · Source§

impl From<Cow<'_, str>> for Box<str>

Source§

fn from(cow: Cow<'_, str>) -> Box<str>

Converts a Cow<'_, str> into a Box<str>

When cow is the Cow::Borrowed variant, this conversion allocates on the heap and copies the underlying str. Otherwise, it will try to reuse the owned String’s allocation.

§Examples
use std::borrow::Cow;

let unboxed = Cow::Borrowed("hello");
let boxed: Box<str> = Box::from(unboxed);
println!("{boxed}");
let unboxed = Cow::Owned("hello".to_string());
let boxed: Box<str> = Box::from(unboxed);
println!("{boxed}");
Source§

impl<'a, T> From<Cow<'a, UniqueEntityEquivalentSlice<T>>> for Box<UniqueEntityEquivalentSlice<T>>

Source§

fn from( value: Cow<'a, UniqueEntityEquivalentSlice<T>>, ) -> Box<UniqueEntityEquivalentSlice<T>>

Converts to this type from the input type.
1.22.0 · Source§

impl<'a, 'b> From<Cow<'b, str>> for Box<dyn Error + 'a>

Source§

fn from(err: Cow<'b, str>) -> Box<dyn Error + 'a>

Converts a Cow into a box of dyn Error.

§Examples
use std::error::Error;
use std::borrow::Cow;

let a_cow_str_error = Cow::from("a str error");
let a_boxed_error = Box::<dyn Error>::from(a_cow_str_error);
assert!(size_of::<Box<dyn Error>>() == size_of_val(&a_boxed_error))
1.22.0 · Source§

impl<'a, 'b> From<Cow<'b, str>> for Box<dyn Error + Send + Sync + 'a>

Source§

fn from(err: Cow<'b, str>) -> Box<dyn Error + Send + Sync + 'a>

Converts a Cow into a box of dyn Error + Send + Sync.

§Examples
use std::error::Error;
use std::borrow::Cow;

let a_cow_str_error = Cow::from("a str error");
let a_boxed_error = Box::<dyn Error + Send + Sync>::from(a_cow_str_error);
assert!(
    size_of::<Box<dyn Error + Send + Sync>>() == size_of_val(&a_boxed_error))
1.0.0 · Source§

impl<'a, E> From<E> for Box<dyn Error + 'a>
where E: Error + 'a,

Source§

fn from(err: E) -> Box<dyn Error + 'a>

Converts a type of Error into a box of dyn Error.

§Examples
use std::error::Error;
use std::fmt;

#[derive(Debug)]
struct AnError;

impl fmt::Display for AnError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "An error")
    }
}

impl Error for AnError {}

let an_error = AnError;
assert!(0 == size_of_val(&an_error));
let a_boxed_error = Box::<dyn Error>::from(an_error);
assert!(size_of::<Box<dyn Error>>() == size_of_val(&a_boxed_error))
1.0.0 · Source§

impl<'a, E> From<E> for Box<dyn Error + Send + Sync + 'a>
where E: Error + Send + Sync + 'a,

Source§

fn from(err: E) -> Box<dyn Error + Send + Sync + 'a>

Converts a type of Error + Send + Sync into a box of dyn Error + Send + Sync.

§Examples
use std::error::Error;
use std::fmt;

#[derive(Debug)]
struct AnError;

impl fmt::Display for AnError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "An error")
    }
}

impl Error for AnError {}

unsafe impl Send for AnError {}

unsafe impl Sync for AnError {}

let an_error = AnError;
assert!(0 == size_of_val(&an_error));
let a_boxed_error = Box::<dyn Error + Send + Sync>::from(an_error);
assert!(
    size_of::<Box<dyn Error + Send + Sync>>() == size_of_val(&a_boxed_error))
Source§

impl From<Error> for Box<dyn Error>

Source§

fn from(error: Error) -> Box<dyn Error>

Converts to this type from the input type.
Source§

impl From<Error> for Box<dyn Error + Send>

Source§

fn from(error: Error) -> Box<dyn Error + Send>

Converts to this type from the input type.
Source§

impl From<Error> for Box<dyn Error + Send + Sync>

Source§

fn from(error: Error) -> Box<dyn Error + Send + Sync>

Converts to this type from the input type.
1.20.0 · Source§

impl From<OsString> for Box<OsStr>

Source§

fn from(s: OsString) -> Box<OsStr>

Converts an OsString into a Box<OsStr> without copying or allocating.

Source§

impl From<PanicMessage> for Box<dyn Any + Send>

Source§

fn from(val: PanicMessage) -> Box<dyn Any + Send>

Converts to this type from the input type.
1.20.0 · Source§

impl From<PathBuf> for Box<Path>

Source§

fn from(p: PathBuf) -> Box<Path>

Converts a PathBuf into a Box<Path>.

This conversion currently should not allocate memory, but this behavior is not guaranteed on all platforms or in all future versions.

1.6.0 · Source§

impl<'a> From<String> for Box<dyn Error + 'a>

Source§

fn from(str_err: String) -> Box<dyn Error + 'a>

Converts a String into a box of dyn Error.

§Examples
use std::error::Error;

let a_string_error = "a string error".to_string();
let a_boxed_error = Box::<dyn Error>::from(a_string_error);
assert!(size_of::<Box<dyn Error>>() == size_of_val(&a_boxed_error))
1.0.0 · Source§

impl<'a> From<String> for Box<dyn Error + Send + Sync + 'a>

Source§

fn from(err: String) -> Box<dyn Error + Send + Sync + 'a>

Converts a String into a box of dyn Error + Send + Sync.

§Examples
use std::error::Error;

let a_string_error = "a string error".to_string();
let a_boxed_error = Box::<dyn Error + Send + Sync>::from(a_string_error);
assert!(
    size_of::<Box<dyn Error + Send + Sync>>() == size_of_val(&a_boxed_error))
1.20.0 · Source§

impl From<String> for Box<str>

Source§

fn from(s: String) -> Box<str>

Converts the given String to a boxed str slice that is owned.

§Examples
let s1: String = String::from("hello world");
let s2: Box<str> = Box::from(s1);
let s3: String = String::from(s2);

assert_eq!("hello world", s3)
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>

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

§Examples
let x = 5;
let boxed = Box::new(5);

assert_eq!(Box::from(x), boxed);
Source§

impl<T, const N: usize> From<UniqueEntityEquivalentArray<T, N>> for Box<UniqueEntityEquivalentSlice<T>>

Source§

fn from( value: UniqueEntityEquivalentArray<T, N>, ) -> Box<UniqueEntityEquivalentSlice<T>>

Converts to this type from the input type.
Source§

impl<T> From<UniqueEntityEquivalentVec<T>> for Box<[T]>

Source§

fn from(value: UniqueEntityEquivalentVec<T>) -> Box<[T]>

Converts to this type from the input type.
Source§

impl<T> From<UniqueEntityEquivalentVec<T>> for Box<UniqueEntityEquivalentSlice<T>>

Source§

fn from( value: UniqueEntityEquivalentVec<T>, ) -> Box<UniqueEntityEquivalentSlice<T>>

Converts to this type from the input type.
1.20.0 · Source§

impl<T, A> From<Vec<T, A>> for Box<[T], A>
where A: Allocator,

Source§

fn from(v: Vec<T, A>) -> Box<[T], A>

Converts a vector into a boxed slice.

Before doing the conversion, this method discards excess capacity like Vec::shrink_to_fit.

§Examples
assert_eq!(Box::from(vec![1, 2, 3]), vec![1, 2, 3].into_boxed_slice());

Any excess capacity is removed:

let mut vec = Vec::with_capacity(10);
vec.extend([1, 2, 3]);

assert_eq!(Box::from(vec), vec![1, 2, 3].into_boxed_slice());
Source§

impl<T> FromEntitySetIterator<T> for Box<UniqueEntityEquivalentSlice<T>>

Source§

fn from_entity_set_iter<I>(iter: I) -> Box<UniqueEntityEquivalentSlice<T>>
where I: EntitySet<Item = T>,

Creates a value from an EntitySetIterator.
1.80.0 · Source§

impl<'a> FromIterator<&'a char> for Box<str>

Source§

fn from_iter<T>(iter: T) -> Box<str>
where T: IntoIterator<Item = &'a char>,

Creates a value from an iterator. Read more
1.80.0 · Source§

impl<'a> FromIterator<&'a str> for Box<str>

Source§

fn from_iter<T>(iter: T) -> Box<str>
where T: IntoIterator<Item = &'a str>,

Creates a value from an iterator. Read more
Source§

impl FromIterator<Box<dyn PartialReflect>> for DynamicArray

Source§

fn from_iter<I>(values: I) -> DynamicArray
where I: IntoIterator<Item = Box<dyn PartialReflect>>,

Creates a value from an iterator. Read more
Source§

impl FromIterator<Box<dyn PartialReflect>> for DynamicList

Source§

fn from_iter<I>(values: I) -> DynamicList
where I: IntoIterator<Item = Box<dyn PartialReflect>>,

Creates a value from an iterator. Read more
Source§

impl FromIterator<Box<dyn PartialReflect>> for DynamicSet

Source§

fn from_iter<I>(values: I) -> DynamicSet
where I: IntoIterator<Item = Box<dyn PartialReflect>>,

Creates a value from an iterator. Read more
Source§

impl FromIterator<Box<dyn PartialReflect>> for DynamicTuple

Source§

fn from_iter<I>(fields: I) -> DynamicTuple
where I: IntoIterator<Item = Box<dyn PartialReflect>>,

Creates a value from an iterator. Read more
Source§

impl FromIterator<Box<dyn PartialReflect>> for DynamicTupleStruct

Source§

fn from_iter<I>(fields: I) -> DynamicTupleStruct
where I: IntoIterator<Item = Box<dyn PartialReflect>>,

Creates a value from an iterator. Read more
1.80.0 · Source§

impl<A> FromIterator<Box<str, A>> for Box<str>
where A: Allocator,

Source§

fn from_iter<T>(iter: T) -> Box<str>
where T: IntoIterator<Item = Box<str, A>>,

Creates a value from an iterator. Read more
1.45.0 · Source§

impl<A> FromIterator<Box<str, A>> for String
where A: Allocator,

Source§

fn from_iter<I>(iter: I) -> String
where I: IntoIterator<Item = Box<str, A>>,

Creates a value from an iterator. Read more
1.80.0 · Source§

impl<'a> FromIterator<Cow<'a, str>> for Box<str>

Source§

fn from_iter<T>(iter: T) -> Box<str>
where T: IntoIterator<Item = Cow<'a, str>>,

Creates a value from an iterator. Read more
1.32.0 · Source§

impl<I> FromIterator<I> for Box<[I]>

Source§

fn from_iter<T>(iter: T) -> Box<[I]>
where T: IntoIterator<Item = I>,

Creates a value from an iterator. Read more
1.80.0 · Source§

impl FromIterator<String> for Box<str>

Source§

fn from_iter<T>(iter: T) -> Box<str>
where T: IntoIterator<Item = String>,

Creates a value from an iterator. Read more
Source§

impl<T> FromIterator<T> for Box<UniqueEntityEquivalentSlice<T>>

Source§

fn from_iter<I>(iter: I) -> Box<UniqueEntityEquivalentSlice<T>>
where I: IntoIterator<Item = T>,

Creates a value from an iterator. Read more
1.80.0 · Source§

impl FromIterator<char> for Box<str>

Source§

fn from_iter<T>(iter: T) -> Box<str>
where T: IntoIterator<Item = char>,

Creates a value from an iterator. Read more
Source§

impl<F> FusedFuture for Box<F>
where F: FusedFuture + Unpin + ?Sized,

Source§

fn is_terminated(&self) -> bool

Returns true if the underlying future should no longer be polled.
Source§

impl<S> FusedStream for Box<S>
where S: FusedStream + Unpin + ?Sized,

Source§

fn is_terminated(&self) -> bool

Returns true if the stream should no longer be polled.
1.36.0 · Source§

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

Source§

type Output = <F as Future>::Output

The type of value produced on completion.
Source§

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

Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
Source§

impl<H> HasDisplayHandle for Box<H>
where H: HasDisplayHandle + ?Sized,

Source§

fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>

Get a handle to the display controller of the windowing system.
Source§

impl<H> HasWindowHandle for Box<H>
where H: HasWindowHandle + ?Sized,

Source§

fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>

Get a handle to the window.
1.0.0 · Source§

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

Source§

fn hash<H>(&self, state: &mut H)
where 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 H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
1.22.0 · Source§

impl<T, A> Hasher for Box<T, A>
where T: Hasher + ?Sized, 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
Source§

impl<T> ImageDecoder for Box<T>
where T: ImageDecoder + ?Sized,

Source§

fn dimensions(&self) -> (u32, u32)

Returns a tuple containing the width and height of the image
Source§

fn color_type(&self) -> ColorType

Returns the color type of the image data produced by this decoder
Source§

fn original_color_type(&self) -> ExtendedColorType

Returns the color type of the image file before decoding
Source§

fn icc_profile(&mut self) -> Result<Option<Vec<u8>>, ImageError>

Returns the ICC color profile embedded in the image, or Ok(None) if the image does not have one. Read more
Source§

fn exif_metadata(&mut self) -> Result<Option<Vec<u8>>, ImageError>

Returns the raw Exif chunk, if it is present. A third-party crate such as kamadak-exif is required to actually parse it. Read more
Source§

fn total_bytes(&self) -> u64

Returns the total number of bytes in the decoded image. Read more
Source§

fn read_image(self, buf: &mut [u8]) -> Result<(), ImageError>
where Box<T>: Sized,

Returns all the bytes in the image. Read more
Source§

fn read_image_boxed(self: Box<Box<T>>, buf: &mut [u8]) -> Result<(), ImageError>

Use read_image instead; this method is an implementation detail needed so the trait can be object safe. Read more
Source§

fn set_limits(&mut self, limits: Limits) -> Result<(), ImageError>

Set the decoder to have the specified limits. See Limits for the different kinds of limits that is possible to set. Read more
Source§

fn orientation(&mut self) -> Result<Orientation, ImageError>

Returns the orientation of the image. Read more
1.80.0 · Source§

impl<'a, I, A> IntoIterator for &'a Box<[I], A>
where A: Allocator,

Source§

type IntoIter = Iter<'a, I>

Which kind of iterator are we turning this into?
Source§

type Item = &'a I

The type of the elements being iterated over.
Source§

fn into_iter(self) -> Iter<'a, I>

Creates an iterator from a value. Read more
Source§

impl<'a, T> IntoIterator for &'a Box<UniqueEntityEquivalentSlice<T>>

Source§

type Item = &'a T

The type of the elements being iterated over.
Source§

type IntoIter = UniqueEntityIter<Iter<'a, T>>

Which kind of iterator are we turning this into?
Source§

fn into_iter( self, ) -> <&'a Box<UniqueEntityEquivalentSlice<T>> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
1.80.0 · Source§

impl<'a, I, A> IntoIterator for &'a mut Box<[I], A>
where A: Allocator,

Source§

type IntoIter = IterMut<'a, I>

Which kind of iterator are we turning this into?
Source§

type Item = &'a mut I

The type of the elements being iterated over.
Source§

fn into_iter(self) -> IterMut<'a, I>

Creates an iterator from a value. Read more
1.80.0 · Source§

impl<I, A> IntoIterator for Box<[I], A>
where A: Allocator,

Source§

type IntoIter = IntoIter<I, A>

Which kind of iterator are we turning this into?
Source§

type Item = I

The type of the elements being iterated over.
Source§

fn into_iter(self) -> IntoIter<I, A>

Creates an iterator from a value. Read more
Source§

impl<K, V> IntoIterator for Box<Slice<K, V>>

Source§

type IntoIter = IntoIter<K, V>

Which kind of iterator are we turning this into?
Source§

type Item = (K, V)

The type of the elements being iterated over.
Source§

fn into_iter(self) -> <Box<Slice<K, V>> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
Source§

impl<T> IntoIterator for Box<Slice<T>>

Source§

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?
Source§

type Item = T

The type of the elements being iterated over.
Source§

fn into_iter(self) -> <Box<Slice<T>> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
Source§

impl<V> IntoIterator for Box<Slice<V>>

Source§

type Item = (Entity, V)

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<V>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> <Box<Slice<V>> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
Source§

impl IntoIterator for Box<Slice>

Source§

type IntoIter = IntoIter

Which kind of iterator are we turning this into?
Source§

type Item = Entity

The type of the elements being iterated over.
Source§

fn into_iter(self) -> <Box<Slice> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
Source§

impl<T> IntoIterator for Box<UniqueEntityEquivalentSlice<T>>

Source§

type Item = T

The type of the elements being iterated over.
Source§

type IntoIter = UniqueEntityIter<IntoIter<T>>

Which kind of iterator are we turning this into?
Source§

fn into_iter( self, ) -> <Box<UniqueEntityEquivalentSlice<T>> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
Source§

impl<F, Marker> IntoScheduleConfigs<Box<dyn System<In = (), Out = Result<(), BevyError>>>, (<fn() -> ! as FnRet>::Output, Marker)> for F
where F: IntoSystem<(), <fn() -> ! as FnRet>::Output, Marker>,

Source§

fn into_configs( self, ) -> ScheduleConfigs<Box<dyn System<In = (), Out = Result<(), BevyError>>>>

Convert into a ScheduleConfigs.
Source§

fn in_set(self, set: impl SystemSet) -> ScheduleConfigs<T>

Add these systems to the provided set.
Source§

fn before<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Runs before all systems in set. If self has any systems that produce Commands or other Deferred operations, all systems in set will see their effect. Read more
Source§

fn after<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Run after all systems in set. If set has any systems that produce Commands or other Deferred operations, all systems in self will see their effect. Read more
Source§

fn before_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> ScheduleConfigs<T>

Run before all systems in set. Read more
Source§

fn after_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> ScheduleConfigs<T>

Run after all systems in set. Read more
Source§

fn distributive_run_if<M>( self, condition: impl Condition<M> + Clone, ) -> ScheduleConfigs<T>

Add a run condition to each contained system. Read more
Source§

fn run_if<M>(self, condition: impl Condition<M>) -> ScheduleConfigs<T>

Run the systems only if the Condition is true. Read more
Source§

fn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Suppress warnings and errors that would result from these systems having ambiguities (conflicting access but indeterminate order) with systems in set.
Source§

fn ambiguous_with_all(self) -> ScheduleConfigs<T>

Suppress warnings and errors that would result from these systems having ambiguities (conflicting access but indeterminate order) with any other system.
Source§

fn chain(self) -> ScheduleConfigs<T>

Treat this collection as a sequence of systems. Read more
Source§

fn chain_ignore_deferred(self) -> ScheduleConfigs<T>

Treat this collection as a sequence of systems. Read more
Source§

impl IntoScheduleConfigs<Box<dyn System<In = (), Out = Result<(), BevyError>>>, ()> for Box<dyn System<In = (), Out = Result<(), BevyError>>>

Source§

fn into_configs( self, ) -> ScheduleConfigs<Box<dyn System<In = (), Out = Result<(), BevyError>>>>

Convert into a ScheduleConfigs.
Source§

fn in_set(self, set: impl SystemSet) -> ScheduleConfigs<T>

Add these systems to the provided set.
Source§

fn before<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Runs before all systems in set. If self has any systems that produce Commands or other Deferred operations, all systems in set will see their effect. Read more
Source§

fn after<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Run after all systems in set. If set has any systems that produce Commands or other Deferred operations, all systems in self will see their effect. Read more
Source§

fn before_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> ScheduleConfigs<T>

Run before all systems in set. Read more
Source§

fn after_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> ScheduleConfigs<T>

Run after all systems in set. Read more
Source§

fn distributive_run_if<M>( self, condition: impl Condition<M> + Clone, ) -> ScheduleConfigs<T>

Add a run condition to each contained system. Read more
Source§

fn run_if<M>(self, condition: impl Condition<M>) -> ScheduleConfigs<T>

Run the systems only if the Condition is true. Read more
Source§

fn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Suppress warnings and errors that would result from these systems having ambiguities (conflicting access but indeterminate order) with systems in set.
Source§

fn ambiguous_with_all(self) -> ScheduleConfigs<T>

Suppress warnings and errors that would result from these systems having ambiguities (conflicting access but indeterminate order) with any other system.
Source§

fn chain(self) -> ScheduleConfigs<T>

Treat this collection as a sequence of systems. Read more
Source§

fn chain_ignore_deferred(self) -> ScheduleConfigs<T>

Treat this collection as a sequence of systems. Read more
1.0.0 · Source§

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

Source§

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>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where 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 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 Self: Sized,

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

fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
where Self: Sized, 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 Self: Sized, U: IntoIterator,

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

fn intersperse(self, separator: Self::Item) -> Intersperse<Self>
where Self: Sized, Self::Item: Clone,

🔬This is a nightly-only experimental API. (iter_intersperse)
Creates a new iterator which places a copy of separator between adjacent items of the original iterator. Read more
Source§

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

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

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

Takes a closure and creates an iterator which calls that closure on each element. Read more
1.21.0 · Source§

fn for_each<F>(self, f: F)
where Self: Sized, 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 Self: Sized, P: FnMut(&Self::Item) -> bool,

Creates an iterator which uses a closure to determine if an element should be yielded. Read more
1.0.0 · Source§

fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
where Self: Sized, 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 Self: Sized,

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

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

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

fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
where Self: Sized, 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 Self: Sized, 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 Self: Sized, 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 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 Self: Sized,

Creates an iterator that yields the first n elements, or fewer if 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 Self: Sized, F: FnMut(&mut St, Self::Item) -> Option<B>,

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

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

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

fn flatten(self) -> Flatten<Self>
where Self: Sized, Self::Item: IntoIterator,

Creates an iterator that flattens nested structure. Read more
Source§

fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
where Self: Sized, 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 self and returns an iterator over the outputs of f. Like slice::windows(), the windows during mapping overlap as well. Read more
1.0.0 · Source§

fn fuse(self) -> Fuse<Self>
where 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 Self: Sized, 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 Self: Sized,

Creates a “by reference” adapter for this instance of Iterator. Read more
1.0.0 · Source§

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

Transforms an iterator into a collection. Read more
Source§

fn try_collect<B>( &mut self, ) -> <<Self::Item as Try>::Residual as Residual<B>>::TryType
where Self: Sized, Self::Item: Try, <Self::Item as Try>::Residual: Residual<B>, B: FromIterator<<Self::Item as Try>::Output>,

🔬This is a nightly-only experimental API. (iterator_try_collect)
Fallibly transforms an iterator into a collection, short circuiting if a failure is encountered. Read more
Source§

fn collect_into<E>(self, collection: &mut E) -> &mut E
where E: Extend<Self::Item>, 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 Self: Sized, B: Default + Extend<Self::Item>, F: FnMut(&Self::Item) -> bool,

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

fn partition_in_place<'a, T, P>(self, predicate: P) -> usize
where T: 'a, Self: Sized + DoubleEndedIterator<Item = &'a mut T>, P: FnMut(&T) -> bool,

🔬This is a nightly-only experimental API. (iter_partition_in_place)
Reorders the elements of this iterator in-place according to the given predicate, such that all those that return true precede all those that return false. Returns the number of true elements found. Read more
Source§

fn is_partitioned<P>(self, predicate: P) -> bool
where Self: Sized, 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, such 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 Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Output = B>,

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

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

An iterator method that applies a fallible function to each item in the iterator, 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 Self: Sized, F: FnMut(B, Self::Item) -> B,

Folds every element into an accumulator by applying an operation, returning the final result. Read more
1.51.0 · Source§

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

Reduces the elements to a single one, by repeatedly applying a reducing operation. Read more
Source§

fn try_reduce<R>( &mut self, f: impl FnMut(Self::Item, Self::Item) -> R, ) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
where Self: Sized, R: Try<Output = Self::Item>, <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 closure 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 Self: Sized, 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 Self: Sized, 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 Self: Sized, 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 Self: Sized, F: FnMut(Self::Item) -> Option<B>,

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

fn try_find<R>( &mut self, f: impl FnMut(&Self::Item) -> R, ) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
where Self: Sized, R: Try<Output = bool>, <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 the first true result or the first error. Read more
1.0.0 · Source§

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

Searches for an element in an iterator, returning its index. Read more
1.0.0 · Source§

fn rposition<P>(&mut self, predicate: P) -> Option<usize>
where P: FnMut(Self::Item) -> bool, Self: Sized + ExactSizeIterator + DoubleEndedIterator,

Searches for an element in an iterator from the right, returning its index. Read more
1.0.0 · Source§

fn max(self) -> Option<Self::Item>
where Self: Sized, Self::Item: Ord,

Returns the maximum element of an iterator. Read more
1.0.0 · Source§

fn min(self) -> Option<Self::Item>
where Self: Sized, Self::Item: Ord,

Returns the minimum element of an iterator. Read more
1.6.0 · Source§

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

Returns the element that gives the maximum value from the specified function. Read more
1.15.0 · Source§

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

Returns the element that gives the maximum value with respect to the specified comparison function. Read more
1.6.0 · Source§

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

Returns the element that gives the minimum value from the specified function. Read more
1.15.0 · Source§

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

Returns the element that gives the minimum value with respect to the specified comparison function. Read more
1.0.0 · Source§

fn rev(self) -> Rev<Self>
where Self: Sized + DoubleEndedIterator,

Reverses an iterator’s direction. Read more
1.0.0 · Source§

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
where FromA: Default + Extend<A>, FromB: Default + Extend<B>, 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 T: 'a + Copy, 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 T: 'a + Clone, Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
1.0.0 · Source§

fn cycle(self) -> Cycle<Self>
where Self: Sized + Clone,

Repeats an iterator endlessly. Read more
Source§

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>
where 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 Self: Sized, S: Sum<Self::Item>,

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

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

Iterates over the entire iterator, multiplying all the elements Read more
1.5.0 · Source§

fn cmp<I>(self, other: I) -> Ordering
where I: IntoIterator<Item = Self::Item>, Self::Item: Ord, Self: Sized,

Lexicographically compares the elements of this Iterator with those of another. Read more
Source§

fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
where Self: Sized, I: IntoIterator, 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 of another with respect to the specified comparison function. Read more
1.5.0 · Source§

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

Lexicographically compares the PartialOrd elements of this Iterator with those of another. The comparison works like short-circuit evaluation, returning a result without comparing the remaining elements. As 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 Self: Sized, I: IntoIterator, 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 of another with respect to the specified comparison function. Read more
1.5.0 · Source§

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

Determines if the elements of this Iterator are equal to those of another. Read more
Source§

fn eq_by<I, F>(self, other: I, eq: F) -> bool
where Self: Sized, I: IntoIterator, 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 another with respect to the specified equality function. Read more
1.5.0 · Source§

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

Determines if the elements of this Iterator are not equal to those of another. Read more
1.5.0 · Source§

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

Determines if the elements of this Iterator are lexicographically less than those of another. Read more
1.5.0 · Source§

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

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

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

Determines if the elements of this Iterator are lexicographically greater than those of another. Read more
1.5.0 · Source§

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

Determines if the elements of this Iterator are lexicographically greater than or equal to those of another. Read more
1.82.0 · Source§

fn is_sorted(self) -> bool
where Self: Sized, Self::Item: PartialOrd,

Checks if the elements of this iterator are sorted. Read more
1.82.0 · Source§

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

Checks if the elements of this iterator are sorted using the given comparator function. Read more
1.82.0 · Source§

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

Checks if the elements of this iterator are sorted using the given key extraction function. Read more
Source§

impl<L, S> Layer<S> for Box<L>
where L: Layer<S>, S: Subscriber,

Source§

fn on_register_dispatch(&self, subscriber: &Dispatch)

Performs late initialization when installing this layer as a Subscriber. Read more
Source§

fn on_layer(&mut self, subscriber: &mut S)

Performs late initialization when attaching a Layer to a Subscriber. Read more
Source§

fn on_new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)

Notifies this layer that a new span was constructed with the given Attributes and Id.
Source§

fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

Registers a new callsite with this layer, returning whether or not the layer is interested in being notified about the callsite, similarly to Subscriber::register_callsite. Read more
Source§

fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool

Returns true if this layer is interested in a span or event with the given metadata in the current Context, similarly to Subscriber::enabled. Read more
Source§

fn on_record(&self, span: &Id, values: &Record<'_>, ctx: Context<'_, S>)

Notifies this layer that a span with the given Id recorded the given values.
Source§

fn on_follows_from(&self, span: &Id, follows: &Id, ctx: Context<'_, S>)

Notifies this layer that a span with the ID span recorded that it follows from the span with the ID follows.
Source§

fn event_enabled(&self, event: &Event<'_>, ctx: Context<'_, S>) -> bool

Called before on_event, to determine if on_event should be called. Read more
Source§

fn on_event(&self, event: &Event<'_>, ctx: Context<'_, S>)

Notifies this layer that an event has occurred.
Source§

fn on_enter(&self, id: &Id, ctx: Context<'_, S>)

Notifies this layer that a span with the given ID was entered.
Source§

fn on_exit(&self, id: &Id, ctx: Context<'_, S>)

Notifies this layer that the span with the given ID was exited.
Source§

fn on_close(&self, id: Id, ctx: Context<'_, S>)

Notifies this layer that the span with the given ID has been closed.
Source§

fn on_id_change(&self, old: &Id, new: &Id, ctx: Context<'_, S>)

Notifies this layer that a span ID has been cloned, and that the subscriber returned a different ID.
Source§

fn and_then<L>(self, layer: L) -> Layered<L, Self, S>
where L: Layer<S>, Self: Sized,

Composes this layer around the given Layer, returning a Layered struct implementing Layer. Read more
Source§

fn with_subscriber(self, inner: S) -> Layered<Self, S>
where Self: Sized,

Composes this Layer with the given Subscriber, returning a Layered struct that implements Subscriber. Read more
Source§

fn with_filter<F>(self, filter: F) -> Filtered<Self, F, S>
where Self: Sized, F: Filter<S>,

Combines self with a Filter, returning a Filtered layer. Read more
Source§

fn boxed(self) -> Box<dyn Layer<S> + Send + Sync>
where Self: Sized + Layer<S> + Send + Sync + 'static, S: Subscriber,

Erases the type of this Layer, returning a Boxed dyn Layer trait object. Read more
Source§

impl<S> Layer<S> for Box<dyn Layer<S> + Send + Sync>
where S: Subscriber,

Source§

fn on_register_dispatch(&self, subscriber: &Dispatch)

Performs late initialization when installing this layer as a Subscriber. Read more
Source§

fn on_layer(&mut self, subscriber: &mut S)

Performs late initialization when attaching a Layer to a Subscriber. Read more
Source§

fn on_new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)

Notifies this layer that a new span was constructed with the given Attributes and Id.
Source§

fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

Registers a new callsite with this layer, returning whether or not the layer is interested in being notified about the callsite, similarly to Subscriber::register_callsite. Read more
Source§

fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool

Returns true if this layer is interested in a span or event with the given metadata in the current Context, similarly to Subscriber::enabled. Read more
Source§

fn on_record(&self, span: &Id, values: &Record<'_>, ctx: Context<'_, S>)

Notifies this layer that a span with the given Id recorded the given values.
Source§

fn on_follows_from(&self, span: &Id, follows: &Id, ctx: Context<'_, S>)

Notifies this layer that a span with the ID span recorded that it follows from the span with the ID follows.
Source§

fn event_enabled(&self, event: &Event<'_>, ctx: Context<'_, S>) -> bool

Called before on_event, to determine if on_event should be called. Read more
Source§

fn on_event(&self, event: &Event<'_>, ctx: Context<'_, S>)

Notifies this layer that an event has occurred.
Source§

fn on_enter(&self, id: &Id, ctx: Context<'_, S>)

Notifies this layer that a span with the given ID was entered.
Source§

fn on_exit(&self, id: &Id, ctx: Context<'_, S>)

Notifies this layer that the span with the given ID was exited.
Source§

fn on_close(&self, id: Id, ctx: Context<'_, S>)

Notifies this layer that the span with the given ID has been closed.
Source§

fn on_id_change(&self, old: &Id, new: &Id, ctx: Context<'_, S>)

Notifies this layer that a span ID has been cloned, and that the subscriber returned a different ID.
Source§

fn and_then<L>(self, layer: L) -> Layered<L, Self, S>
where L: Layer<S>, Self: Sized,

Composes this layer around the given Layer, returning a Layered struct implementing Layer. Read more
Source§

fn with_subscriber(self, inner: S) -> Layered<Self, S>
where Self: Sized,

Composes this Layer with the given Subscriber, returning a Layered struct that implements Subscriber. Read more
Source§

fn with_filter<F>(self, filter: F) -> Filtered<Self, F, S>
where Self: Sized, F: Filter<S>,

Combines self with a Filter, returning a Filtered layer. Read more
Source§

fn boxed(self) -> Box<dyn Layer<S> + Send + Sync>
where Self: Sized + Layer<S> + Send + Sync + 'static, S: Subscriber,

Erases the type of this Layer, returning a Boxed dyn Layer trait object. Read more
Source§

impl<Sp> LocalSpawn for Box<Sp>
where Sp: LocalSpawn + ?Sized,

Source§

fn spawn_local_obj( &self, future: LocalFutureObj<'static, ()>, ) -> Result<(), SpawnError>

Spawns a future that will be run to completion. Read more
Source§

fn status_local(&self) -> Result<(), SpawnError>

Determines whether the executor is able to spawn new tasks. Read more
Source§

impl<T> Log for Box<T>
where T: Log + ?Sized,

Source§

fn enabled(&self, metadata: &Metadata<'_>) -> bool

Determines if a log message with the specified metadata would be logged. Read more
Source§

fn log(&self, record: &Record<'_>)

Logs the Record. Read more
Source§

fn flush(&self)

Flushes any buffered records. Read more
Source§

impl<T> Mangler for Box<T>
where T: Mangler + ?Sized,

Source§

fn mangle(&self, path: &ModulePath, item: &str) -> String

Turn an import path and item name into a mangled WGSL identifier.
Source§

fn unmangle(&self, mangled: &str) -> Option<(ModulePath, String)>

Reverse the Mangler::mangle operation. Implementing this is optional.
Source§

fn mangle_types( &self, item: &str, variant: u32, types: &[TypeExpression], ) -> String

Used for generics. Is experimental. Implementing is optional.
1.0.0 · Source§

impl<T, A> Ord for Box<T, A>
where T: Ord + ?Sized, 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 Self: Sized,

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

fn min(self, other: Self) -> Self
where 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 Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T> Parse for Box<T>
where T: Parse,

Source§

fn parse(input: &ParseBuffer<'_>) -> Result<Box<T>, Error>

Source§

impl<I, O, E> Parser<I, O, E> for Box<dyn Parser<I, O, E> + '_>

Source§

fn parse_next(&mut self, i: &mut I) -> Result<O, E>

Take tokens from the Stream, turning it into the output Read more
Source§

fn parse( &mut self, input: I, ) -> Result<O, ParseError<I, <E as ParserError<I>>::Inner>>
where Self: Sized, I: Stream + StreamIsPartial, E: ParserError<I>, <E as ParserError<I>>::Inner: ParserError<I>,

Parse all of input, generating O from it
Source§

fn parse_peek(&mut self, input: I) -> Result<(I, O), E>

Take tokens from the Stream, turning it into the output Read more
Source§

fn by_ref(&mut self) -> ByRef<'_, Self, I, O, E>
where Self: Sized,

Treat &mut Self as a parser Read more
Source§

fn value<O2>(self, val: O2) -> Value<Self, I, O, O2, E>
where Self: Sized, O2: Clone,

Produce the provided value Read more
Source§

fn default_value<O2>(self) -> DefaultValue<Self, I, O, O2, E>
where Self: Sized, O2: Default,

Produce a type’s default value Read more
Source§

fn void(self) -> Void<Self, I, O, E>
where Self: Sized,

Discards the output of the Parser Read more
Source§

fn output_into<O2>(self) -> OutputInto<Self, I, O, O2, E>
where Self: Sized, O: Into<O2>,

Convert the parser’s output to another type using std::convert::From Read more
Source§

fn take(self) -> Take<Self, I, O, E>
where Self: Sized, I: Stream,

Produce the consumed input as produced value. Read more
Source§

fn with_taken(self) -> WithTaken<Self, I, O, E>
where Self: Sized, I: Stream,

Produce the consumed input with the output Read more
Source§

fn span(self) -> Span<Self, I, O, E>
where Self: Sized, I: Stream + Location,

Produce the location of the consumed input as produced value. Read more
Source§

fn with_span(self) -> WithSpan<Self, I, O, E>
where Self: Sized, I: Stream + Location,

Produce the location of consumed input with the output Read more
Source§

fn map<G, O2>(self, map: G) -> Map<Self, G, I, O, O2, E>
where G: FnMut(O) -> O2, Self: Sized,

Maps a function over the output of a parser Read more
Source§

fn try_map<G, O2, E2>(self, map: G) -> TryMap<Self, G, I, O, O2, E, E2>
where Self: Sized, G: FnMut(O) -> Result<O2, E2>, I: Stream, E: FromExternalError<I, E2> + ParserError<I>,

Applies a function returning a Result over the output of a parser. Read more
Source§

fn verify_map<G, O2>(self, map: G) -> VerifyMap<Self, G, I, O, O2, E>
where Self: Sized, G: FnMut(O) -> Option<O2>, I: Stream, E: ParserError<I>,

Source§

fn flat_map<G, H, O2>(self, map: G) -> FlatMap<Self, G, H, I, O, O2, E>
where Self: Sized, G: FnMut(O) -> H, H: Parser<I, O2, E>,

Creates a parser from the output of this one Read more
Source§

fn and_then<G, O2>(self, inner: G) -> AndThen<Self, G, I, O, O2, E>
where Self: Sized, G: Parser<O, O2, E>, O: StreamIsPartial, I: Stream,

Applies a second parser over the output of the first one Read more
Source§

fn parse_to<O2>(self) -> ParseTo<Self, I, O, O2, E>
where Self: Sized, I: Stream, O: ParseSlice<O2>, E: ParserError<I>,

Apply std::str::FromStr to the output of the parser Read more
Source§

fn verify<G, O2>(self, filter: G) -> Verify<Self, G, I, O, O2, E>
where Self: Sized, G: FnMut(&O2) -> bool, I: Stream, O: Borrow<O2>, E: ParserError<I>, O2: ?Sized,

Returns the output of the child parser if it satisfies a verification function. Read more
Source§

fn context<C>(self, context: C) -> Context<Self, I, O, E, C>
where Self: Sized, I: Stream, E: AddContext<I, C> + ParserError<I>, C: Clone + Debug,

If parsing fails, add context to the error Read more
Source§

fn context_with<F, C, FI>( self, context: F, ) -> ContextWith<Self, I, O, E, F, C, FI>
where Self: Sized, I: Stream, E: AddContext<I, C> + ParserError<I>, F: Fn() -> FI + Clone, C: Debug, FI: Iterator<Item = C>,

If parsing fails, dynamically add context to the error Read more
Source§

fn map_err<G, E2>(self, map: G) -> MapErr<Self, G, I, O, E, E2>
where G: FnMut(E) -> E2, Self: Sized,

Maps a function over the error of a parser Read more
Source§

fn complete_err(self) -> CompleteErr<Self, I, O, E>
where Self: Sized,

Source§

fn err_into<E2>(self) -> ErrInto<Self, I, O, E, E2>
where Self: Sized, E: Into<E2>,

Convert the parser’s error to another type using std::convert::From
1.0.0 · Source§

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

Source§

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

Tests for self and other values to be equal, and is used by ==.
Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · Source§

impl<T, A> PartialOrd for Box<T, A>
where T: PartialOrd + ?Sized, 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

Tests less than (for self and other) and is used by the < operator. Read more
Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Source§

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

Formats the value using the given formatter. Read more
1.0.0 · Source§

impl<R> Read for Box<R>
where 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 how 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 implementation. Read more
Source§

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

Reads 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>

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

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

Reads 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)
Reads the exact number of bytes required to fill cursor. Read more
1.0.0 · Source§

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

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

fn bytes(self) -> Bytes<Self>
where 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 R: Read, 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 Self: Sized,

Creates an adapter which will read at most limit bytes from it. Read more
Source§

impl<T> Read for Box<T>
where T: Read + Unpin + ?Sized,

Source§

fn poll_read( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, buf: ReadBufCursor<'_>, ) -> Poll<Result<(), Error>>

Attempts to read bytes into the buf. Read more
Source§

impl<T> ReadFrom for Box<T>
where T: ReadFrom + ?Sized,

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadHalf for Box<dyn ReadHalf>

Source§

fn can_pass_unix_fd(&self) -> bool

Return whether passing file descriptors is supported. Read more
Source§

fn receive_message<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, seq: u64, already_received_bytes: &'life1 mut Vec<u8>, already_received_fds: &'life2 mut Vec<OwnedFd>, ) -> Pin<Box<dyn Future<Output = Result<Message, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Box<dyn ReadHalf>: 'async_trait,

Receive a message on the socket. Read more
Source§

fn recvmsg<'life0, 'life1, 'async_trait>( &'life0 mut self, buf: &'life1 mut [u8], ) -> Pin<Box<dyn Future<Output = Result<(usize, Vec<OwnedFd>), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Box<dyn ReadHalf>: 'async_trait,

Attempt to receive bytes from the socket. Read more
Source§

fn peer_credentials<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<ConnectionCredentials, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Box<dyn ReadHalf>: 'async_trait,

The peer credentials.
Source§

fn auth_mechanism(&self) -> AuthMechanism

The authentication mechanism to use for this socket on the target OS. Read more
Source§

impl Reader for Box<dyn Reader + '_>

Source§

fn read_to_end<'a>( &'a mut self, buf: &'a mut Vec<u8>, ) -> StackFuture<'a, Result<usize, Error>, bevy_asset::::io::{impl#7}::read_to_end::{constant#0}>

Reads the entire contents of this reader and appends them to a vec. Read more
Source§

impl<C> RequestConnection for Box<C>

Source§

type Buf = <C as RequestConnection>::Buf

Type used as buffer to store raw replies or events before they are parsed.
Source§

fn send_request_with_reply<R>( &self, bufs: &[IoSlice<'_>], fds: Vec<OwnedFd>, ) -> Result<Cookie<'_, Box<C>, R>, ConnectionError>
where R: TryParse,

Send a request with a reply to the server. Read more
Source§

fn send_trait_request_with_reply<R>( &self, request: R, ) -> Result<Cookie<'_, Box<C>, <R as ReplyRequest>::Reply>, ConnectionError>
where R: ReplyRequest,

Send a request with a reply to the server. Read more
Source§

fn send_request_with_reply_with_fds<R>( &self, bufs: &[IoSlice<'_>], fds: Vec<OwnedFd>, ) -> Result<CookieWithFds<'_, Box<C>, R>, ConnectionError>
where R: TryParseFd,

Send a request with a reply containing file descriptors to the server. Read more
Source§

fn send_trait_request_with_reply_with_fds<R>( &self, request: R, ) -> Result<CookieWithFds<'_, Box<C>, <R as ReplyFDsRequest>::Reply>, ConnectionError>
where R: ReplyFDsRequest,

Send a request with a reply containing file descriptors to the server. Read more
Source§

fn send_request_without_reply( &self, bufs: &[IoSlice<'_>], fds: Vec<OwnedFd>, ) -> Result<VoidCookie<'_, Box<C>>, ConnectionError>

Send a request without a reply to the server. Read more
Source§

fn send_trait_request_without_reply<R>( &self, request: R, ) -> Result<VoidCookie<'_, Box<C>>, ConnectionError>
where R: VoidRequest,

Send a request without a reply to the server. Read more
Source§

fn discard_reply(&self, sequence: u64, kind: RequestKind, mode: DiscardMode)

A reply to an error should be discarded. Read more
Source§

fn prefetch_extension_information( &self, extension_name: &'static str, ) -> Result<(), ConnectionError>

Prefetches information about an extension. Read more
Source§

fn extension_information( &self, extension_name: &'static str, ) -> Result<Option<ExtensionInformation>, ConnectionError>

Get information about an extension. Read more
Source§

fn wait_for_reply_or_error( &self, sequence: u64, ) -> Result<<Box<C> as RequestConnection>::Buf, ReplyError>

Wait for the reply to a request. Read more
Source§

fn wait_for_reply_or_raw_error( &self, sequence: u64, ) -> Result<ReplyOrError<<Box<C> as RequestConnection>::Buf>, ConnectionError>

Wait for the reply to a request. Read more
Source§

fn wait_for_reply( &self, sequence: u64, ) -> Result<Option<<Box<C> as RequestConnection>::Buf>, ConnectionError>

Wait for the reply to a request. Read more
Source§

fn wait_for_reply_with_fds( &self, sequence: u64, ) -> Result<(<Box<C> as RequestConnection>::Buf, Vec<OwnedFd>), ReplyError>

Wait for the reply to a request that has FDs. Read more
Source§

fn wait_for_reply_with_fds_raw( &self, sequence: u64, ) -> Result<ReplyOrError<(<Box<C> as RequestConnection>::Buf, Vec<OwnedFd>), <Box<C> as RequestConnection>::Buf>, ConnectionError>

Wait for the reply to a request that has FDs. Read more
Source§

fn check_for_error(&self, sequence: u64) -> Result<(), ReplyError>

Check whether a request that does not have a reply caused an X11 error. Read more
Source§

fn check_for_raw_error( &self, sequence: u64, ) -> Result<Option<<Box<C> as RequestConnection>::Buf>, ConnectionError>

Check whether a request that does not have a reply caused an X11 error. Read more
Source§

fn prefetch_maximum_request_bytes(&self)

Prefetches the maximum request length. Read more
Source§

fn maximum_request_bytes(&self) -> usize

The maximum number of bytes that the X11 server accepts in a request.
Source§

fn parse_error(&self, error: &[u8]) -> Result<X11Error, ParseError>

Parse a generic error.
Source§

fn parse_event(&self, event: &[u8]) -> Result<Event, ParseError>

Parse a generic event.
Source§

impl<T> Resolver for Box<T>
where T: Resolver + ?Sized,

Source§

fn resolve_source<'a>( &'a self, path: &ModulePath, ) -> Result<Cow<'a, str>, ResolveError>

Try to resolve a source file identified by a module path.
Source§

fn source_to_module( &self, source: &str, path: &ModulePath, ) -> Result<TranslationUnit, ResolveError>

Convert a source file into a syntax tree.
Source§

fn resolve_module( &self, path: &ModulePath, ) -> Result<TranslationUnit, ResolveError>

Try to resolve a source file identified by a module path.
Source§

fn display_name(&self, path: &ModulePath) -> Option<String>

Get the display name of the module path. Implementing this is optional.
Source§

impl<R> RngCore for Box<R>
where R: RngCore + ?Sized,

Source§

fn next_u32(&mut self) -> u32

Return the next random u32. Read more
Source§

fn next_u64(&mut self) -> u64

Return the next random u64. Read more
Source§

fn fill_bytes(&mut self, dest: &mut [u8])

Fill dest with random data. Read more
Source§

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

Fill dest entirely with random data. Read more
Source§

impl Schedulable for Box<dyn System<In = (), Out = Result<(), BevyError>>>

Source§

type Metadata = GraphInfo

Additional data used to configure independent scheduling. Stored in ScheduleConfig.
Source§

type GroupMetadata = Chain

Additional data used to configure a schedulable group. Stored in ScheduleConfigs.
Source§

fn into_config( self, ) -> ScheduleConfig<Box<dyn System<In = (), Out = Result<(), BevyError>>>>

Initializes a configuration from this node.
1.0.0 · Source§

impl<S> Seek for Box<S>
where 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 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 stream_position(&mut self) -> Result<u64, Error>

Returns the current seek position from the start of the stream. Read more
Source§

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

Seeks relative to the current position. Read more
Source§

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

Source§

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

Serialize this value into the given Serde serializer. Read more
Source§

impl<T> Serializer for Box<T>
where T: Serializer + ?Sized,

Source§

fn erased_serialize_bool(&mut self, v: bool)

Source§

fn erased_serialize_i8(&mut self, v: i8)

Source§

fn erased_serialize_i16(&mut self, v: i16)

Source§

fn erased_serialize_i32(&mut self, v: i32)

Source§

fn erased_serialize_i64(&mut self, v: i64)

Source§

fn erased_serialize_i128(&mut self, v: i128)

Source§

fn erased_serialize_u8(&mut self, v: u8)

Source§

fn erased_serialize_u16(&mut self, v: u16)

Source§

fn erased_serialize_u32(&mut self, v: u32)

Source§

fn erased_serialize_u64(&mut self, v: u64)

Source§

fn erased_serialize_u128(&mut self, v: u128)

Source§

fn erased_serialize_f32(&mut self, v: f32)

Source§

fn erased_serialize_f64(&mut self, v: f64)

Source§

fn erased_serialize_char(&mut self, v: char)

Source§

fn erased_serialize_str(&mut self, v: &str)

Source§

fn erased_serialize_bytes(&mut self, v: &[u8])

Source§

fn erased_serialize_none(&mut self)

Source§

fn erased_serialize_some(&mut self, value: &dyn Serialize)

Source§

fn erased_serialize_unit(&mut self)

Source§

fn erased_serialize_unit_struct(&mut self, name: &'static str)

Source§

fn erased_serialize_unit_variant( &mut self, name: &'static str, variant_index: u32, variant: &'static str, )

Source§

fn erased_serialize_newtype_struct( &mut self, name: &'static str, value: &dyn Serialize, )

Source§

fn erased_serialize_newtype_variant( &mut self, name: &'static str, variant_index: u32, variant: &'static str, value: &dyn Serialize, )

Source§

fn erased_serialize_seq( &mut self, len: Option<usize>, ) -> Result<&mut dyn SerializeSeq, ErrorImpl>

Source§

fn erased_serialize_tuple( &mut self, len: usize, ) -> Result<&mut dyn SerializeTuple, ErrorImpl>

Source§

fn erased_serialize_tuple_struct( &mut self, name: &'static str, len: usize, ) -> Result<&mut dyn SerializeTupleStruct, ErrorImpl>

Source§

fn erased_serialize_tuple_variant( &mut self, name: &'static str, variant_index: u32, variant: &'static str, len: usize, ) -> Result<&mut dyn SerializeTupleVariant, ErrorImpl>

Source§

fn erased_serialize_map( &mut self, len: Option<usize>, ) -> Result<&mut dyn SerializeMap, ErrorImpl>

Source§

fn erased_serialize_struct( &mut self, name: &'static str, len: usize, ) -> Result<&mut dyn SerializeStruct, ErrorImpl>

Source§

fn erased_serialize_struct_variant( &mut self, name: &'static str, variant_index: u32, variant: &'static str, len: usize, ) -> Result<&mut dyn SerializeStructVariant, ErrorImpl>

Source§

fn erased_is_human_readable(&self) -> bool

Source§

impl<Request, S> Service<Request> for Box<S>
where S: Service<Request> + ?Sized,

Source§

type Response = <S as Service<Request>>::Response

Responses given by the service.
Source§

type Error = <S as Service<Request>>::Error

Errors produced by the service. Read more
Source§

type Future = <S as Service<Request>>::Future

The future response value.
Source§

fn call(&self, req: Request) -> <Box<S> as Service<Request>>::Future

Process the request and return the response asynchronously. call takes &self instead of mut &self because: Read more
Source§

impl<T> ShaderSize for Box<T>
where T: ShaderSize + ?Sized,

Source§

const SHADER_SIZE: NonZero<u64> = T::SHADER_SIZE

Represents WGSL Size (equivalent to ShaderType::min_size)
Source§

impl<T> ShaderType for Box<T>
where T: ShaderType + ?Sized,

Source§

fn size(&self) -> NonZero<u64>

Returns the size of Self at runtime Read more
Source§

fn min_size() -> NonZero<u64>

Represents the minimum size of Self (equivalent to GPUBufferBindingLayout.minBindingSize) Read more
Source§

fn assert_uniform_compat()

Source§

impl<S> Source for Box<S>
where S: Source + ?Sized,

Source§

fn visit<'kvs>( &'kvs self, visitor: &mut dyn VisitSource<'kvs>, ) -> Result<(), Error>

Visit key-values. Read more
Source§

fn get(&self, key: Key<'_>) -> Option<Value<'_>>

Get the value for a given key. Read more
Source§

fn count(&self) -> usize

Count the number of key-values that can be visited. Read more
Source§

impl<T> Source for Box<T>
where T: Source + ?Sized,

Source§

fn register( &mut self, registry: &Registry, token: Token, interests: Interest, ) -> Result<(), Error>

Register self with the given Registry instance. Read more
Source§

fn reregister( &mut self, registry: &Registry, token: Token, interests: Interest, ) -> Result<(), Error>

Re-register self with the given Registry instance. Read more
Source§

fn deregister(&mut self, registry: &Registry) -> Result<(), Error>

Deregister self from the given Registry instance. Read more
Source§

impl<S> Source for Box<dyn Source<Item = S>>
where S: Sample,

Source§

fn current_frame_len(&self) -> Option<usize>

Returns the number of samples before the current frame ends. None means “infinite” or “until the sound ends”. Should never return 0 unless there’s no more data. Read more
Source§

fn channels(&self) -> u16

Returns the number of channels. Channels are always interleaved.
Source§

fn sample_rate(&self) -> u32

Returns the rate at which the source should be played. In number of samples per second.
Source§

fn total_duration(&self) -> Option<Duration>

Returns the total duration of this source, if known. Read more
Source§

fn try_seek(&mut self, pos: Duration) -> Result<(), SeekError>

Attempts to seek to a given position in the current source. Read more
Source§

fn buffered(self) -> Buffered<Self>
where Self: Sized,

Stores the source in a buffer in addition to returning it. This iterator can be cloned.
Source§

fn mix<S>(self, other: S) -> Mix<Self, S>
where Self: Sized, Self::Item: FromSample<<S as Iterator>::Item>, S: Source, <S as Iterator>::Item: Sample,

Mixes this source with another one.
Source§

fn repeat_infinite(self) -> Repeat<Self>
where Self: Sized,

Repeats this source forever. Read more
Source§

fn take_duration(self, duration: Duration) -> TakeDuration<Self>
where Self: Sized,

Takes a certain duration of this source and then stops.
Source§

fn delay(self, duration: Duration) -> Delay<Self>
where Self: Sized,

Delays the sound by a certain duration. Read more
Source§

fn skip_duration(self, duration: Duration) -> SkipDuration<Self>
where Self: Sized,

Immediately skips a certain duration of this source. Read more
Source§

fn amplify(self, value: f32) -> Amplify<Self>
where Self: Sized,

Amplifies the sound by the given value.
Source§

fn automatic_gain_control( self, target_level: f32, attack_time: f32, release_time: f32, absolute_max_gain: f32, ) -> AutomaticGainControl<Self>
where Self: Sized,

Applies automatic gain control to the sound. Read more
Source§

fn take_crossfade_with<S>( self, other: S, duration: Duration, ) -> Mix<TakeDuration<Self>, FadeIn<TakeDuration<S>>>
where S: Source, Self: Sized, Self::Item: FromSample<<S as Iterator>::Item>, <S as Iterator>::Item: Sample,

Mixes this sound fading out with another sound fading in for the given duration. Read more
Source§

fn fade_in(self, duration: Duration) -> FadeIn<Self>
where Self: Sized,

Fades in the sound.
Source§

fn fade_out(self, duration: Duration) -> FadeOut<Self>
where Self: Sized,

Fades out the sound.
Source§

fn linear_gain_ramp( self, duration: Duration, start_value: f32, end_value: f32, clamp_end: bool, ) -> LinearGainRamp<Self>
where Self: Sized,

Applies a linear gain ramp to the sound. Read more
Source§

fn periodic_access<F>( self, period: Duration, access: F, ) -> PeriodicAccess<Self, F>
where Self: Sized, F: FnMut(&mut Self),

Calls the access closure on Self the first time the source is iterated and every time period elapses. Read more
Source§

fn speed(self, ratio: f32) -> Speed<Self>
where Self: Sized,

Changes the play speed of the sound. Does not adjust the samples, only the playback speed. Read more
Source§

fn reverb( self, duration: Duration, amplitude: f32, ) -> Mix<Self, Delay<Amplify<Self>>>
where Self: Sized + Clone,

Adds a basic reverb effect. Read more
Source§

fn convert_samples<D>(self) -> SamplesConverter<Self, D>
where Self: Sized, D: Sample,

Converts the samples of this source to another type.
Source§

fn pausable(self, initially_paused: bool) -> Pausable<Self>
where Self: Sized,

Makes the sound pausable.
Source§

fn stoppable(self) -> Stoppable<Self>
where Self: Sized,

Makes the sound stoppable.
Source§

fn skippable(self) -> Skippable<Self>
where Self: Sized,

Adds a method Skippable::skip for skipping this source. Skipping makes Source::next() return None. Which in turn makes the Sink skip to the next source.
Source§

fn track_position(self) -> TrackPosition<Self>
where Self: Sized,

Start tracking the elapsed duration since the start of the underlying source. Read more
Source§

fn low_pass(self, freq: u32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a low-pass filter to the source. Warning: Probably buggy.
Source§

fn high_pass(self, freq: u32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a high-pass filter to the source.
Source§

fn low_pass_with_q(self, freq: u32, q: f32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a low-pass filter to the source while allowing the q (bandwidth) to be changed.
Source§

fn high_pass_with_q(self, freq: u32, q: f32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a high-pass filter to the source while allowing the q (bandwidth) to be changed.
Source§

impl<S> Source for Box<dyn Source<Item = S> + Send>
where S: Sample,

Source§

fn current_frame_len(&self) -> Option<usize>

Returns the number of samples before the current frame ends. None means “infinite” or “until the sound ends”. Should never return 0 unless there’s no more data. Read more
Source§

fn channels(&self) -> u16

Returns the number of channels. Channels are always interleaved.
Source§

fn sample_rate(&self) -> u32

Returns the rate at which the source should be played. In number of samples per second.
Source§

fn total_duration(&self) -> Option<Duration>

Returns the total duration of this source, if known. Read more
Source§

fn try_seek(&mut self, pos: Duration) -> Result<(), SeekError>

Attempts to seek to a given position in the current source. Read more
Source§

fn buffered(self) -> Buffered<Self>
where Self: Sized,

Stores the source in a buffer in addition to returning it. This iterator can be cloned.
Source§

fn mix<S>(self, other: S) -> Mix<Self, S>
where Self: Sized, Self::Item: FromSample<<S as Iterator>::Item>, S: Source, <S as Iterator>::Item: Sample,

Mixes this source with another one.
Source§

fn repeat_infinite(self) -> Repeat<Self>
where Self: Sized,

Repeats this source forever. Read more
Source§

fn take_duration(self, duration: Duration) -> TakeDuration<Self>
where Self: Sized,

Takes a certain duration of this source and then stops.
Source§

fn delay(self, duration: Duration) -> Delay<Self>
where Self: Sized,

Delays the sound by a certain duration. Read more
Source§

fn skip_duration(self, duration: Duration) -> SkipDuration<Self>
where Self: Sized,

Immediately skips a certain duration of this source. Read more
Source§

fn amplify(self, value: f32) -> Amplify<Self>
where Self: Sized,

Amplifies the sound by the given value.
Source§

fn automatic_gain_control( self, target_level: f32, attack_time: f32, release_time: f32, absolute_max_gain: f32, ) -> AutomaticGainControl<Self>
where Self: Sized,

Applies automatic gain control to the sound. Read more
Source§

fn take_crossfade_with<S>( self, other: S, duration: Duration, ) -> Mix<TakeDuration<Self>, FadeIn<TakeDuration<S>>>
where S: Source, Self: Sized, Self::Item: FromSample<<S as Iterator>::Item>, <S as Iterator>::Item: Sample,

Mixes this sound fading out with another sound fading in for the given duration. Read more
Source§

fn fade_in(self, duration: Duration) -> FadeIn<Self>
where Self: Sized,

Fades in the sound.
Source§

fn fade_out(self, duration: Duration) -> FadeOut<Self>
where Self: Sized,

Fades out the sound.
Source§

fn linear_gain_ramp( self, duration: Duration, start_value: f32, end_value: f32, clamp_end: bool, ) -> LinearGainRamp<Self>
where Self: Sized,

Applies a linear gain ramp to the sound. Read more
Source§

fn periodic_access<F>( self, period: Duration, access: F, ) -> PeriodicAccess<Self, F>
where Self: Sized, F: FnMut(&mut Self),

Calls the access closure on Self the first time the source is iterated and every time period elapses. Read more
Source§

fn speed(self, ratio: f32) -> Speed<Self>
where Self: Sized,

Changes the play speed of the sound. Does not adjust the samples, only the playback speed. Read more
Source§

fn reverb( self, duration: Duration, amplitude: f32, ) -> Mix<Self, Delay<Amplify<Self>>>
where Self: Sized + Clone,

Adds a basic reverb effect. Read more
Source§

fn convert_samples<D>(self) -> SamplesConverter<Self, D>
where Self: Sized, D: Sample,

Converts the samples of this source to another type.
Source§

fn pausable(self, initially_paused: bool) -> Pausable<Self>
where Self: Sized,

Makes the sound pausable.
Source§

fn stoppable(self) -> Stoppable<Self>
where Self: Sized,

Makes the sound stoppable.
Source§

fn skippable(self) -> Skippable<Self>
where Self: Sized,

Adds a method Skippable::skip for skipping this source. Skipping makes Source::next() return None. Which in turn makes the Sink skip to the next source.
Source§

fn track_position(self) -> TrackPosition<Self>
where Self: Sized,

Start tracking the elapsed duration since the start of the underlying source. Read more
Source§

fn low_pass(self, freq: u32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a low-pass filter to the source. Warning: Probably buggy.
Source§

fn high_pass(self, freq: u32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a high-pass filter to the source.
Source§

fn low_pass_with_q(self, freq: u32, q: f32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a low-pass filter to the source while allowing the q (bandwidth) to be changed.
Source§

fn high_pass_with_q(self, freq: u32, q: f32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a high-pass filter to the source while allowing the q (bandwidth) to be changed.
Source§

impl<S> Source for Box<dyn Source<Item = S> + Send + Sync>
where S: Sample,

Source§

fn current_frame_len(&self) -> Option<usize>

Returns the number of samples before the current frame ends. None means “infinite” or “until the sound ends”. Should never return 0 unless there’s no more data. Read more
Source§

fn channels(&self) -> u16

Returns the number of channels. Channels are always interleaved.
Source§

fn sample_rate(&self) -> u32

Returns the rate at which the source should be played. In number of samples per second.
Source§

fn total_duration(&self) -> Option<Duration>

Returns the total duration of this source, if known. Read more
Source§

fn try_seek(&mut self, pos: Duration) -> Result<(), SeekError>

Attempts to seek to a given position in the current source. Read more
Source§

fn buffered(self) -> Buffered<Self>
where Self: Sized,

Stores the source in a buffer in addition to returning it. This iterator can be cloned.
Source§

fn mix<S>(self, other: S) -> Mix<Self, S>
where Self: Sized, Self::Item: FromSample<<S as Iterator>::Item>, S: Source, <S as Iterator>::Item: Sample,

Mixes this source with another one.
Source§

fn repeat_infinite(self) -> Repeat<Self>
where Self: Sized,

Repeats this source forever. Read more
Source§

fn take_duration(self, duration: Duration) -> TakeDuration<Self>
where Self: Sized,

Takes a certain duration of this source and then stops.
Source§

fn delay(self, duration: Duration) -> Delay<Self>
where Self: Sized,

Delays the sound by a certain duration. Read more
Source§

fn skip_duration(self, duration: Duration) -> SkipDuration<Self>
where Self: Sized,

Immediately skips a certain duration of this source. Read more
Source§

fn amplify(self, value: f32) -> Amplify<Self>
where Self: Sized,

Amplifies the sound by the given value.
Source§

fn automatic_gain_control( self, target_level: f32, attack_time: f32, release_time: f32, absolute_max_gain: f32, ) -> AutomaticGainControl<Self>
where Self: Sized,

Applies automatic gain control to the sound. Read more
Source§

fn take_crossfade_with<S>( self, other: S, duration: Duration, ) -> Mix<TakeDuration<Self>, FadeIn<TakeDuration<S>>>
where S: Source, Self: Sized, Self::Item: FromSample<<S as Iterator>::Item>, <S as Iterator>::Item: Sample,

Mixes this sound fading out with another sound fading in for the given duration. Read more
Source§

fn fade_in(self, duration: Duration) -> FadeIn<Self>
where Self: Sized,

Fades in the sound.
Source§

fn fade_out(self, duration: Duration) -> FadeOut<Self>
where Self: Sized,

Fades out the sound.
Source§

fn linear_gain_ramp( self, duration: Duration, start_value: f32, end_value: f32, clamp_end: bool, ) -> LinearGainRamp<Self>
where Self: Sized,

Applies a linear gain ramp to the sound. Read more
Source§

fn periodic_access<F>( self, period: Duration, access: F, ) -> PeriodicAccess<Self, F>
where Self: Sized, F: FnMut(&mut Self),

Calls the access closure on Self the first time the source is iterated and every time period elapses. Read more
Source§

fn speed(self, ratio: f32) -> Speed<Self>
where Self: Sized,

Changes the play speed of the sound. Does not adjust the samples, only the playback speed. Read more
Source§

fn reverb( self, duration: Duration, amplitude: f32, ) -> Mix<Self, Delay<Amplify<Self>>>
where Self: Sized + Clone,

Adds a basic reverb effect. Read more
Source§

fn convert_samples<D>(self) -> SamplesConverter<Self, D>
where Self: Sized, D: Sample,

Converts the samples of this source to another type.
Source§

fn pausable(self, initially_paused: bool) -> Pausable<Self>
where Self: Sized,

Makes the sound pausable.
Source§

fn stoppable(self) -> Stoppable<Self>
where Self: Sized,

Makes the sound stoppable.
Source§

fn skippable(self) -> Skippable<Self>
where Self: Sized,

Adds a method Skippable::skip for skipping this source. Skipping makes Source::next() return None. Which in turn makes the Sink skip to the next source.
Source§

fn track_position(self) -> TrackPosition<Self>
where Self: Sized,

Start tracking the elapsed duration since the start of the underlying source. Read more
Source§

fn low_pass(self, freq: u32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a low-pass filter to the source. Warning: Probably buggy.
Source§

fn high_pass(self, freq: u32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a high-pass filter to the source.
Source§

fn low_pass_with_q(self, freq: u32, q: f32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a low-pass filter to the source while allowing the q (bandwidth) to be changed.
Source§

fn high_pass_with_q(self, freq: u32, q: f32) -> BltFilter<Self>
where Self: Sized + Source<Item = f32>,

Applies a high-pass filter to the source while allowing the q (bandwidth) to be changed.
Source§

impl<Sp> Spawn for Box<Sp>
where Sp: Spawn + ?Sized,

Source§

fn spawn_obj(&self, future: FutureObj<'static, ()>) -> Result<(), SpawnError>

Spawns a future that will be run to completion. Read more
Source§

fn status(&self) -> Result<(), SpawnError>

Determines whether the executor is able to spawn new tasks. Read more
Source§

impl<S> Stream for Box<S>
where S: Stream + Unpin + ?Sized,

Source§

type Item = <S as Stream>::Item

Values yielded by the stream.
Source§

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

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more
Source§

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

Returns the bounds on the remaining length of the stream. Read more
Source§

impl<S> Subscriber for Box<S>
where S: Subscriber + ?Sized,

Source§

fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

Registers a new callsite with this subscriber, returning whether or not the subscriber is interested in being notified about the callsite. Read more
Source§

fn enabled(&self, metadata: &Metadata<'_>) -> bool

Returns true if a span or event with the specified metadata would be recorded. Read more
Source§

fn max_level_hint(&self) -> Option<LevelFilter>

Returns the highest verbosity level that this Subscriber will enable, or None, if the subscriber does not implement level-based filtering or chooses not to implement this method. Read more
Source§

fn new_span(&self, span: &Attributes<'_>) -> Id

Visit the construction of a new span, returning a new span ID for the span being constructed. Read more
Source§

fn record(&self, span: &Id, values: &Record<'_>)

Record a set of values on a span. Read more
Source§

fn record_follows_from(&self, span: &Id, follows: &Id)

Adds an indication that span follows from the span with the id follows. Read more
Source§

fn event_enabled(&self, event: &Event<'_>) -> bool

Determine if an Event should be recorded. Read more
Source§

fn event(&self, event: &Event<'_>)

Records that an Event has occurred. Read more
Source§

fn enter(&self, span: &Id)

Records that a span has been entered. Read more
Source§

fn exit(&self, span: &Id)

Records that a span has been exited. Read more
Source§

fn clone_span(&self, id: &Id) -> Id

Notifies the subscriber that a span ID has been cloned. Read more
Source§

fn try_close(&self, id: Id) -> bool

Notifies the subscriber that a span ID has been dropped, and returns true if there are now 0 IDs that refer to that span. Read more
Source§

fn drop_span(&self, id: Id)

👎Deprecated since 0.1.2: use Subscriber::try_close instead
This method is deprecated. Read more
Source§

fn current_span(&self) -> Current

Returns a type representing this subscriber’s view of the current span. Read more
Source§

unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>

If self is the same type as the provided TypeId, returns an untyped *const pointer to that type. Otherwise, returns None. Read more
Source§

fn on_register_dispatch(&self, subscriber: &Dispatch)

Invoked when this subscriber becomes a Dispatch. Read more
Source§

impl<T> ToTokens for Box<T>
where T: ToTokens + ?Sized,

Source§

fn to_tokens(&self, tokens: &mut TokenStream)

🔬This is a nightly-only experimental API. (proc_macro_totokens)
Write self to the given TokenStream. Read more
Source§

fn to_token_stream(&self) -> TokenStream

🔬This is a nightly-only experimental API. (proc_macro_totokens)
Convert self directly into a TokenStream object. Read more
Source§

fn into_token_stream(self) -> TokenStream
where Self: Sized,

🔬This is a nightly-only experimental API. (proc_macro_totokens)
Convert self directly into a TokenStream object. Read more
Source§

impl<T> ToTokens for Box<T>
where T: ToTokens + ?Sized,

Source§

fn to_tokens(&self, tokens: &mut TokenStream)

Write self to the given TokenStream. Read more
Source§

fn to_token_stream(&self) -> TokenStream

Convert self directly into a TokenStream object. Read more
Source§

fn into_token_stream(self) -> TokenStream
where Self: Sized,

Convert self directly into a TokenStream object. Read more
Source§

impl<T, O> TryFrom<Box<[T]>> for BitBox<T, O>
where T: BitStore, O: BitOrder,

Source§

type Error = Box<[T]>

The type returned in the event of a conversion error.
Source§

fn try_from( boxed: Box<[T]>, ) -> Result<BitBox<T, O>, <BitBox<T, O> as TryFrom<Box<[T]>>>::Error>

Performs the conversion.
1.43.0 · Source§

impl<T, const N: usize> TryFrom<Box<[T]>> for Box<[T; N]>

Source§

fn try_from( boxed_slice: Box<[T]>, ) -> Result<Box<[T; N]>, <Box<[T; N]> as TryFrom<Box<[T]>>>::Error>

Attempts to convert a Box<[T]> into a Box<[T; N]>.

The conversion occurs in-place and does not require a new memory allocation.

§Errors

Returns the old Box<[T]> in the Err variant if boxed_slice.len() does not equal N.

Source§

type Error = Box<[T]>

The type returned in the event of a conversion error.
Source§

impl<T, const N: usize> TryFrom<UniqueEntityEquivalentVec<T>> for Box<[T; N]>

Source§

type Error = UniqueEntityEquivalentVec<T>

The type returned in the event of a conversion error.
Source§

fn try_from( value: UniqueEntityEquivalentVec<T>, ) -> Result<Box<[T; N]>, <Box<[T; N]> as TryFrom<UniqueEntityEquivalentVec<T>>>::Error>

Performs the conversion.
Source§

impl<T, const N: usize> TryFrom<UniqueEntityEquivalentVec<T>> for Box<UniqueEntityEquivalentArray<T, N>>

Source§

type Error = UniqueEntityEquivalentVec<T>

The type returned in the event of a conversion error.
Source§

fn try_from( value: UniqueEntityEquivalentVec<T>, ) -> Result<Box<UniqueEntityEquivalentArray<T, N>>, <Box<UniqueEntityEquivalentArray<T, N>> as TryFrom<UniqueEntityEquivalentVec<T>>>::Error>

Performs the conversion.
1.66.0 · Source§

impl<T, const N: usize> TryFrom<Vec<T>> for Box<[T; N]>

Source§

fn try_from( vec: Vec<T>, ) -> Result<Box<[T; N]>, <Box<[T; N]> as TryFrom<Vec<T>>>::Error>

Attempts to convert a Vec<T> into a Box<[T; N]>.

Like Vec::into_boxed_slice, this is in-place if vec.capacity() == N, but will require a reallocation otherwise.

§Errors

Returns the original Vec<T> in the Err variant if boxed_slice.len() does not equal N.

§Examples

This can be used with vec! to create an array on the heap:

let state: Box<[f32; 100]> = vec![1.0; 100].try_into().unwrap();
assert_eq!(state.len(), 100);
Source§

type Error = Vec<T>

The type returned in the event of a conversion error.
Source§

impl<T> Type for Box<T>
where T: Type + ?Sized,

Source§

const SIGNATURE: &'static Signature = T::SIGNATURE

The signature for the implementing type, in parsed format. Read more
Source§

impl<'a, T, F> UnsafeFutureObj<'a, T> for Box<F>
where F: Future<Output = T> + 'a,

Source§

fn into_raw(self) -> *mut dyn Future<Output = T> + 'a

Convert an owned instance into a (conceptually owned) fat pointer. Read more
Source§

unsafe fn drop(ptr: *mut dyn Future<Output = T> + 'a)

Drops the future represented by the given fat pointer. Read more
Source§

impl<'a, T> UnsafeFutureObj<'a, T> for Box<dyn Future<Output = T> + 'a>
where T: 'a,

Source§

fn into_raw(self) -> *mut dyn Future<Output = T> + 'a

Convert an owned instance into a (conceptually owned) fat pointer. Read more
Source§

unsafe fn drop(ptr: *mut dyn Future<Output = T> + 'a)

Drops the future represented by the given fat pointer. Read more
Source§

impl<'a, T> UnsafeFutureObj<'a, T> for Box<dyn Future<Output = T> + Send + 'a>
where T: 'a,

Source§

fn into_raw(self) -> *mut dyn Future<Output = T> + 'a

Convert an owned instance into a (conceptually owned) fat pointer. Read more
Source§

unsafe fn drop(ptr: *mut dyn Future<Output = T> + 'a)

Drops the future represented by the given fat pointer. Read more
Source§

impl<'a, T, F> UnsafeFutureObj<'a, T> for Pin<Box<F>>
where F: Future<Output = T> + 'a,

Source§

fn into_raw(self) -> *mut dyn Future<Output = T> + 'a

Convert an owned instance into a (conceptually owned) fat pointer. Read more
Source§

unsafe fn drop(ptr: *mut dyn Future<Output = T> + 'a)

Drops the future represented by the given fat pointer. Read more
Source§

impl<'a, T> UnsafeFutureObj<'a, T> for Pin<Box<dyn Future<Output = T> + 'a>>
where T: 'a,

Source§

fn into_raw(self) -> *mut dyn Future<Output = T> + 'a

Convert an owned instance into a (conceptually owned) fat pointer. Read more
Source§

unsafe fn drop(ptr: *mut dyn Future<Output = T> + 'a)

Drops the future represented by the given fat pointer. Read more
Source§

impl<'a, T> UnsafeFutureObj<'a, T> for Pin<Box<dyn Future<Output = T> + Send + 'a>>
where T: 'a,

Source§

fn into_raw(self) -> *mut dyn Future<Output = T> + 'a

Convert an owned instance into a (conceptually owned) fat pointer. Read more
Source§

unsafe fn drop(ptr: *mut dyn Future<Output = T> + 'a)

Drops the future represented by the given fat pointer. Read more
Source§

impl Validate for Box<RawValue>

Source§

fn validate<P, R>(&self, _: &Root, _: P, _: &mut R)
where P: Fn() -> Path, R: FnMut(&dyn Fn() -> Path, Error),

Validates the invariants required for the library to function safely.
Source§

impl<T> Value for Box<T>
where T: Value + ?Sized,

Source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

Visits this value with the given Visitor.
Source§

impl<'kvs, V> VisitSource<'kvs> for Box<V>
where V: VisitSource<'kvs> + ?Sized,

Source§

fn visit_pair( &mut self, key: Key<'kvs>, value: Value<'kvs>, ) -> Result<(), Error>

Visit a key-value pair.
Source§

impl<T> Write for Box<T>
where T: Write + Unpin + ?Sized,

Source§

fn poll_write( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>

Attempt to write bytes from buf into the destination. Read more
Source§

fn poll_write_vectored( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>], ) -> Poll<Result<usize, Error>>

Like poll_write, except that it writes from a slice of buffers.
Source§

fn is_write_vectored(&self) -> bool

Returns whether this writer has an efficient poll_write_vectored implementation. Read more
Source§

fn poll_flush( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>

Attempts to flush the object. Read more
Source§

fn poll_shutdown( self: Pin<&mut Box<T>>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>

Attempts to shut down this writer.
1.0.0 · Source§

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

Source§

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

Writes 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 implementation. Read more
Source§

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

Flushes this output stream, ensuring that all intermediately buffered contents 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_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
Source§

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

Writes a formatted string into this writer, returning any error encountered. Read more
1.0.0 · Source§

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

Creates a “by reference” adapter for this instance of Write. Read more
Source§

impl<T> WriteColor for Box<T>
where T: WriteColor + ?Sized,

Source§

fn supports_color(&self) -> bool

Returns true if and only if the underlying writer supports colors.
Returns true if and only if the underlying writer supports hyperlinks. Read more
Source§

fn set_color(&mut self, spec: &ColorSpec) -> Result<(), Error>

Set the color settings of the writer. Read more
Set the current hyperlink of the writer. Read more
Source§

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

Reset the current color settings to their original settings. Read more
Source§

fn is_synchronous(&self) -> bool

Returns true if and only if the underlying writer must synchronously interact with an end user’s device in order to control colors. By default, this always returns false. Read more
Source§

impl WriteHalf for Box<dyn WriteHalf>

Source§

fn send_message<'life0, 'life1, 'async_trait>( &'life0 mut self, msg: &'life1 Message, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Box<dyn WriteHalf>: 'async_trait,

Send a message on the socket. Read more
Source§

fn sendmsg<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 mut self, buffer: &'life1 [u8], fds: &'life2 [BorrowedFd<'life3>], ) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Box<dyn WriteHalf>: 'async_trait,

Attempt to send a message on the socket Read more
Source§

fn close<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Box<dyn WriteHalf>: 'async_trait,

Close the socket. Read more
Source§

fn can_pass_unix_fd(&self) -> bool

Whether passing file descriptors is supported. Read more
Source§

fn peer_credentials<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<ConnectionCredentials, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Box<dyn WriteHalf>: 'async_trait,

The peer credentials.
Source§

impl<T> WriteInto for Box<T>
where T: WriteInto + ?Sized,

Source§

fn write_into<B>(&self, writer: &mut Writer<B>)
where B: BufferMut,

Source§

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

Source§

impl<R> CryptoRng for Box<R>
where R: CryptoRng + ?Sized,

Source§

impl<T, A> DerefPure for Box<T, A>
where A: Allocator, T: ?Sized,

Source§

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

Source§

impl<T> EntityEquivalent for Box<T>

1.0.0 · Source§

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

1.26.0 · Source§

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

Source§

impl<T> IoSafe for Box<T>
where T: IoSafe + ?Sized,

1.80.0 · Source§

impl<'a, I, A> !Iterator for &'a Box<[I], A>
where A: Allocator,

This implementation is required to make sure that the &Box<[I]>: IntoIterator implementation doesn’t overlap with IntoIterator for T where T: Iterator blanket.

1.80.0 · Source§

impl<'a, I, A> !Iterator for &'a mut Box<[I], A>
where A: Allocator,

This implementation is required to make sure that the &mut Box<[I]>: IntoIterator implementation doesn’t overlap with IntoIterator for T where T: Iterator blanket.

1.80.0 · Source§

impl<I, A> !Iterator for Box<[I], A>
where A: Allocator,

This implementation is required to make sure that the Box<[I]>: IntoIterator implementation doesn’t overlap with IntoIterator for T where T: Iterator blanket.

Source§

impl<T, A> PinCoerceUnsized for Box<T, A>
where A: Allocator, T: ?Sized,

Source§

impl<T> PointerLike for Box<T>

1.33.0 · Source§

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

Source§

impl<T> ZeroableInOption for Box<T>
where T: ?Sized,

Auto Trait Implementations§

§

impl<T, A> Freeze for Box<T, A>
where A: Freeze, T: ?Sized,

§

impl<T, A> RefUnwindSafe for Box<T, A>

§

impl<T, A> Send for Box<T, A>
where A: Send, T: Send + ?Sized,

§

impl<T, A> Sync for Box<T, A>
where A: Sync, T: Sync + ?Sized,

§

impl<T, A> UnwindSafe for Box<T, A>
where A: UnwindSafe, T: UnwindSafe + ?Sized,

Blanket Implementations§

Source§

impl<F, S, Out> Adapt<S> for F
where F: Send + Sync + 'static + FnMut(<S as System>::Out) -> Out, S: System,

Source§

type In = <S as System>::In

The input type for an AdapterSystem.
Source§

type Out = Out

The output type for an AdapterSystem.
Source§

fn adapt( &mut self, input: <<F as Adapt<S>>::In as SystemInput>::Inner<'_>, run_system: impl FnOnce(<<S as System>::In as SystemInput>::Inner<'_>) -> <S as System>::Out, ) -> Out

When used in an AdapterSystem, this function customizes how the system is run and how its inputs/outputs are adapted.
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T, U> AsBindGroupShaderType<U> for T
where U: ShaderType, &'a T: for<'a> Into<U>,

Source§

fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U

Return the T ShaderType for self. When used in AsBindGroup derives, it is safe to assume that all images in self exist.
Source§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

Source§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where O: BitOrder,

Views self as an immutable bit-slice region with the O ordering.
Source§

fn try_as_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
where O: BitOrder,

Attempts to view self as an immutable bit-slice region with the O ordering. Read more
Source§

impl<A, T> AsMutBits<T> for A
where A: AsMut<[T]>, T: BitStore,

Source§

fn as_mut_bits<O>(&mut self) -> &mut BitSlice<T, O>
where O: BitOrder,

Views self as a mutable bit-slice region with the O ordering.
Source§

fn try_as_mut_bits<O>(&mut self) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
where O: BitOrder,

Attempts to view self as a mutable bit-slice region with the O ordering. Read more
Source§

impl<T> AsSource for T
where T: AsFd,

Source§

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

Returns the borrowed file descriptor.
Source§

impl<F, T> AssetReaderFuture for F

Source§

type Value = T

Source§

impl<R> AsyncBufReadExt for R
where R: AsyncBufRead + ?Sized,

Source§

fn fill_buf(&mut self) -> FillBuf<'_, Self>
where Self: Unpin,

Returns the contents of the internal buffer, filling it with more data if empty. Read more
Source§

fn consume(&mut self, amt: usize)
where Self: Unpin,

Consumes amt buffered bytes. Read more
Source§

fn read_until<'a>( &'a mut self, byte: u8, buf: &'a mut Vec<u8>, ) -> ReadUntilFuture<'a, Self>
where Self: Unpin,

Reads all bytes and appends them into buf until the delimiter byte or EOF is found. Read more
Source§

fn read_line<'a>(&'a mut self, buf: &'a mut String) -> ReadLineFuture<'a, Self>
where Self: Unpin,

Reads all bytes and appends them into buf until a newline (the 0xA byte) or EOF is found. Read more
Source§

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

Returns a stream over the lines of this byte stream. Read more
Source§

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

Returns a stream over the contents of this reader split on the specified byte. Read more
Source§

impl<R> AsyncReadExt for R
where R: AsyncRead + ?Sized,

Source§

fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadFuture<'a, Self>
where Self: Unpin,

Reads some bytes from the byte stream. Read more
Source§

fn read_vectored<'a>( &'a mut self, bufs: &'a mut [IoSliceMut<'a>], ) -> ReadVectoredFuture<'a, Self>
where Self: Unpin,

Like read(), except it reads into a slice of buffers. Read more
Source§

fn read_to_end<'a>( &'a mut self, buf: &'a mut Vec<u8>, ) -> ReadToEndFuture<'a, Self>
where Self: Unpin,

Reads the entire contents and appends them to a Vec. Read more
Source§

fn read_to_string<'a>( &'a mut self, buf: &'a mut String, ) -> ReadToStringFuture<'a, Self>
where Self: Unpin,

Reads the entire contents and appends them to a String. Read more
Source§

fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExactFuture<'a, Self>
where Self: Unpin,

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

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

Creates an adapter which will read at most limit bytes from it. Read more
Source§

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

Converts this AsyncRead into a Stream of bytes. Read more
Source§

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

Creates an adapter which will chain this stream with another. Read more
Source§

fn boxed_reader<'a>(self) -> Pin<Box<dyn AsyncRead + Send + 'a>>
where Self: Sized + Send + 'a,

Boxes the reader and changes its type to dyn AsyncRead + Send + 'a. Read more
Source§

impl<S> AsyncSeekExt for S
where S: AsyncSeek + ?Sized,

Source§

fn seek(&mut self, pos: SeekFrom) -> SeekFuture<'_, Self>
where Self: Unpin,

Seeks to a new position in a byte stream. Read more
Source§

impl<R> AsyncSeekForwardExt for R
where R: AsyncSeekForward + ?Sized,

Source§

fn seek_forward(&mut self, offset: u64) -> SeekForwardFuture<'_, Self>
where Self: Unpin,

Seek by the provided offset in the forwards direction, using the AsyncSeekForward trait.
Source§

impl<W> AsyncWriteExt for W
where W: AsyncWrite + ?Sized,

Source§

fn write<'a>(&'a mut self, buf: &'a [u8]) -> WriteFuture<'a, Self>
where Self: Unpin,

Writes some bytes into the byte stream. Read more
Source§

fn write_vectored<'a>( &'a mut self, bufs: &'a [IoSlice<'a>], ) -> WriteVectoredFuture<'a, Self>
where Self: Unpin,

Like write(), except that it writes a slice of buffers. Read more
Source§

fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAllFuture<'a, Self>
where Self: Unpin,

Writes an entire buffer into the byte stream. Read more
Source§

fn flush(&mut self) -> FlushFuture<'_, Self>
where Self: Unpin,

Flushes the stream to ensure that all buffered contents reach their destination. Read more
Source§

fn close(&mut self) -> CloseFuture<'_, Self>
where Self: Unpin,

Closes the writer. Read more
Source§

fn boxed_writer<'a>(self) -> Pin<Box<dyn AsyncWrite + Send + 'a>>
where Self: Sized + Send + 'a,

Boxes the writer and changes its type to dyn AsyncWrite + Send + 'a. Read more
Source§

impl<T> BodyExt for T
where T: Body + ?Sized,

Source§

fn frame(&mut self) -> Frame<'_, Self>
where Self: Unpin,

Returns a future that resolves to the next Frame, if any.
Source§

fn map_frame<F, B>(self, f: F) -> MapFrame<Self, F>
where Self: Sized, F: FnMut(Frame<Self::Data>) -> Frame<B>, B: Buf,

Maps this body’s frame to a different kind.
Source§

fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
where Self: Sized, F: FnMut(Self::Error) -> E,

Maps this body’s error value to a different value.
Source§

fn boxed(self) -> BoxBody<Self::Data, Self::Error>
where Self: Sized + Send + Sync + 'static,

Turn this body into a boxed trait object.
Source§

fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
where Self: Sized + Send + 'static,

Turn this body into a boxed trait object that is !Sync.
Source§

fn collect(self) -> Collect<Self>
where Self: Sized,

Turn this body into Collected body which will collect all the DATA frames and trailers.
Source§

fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
where Self: Sized, F: Future<Output = Option<Result<HeaderMap, Self::Error>>>,

Add trailers to the body. Read more
Source§

fn into_data_stream(self) -> BodyDataStream<Self>
where Self: Sized,

Turn this body into BodyDataStream.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<F, Out> Command<Out> for F
where F: FnOnce(&mut World) -> Out + Send + 'static,

Source§

fn apply(self, world: &mut World) -> Out

Applies this command, causing it to mutate the provided world. Read more
Source§

impl<C> CommandWithEntity<Result<(), EntityMutableFetchError>> for C
where C: EntityCommand,

Source§

fn with_entity( self, entity: Entity, ) -> impl Command<Result<(), EntityMutableFetchError>> + HandleError<Result<(), EntityMutableFetchError>>

Passes in a specific entity to an EntityCommand, resulting in a Command that internally runs the EntityCommand on that entity.
Source§

impl<C, T, Err> CommandWithEntity<Result<T, EntityCommandError<Err>>> for C
where C: EntityCommand<Result<T, Err>>, Err: Debug + Display + Send + Sync + 'static,

Source§

fn with_entity( self, entity: Entity, ) -> impl Command<Result<T, EntityCommandError<Err>>> + HandleError<Result<T, EntityCommandError<Err>>>

Passes in a specific entity to an EntityCommand, resulting in a Command that internally runs the EntityCommand on that entity.
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<Marker, In, F> Condition<Marker, In> for F
where In: SystemInput, F: Condition<Marker, In>,

Source§

fn and<M, C>( self, and: C, ) -> CombinatorSystem<AndMarker, Self::System, <C as IntoSystem<In, bool, M>>::System>
where C: Condition<M, In>,

Returns a new run condition that only returns true if both this one and the passed and return true. Read more
Source§

fn nand<M, C>( self, nand: C, ) -> CombinatorSystem<NandMarker, Self::System, <C as IntoSystem<In, bool, M>>::System>
where C: Condition<M, In>,

Returns a new run condition that only returns false if both this one and the passed nand return true. Read more
Source§

fn nor<M, C>( self, nor: C, ) -> CombinatorSystem<NorMarker, Self::System, <C as IntoSystem<In, bool, M>>::System>
where C: Condition<M, In>,

Returns a new run condition that only returns true if both this one and the passed nor return false. Read more
Source§

fn or<M, C>( self, or: C, ) -> CombinatorSystem<OrMarker, Self::System, <C as IntoSystem<In, bool, M>>::System>
where C: Condition<M, In>,

Returns a new run condition that returns true if either this one or the passed or return true. Read more
Source§

fn xnor<M, C>( self, xnor: C, ) -> CombinatorSystem<XnorMarker, Self::System, <C as IntoSystem<In, bool, M>>::System>
where C: Condition<M, In>,

Returns a new run condition that only returns true if self and xnor both return false or both return true. Read more
Source§

fn xor<M, C>( self, xor: C, ) -> CombinatorSystem<XorMarker, Self::System, <C as IntoSystem<In, bool, M>>::System>
where C: Condition<M, In>,

Returns a new run condition that only returns true if either self or xor return true, but not both. Read more
Source§

impl<C> ConnectionExt for C
where C: ConnectionExt + ?Sized,

Source§

fn change_property8<A, B>( &self, mode: PropMode, window: u32, property: A, type_: B, data: &[u8], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Change a property on a window with format 8.
Source§

fn change_property16<A, B>( &self, mode: PropMode, window: u32, property: A, type_: B, data: &[u16], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Change a property on a window with format 16.
Source§

fn change_property32<A, B>( &self, mode: PropMode, window: u32, property: A, type_: B, data: &[u32], ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Change a property on a window with format 32.
Source§

fn sync(&self) -> Result<(), ReplyError>

Synchronise with the X11 server. Read more
Source§

impl<C> ConnectionExt for C

Source§

fn create_window<'c, 'input>( &'c self, depth: u8, wid: u32, parent: u32, x: i16, y: i16, width: u16, height: u16, border_width: u16, class: WindowClass, visual: u32, value_list: &'input CreateWindowAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Creates a window. Read more
Source§

fn change_window_attributes<'c, 'input>( &'c self, window: u32, value_list: &'input ChangeWindowAttributesAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

change window attributes. Read more
Source§

fn get_window_attributes( &self, window: u32, ) -> Result<Cookie<'_, Self, GetWindowAttributesReply>, ConnectionError>

Gets window attributes. Read more
Source§

fn destroy_window( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Destroys a window. Read more
Source§

fn destroy_subwindows( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn change_save_set( &self, mode: SetMode, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Changes a client’s save set. Read more
Source§

fn reparent_window( &self, window: u32, parent: u32, x: i16, y: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Reparents a window. Read more
Source§

fn map_window( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Makes a window visible. Read more
Source§

fn map_subwindows( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn unmap_window( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Makes a window invisible. Read more
Source§

fn unmap_subwindows( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn configure_window<'c, 'input>( &'c self, window: u32, value_list: &'input ConfigureWindowAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Configures window attributes. Read more
Source§

fn circulate_window( &self, direction: Circulate, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Change window stacking order. Read more
Source§

fn get_geometry( &self, drawable: u32, ) -> Result<Cookie<'_, Self, GetGeometryReply>, ConnectionError>

Get current window geometry. Read more
Source§

fn query_tree( &self, window: u32, ) -> Result<Cookie<'_, Self, QueryTreeReply>, ConnectionError>

query the window tree. Read more
Source§

fn intern_atom<'c, 'input>( &'c self, only_if_exists: bool, name: &'input [u8], ) -> Result<Cookie<'c, Self, InternAtomReply>, ConnectionError>

Get atom identifier by name. Read more
Source§

fn get_atom_name( &self, atom: u32, ) -> Result<Cookie<'_, Self, GetAtomNameReply>, ConnectionError>

Source§

fn change_property<'c, 'input, A, B>( &'c self, mode: PropMode, window: u32, property: A, type_: B, format: u8, data_len: u32, data: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Changes a window property. Read more
Source§

fn delete_property( &self, window: u32, property: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn get_property<A, B>( &self, delete: bool, window: u32, property: A, type_: B, long_offset: u32, long_length: u32, ) -> Result<Cookie<'_, Self, GetPropertyReply>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Gets a window property. Read more
Source§

fn list_properties( &self, window: u32, ) -> Result<Cookie<'_, Self, ListPropertiesReply>, ConnectionError>

Source§

fn set_selection_owner<A, B>( &self, owner: A, selection: u32, time: B, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Sets the owner of a selection. Read more
Source§

fn get_selection_owner( &self, selection: u32, ) -> Result<Cookie<'_, Self, GetSelectionOwnerReply>, ConnectionError>

Gets the owner of a selection. Read more
Source§

fn convert_selection<A, B>( &self, requestor: u32, selection: u32, target: u32, property: A, time: B, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Source§

fn send_event<A, B>( &self, propagate: bool, destination: A, event_mask: EventMask, event: B, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<[u8; 32]>,

send an event. Read more
Source§

fn grab_pointer<A, B, C>( &self, owner_events: bool, grab_window: u32, event_mask: EventMask, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: A, cursor: B, time: C, ) -> Result<Cookie<'_, Self, GrabPointerReply>, ConnectionError>
where A: Into<u32>, B: Into<u32>, C: Into<u32>,

Grab the pointer. Read more
Source§

fn ungrab_pointer<A>( &self, time: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

release the pointer. Read more
Source§

fn grab_button<A, B>( &self, owner_events: bool, grab_window: u32, event_mask: EventMask, pointer_mode: GrabMode, keyboard_mode: GrabMode, confine_to: A, cursor: B, button: ButtonIndex, modifiers: ModMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Grab pointer button(s). Read more
Source§

fn ungrab_button( &self, button: ButtonIndex, grab_window: u32, modifiers: ModMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn change_active_pointer_grab<A, B>( &self, cursor: A, time: B, event_mask: EventMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Source§

fn grab_keyboard<A>( &self, owner_events: bool, grab_window: u32, time: A, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> Result<Cookie<'_, Self, GrabKeyboardReply>, ConnectionError>
where A: Into<u32>,

Grab the keyboard. Read more
Source§

fn ungrab_keyboard<A>( &self, time: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

Source§

fn grab_key<A>( &self, owner_events: bool, grab_window: u32, modifiers: ModMask, key: A, pointer_mode: GrabMode, keyboard_mode: GrabMode, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u8>,

Grab keyboard key(s). Read more
Source§

fn ungrab_key<A>( &self, key: A, grab_window: u32, modifiers: ModMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u8>,

release a key combination. Read more
Source§

fn allow_events<A>( &self, mode: Allow, time: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

release queued events. Read more
Source§

fn grab_server(&self) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn ungrab_server(&self) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn query_pointer( &self, window: u32, ) -> Result<Cookie<'_, Self, QueryPointerReply>, ConnectionError>

get pointer coordinates. Read more
Source§

fn get_motion_events<A, B>( &self, window: u32, start: A, stop: B, ) -> Result<Cookie<'_, Self, GetMotionEventsReply>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Source§

fn translate_coordinates( &self, src_window: u32, dst_window: u32, src_x: i16, src_y: i16, ) -> Result<Cookie<'_, Self, TranslateCoordinatesReply>, ConnectionError>

Source§

fn warp_pointer<A, B>( &self, src_window: A, dst_window: B, src_x: i16, src_y: i16, src_width: u16, src_height: u16, dst_x: i16, dst_y: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

move mouse pointer. Read more
Source§

fn set_input_focus<A, B>( &self, revert_to: InputFocus, focus: A, time: B, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Sets input focus. Read more
Source§

fn get_input_focus( &self, ) -> Result<Cookie<'_, Self, GetInputFocusReply>, ConnectionError>

Source§

fn query_keymap( &self, ) -> Result<Cookie<'_, Self, QueryKeymapReply>, ConnectionError>

Source§

fn open_font<'c, 'input>( &'c self, fid: u32, name: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

opens a font. Read more
Source§

fn close_font(&self, font: u32) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn query_font( &self, font: u32, ) -> Result<Cookie<'_, Self, QueryFontReply>, ConnectionError>

query font metrics. Read more
Source§

fn query_text_extents<'c, 'input>( &'c self, font: u32, string: &'input [Char2b], ) -> Result<Cookie<'c, Self, QueryTextExtentsReply>, ConnectionError>

get text extents. Read more
Source§

fn list_fonts<'c, 'input>( &'c self, max_names: u16, pattern: &'input [u8], ) -> Result<Cookie<'c, Self, ListFontsReply>, ConnectionError>

get matching font names. Read more
Source§

fn list_fonts_with_info<'c, 'input>( &'c self, max_names: u16, pattern: &'input [u8], ) -> Result<ListFontsWithInfoCookie<'c, Self>, ConnectionError>

get matching font names and information. Read more
Source§

fn set_font_path<'c, 'input>( &'c self, font: &'input [Str], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn get_font_path( &self, ) -> Result<Cookie<'_, Self, GetFontPathReply>, ConnectionError>

Source§

fn create_pixmap( &self, depth: u8, pid: u32, drawable: u32, width: u16, height: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Creates a pixmap. Read more
Source§

fn free_pixmap( &self, pixmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Destroys a pixmap. Read more
Source§

fn create_gc<'c, 'input>( &'c self, cid: u32, drawable: u32, value_list: &'input CreateGCAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Creates a graphics context. Read more
Source§

fn change_gc<'c, 'input>( &'c self, gc: u32, value_list: &'input ChangeGCAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

change graphics context components. Read more
Source§

fn copy_gc( &self, src_gc: u32, dst_gc: u32, value_mask: GC, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn set_dashes<'c, 'input>( &'c self, gc: u32, dash_offset: u16, dashes: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn set_clip_rectangles<'c, 'input>( &'c self, ordering: ClipOrdering, gc: u32, clip_x_origin: i16, clip_y_origin: i16, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn free_gc(&self, gc: u32) -> Result<VoidCookie<'_, Self>, ConnectionError>

Destroys a graphics context. Read more
Source§

fn clear_area( &self, exposures: bool, window: u32, x: i16, y: i16, width: u16, height: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn copy_area( &self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

copy areas. Read more
Source§

fn copy_plane( &self, src_drawable: u32, dst_drawable: u32, gc: u32, src_x: i16, src_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, bit_plane: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn poly_point<'c, 'input>( &'c self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: &'input [Point], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn poly_line<'c, 'input>( &'c self, coordinate_mode: CoordMode, drawable: u32, gc: u32, points: &'input [Point], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

draw lines. Read more
Source§

fn poly_segment<'c, 'input>( &'c self, drawable: u32, gc: u32, segments: &'input [Segment], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

draw lines. Read more
Source§

fn poly_rectangle<'c, 'input>( &'c self, drawable: u32, gc: u32, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn poly_arc<'c, 'input>( &'c self, drawable: u32, gc: u32, arcs: &'input [Arc], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn fill_poly<'c, 'input>( &'c self, drawable: u32, gc: u32, shape: PolyShape, coordinate_mode: CoordMode, points: &'input [Point], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn poly_fill_rectangle<'c, 'input>( &'c self, drawable: u32, gc: u32, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Fills rectangles. Read more
Source§

fn poly_fill_arc<'c, 'input>( &'c self, drawable: u32, gc: u32, arcs: &'input [Arc], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn put_image<'c, 'input>( &'c self, format: ImageFormat, drawable: u32, gc: u32, width: u16, height: u16, dst_x: i16, dst_y: i16, left_pad: u8, depth: u8, data: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn get_image( &self, format: ImageFormat, drawable: u32, x: i16, y: i16, width: u16, height: u16, plane_mask: u32, ) -> Result<Cookie<'_, Self, GetImageReply>, ConnectionError>

Source§

fn poly_text8<'c, 'input>( &'c self, drawable: u32, gc: u32, x: i16, y: i16, items: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn poly_text16<'c, 'input>( &'c self, drawable: u32, gc: u32, x: i16, y: i16, items: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn image_text8<'c, 'input>( &'c self, drawable: u32, gc: u32, x: i16, y: i16, string: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Draws text. Read more
Source§

fn image_text16<'c, 'input>( &'c self, drawable: u32, gc: u32, x: i16, y: i16, string: &'input [Char2b], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Draws text. Read more
Source§

fn create_colormap( &self, alloc: ColormapAlloc, mid: u32, window: u32, visual: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn free_colormap( &self, cmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn copy_colormap_and_free( &self, mid: u32, src_cmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn install_colormap( &self, cmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn uninstall_colormap( &self, cmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn list_installed_colormaps( &self, window: u32, ) -> Result<Cookie<'_, Self, ListInstalledColormapsReply>, ConnectionError>

Source§

fn alloc_color( &self, cmap: u32, red: u16, green: u16, blue: u16, ) -> Result<Cookie<'_, Self, AllocColorReply>, ConnectionError>

Allocate a color. Read more
Source§

fn alloc_named_color<'c, 'input>( &'c self, cmap: u32, name: &'input [u8], ) -> Result<Cookie<'c, Self, AllocNamedColorReply>, ConnectionError>

Source§

fn alloc_color_cells( &self, contiguous: bool, cmap: u32, colors: u16, planes: u16, ) -> Result<Cookie<'_, Self, AllocColorCellsReply>, ConnectionError>

Source§

fn alloc_color_planes( &self, contiguous: bool, cmap: u32, colors: u16, reds: u16, greens: u16, blues: u16, ) -> Result<Cookie<'_, Self, AllocColorPlanesReply>, ConnectionError>

Source§

fn free_colors<'c, 'input>( &'c self, cmap: u32, plane_mask: u32, pixels: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn store_colors<'c, 'input>( &'c self, cmap: u32, items: &'input [Coloritem], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn store_named_color<'c, 'input>( &'c self, flags: ColorFlag, cmap: u32, pixel: u32, name: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn query_colors<'c, 'input>( &'c self, cmap: u32, pixels: &'input [u32], ) -> Result<Cookie<'c, Self, QueryColorsReply>, ConnectionError>

Source§

fn lookup_color<'c, 'input>( &'c self, cmap: u32, name: &'input [u8], ) -> Result<Cookie<'c, Self, LookupColorReply>, ConnectionError>

Source§

fn create_cursor<A>( &self, cid: u32, source: u32, mask: A, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, x: u16, y: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

Source§

fn create_glyph_cursor<A>( &self, cid: u32, source_font: u32, mask_font: A, source_char: u16, mask_char: u16, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

create cursor. Read more
Source§

fn free_cursor( &self, cursor: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Deletes a cursor. Read more
Source§

fn recolor_cursor( &self, cursor: u32, fore_red: u16, fore_green: u16, fore_blue: u16, back_red: u16, back_green: u16, back_blue: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn query_best_size( &self, class: QueryShapeOf, drawable: u32, width: u16, height: u16, ) -> Result<Cookie<'_, Self, QueryBestSizeReply>, ConnectionError>

Source§

fn query_extension<'c, 'input>( &'c self, name: &'input [u8], ) -> Result<Cookie<'c, Self, QueryExtensionReply>, ConnectionError>

check if extension is present. Read more
Source§

fn list_extensions( &self, ) -> Result<Cookie<'_, Self, ListExtensionsReply>, ConnectionError>

Source§

fn change_keyboard_mapping<'c, 'input>( &'c self, keycode_count: u8, first_keycode: u8, keysyms_per_keycode: u8, keysyms: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn get_keyboard_mapping( &self, first_keycode: u8, count: u8, ) -> Result<Cookie<'_, Self, GetKeyboardMappingReply>, ConnectionError>

Source§

fn change_keyboard_control<'c, 'input>( &'c self, value_list: &'input ChangeKeyboardControlAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn get_keyboard_control( &self, ) -> Result<Cookie<'_, Self, GetKeyboardControlReply>, ConnectionError>

Source§

fn bell(&self, percent: i8) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn change_pointer_control( &self, acceleration_numerator: i16, acceleration_denominator: i16, threshold: i16, do_acceleration: bool, do_threshold: bool, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn get_pointer_control( &self, ) -> Result<Cookie<'_, Self, GetPointerControlReply>, ConnectionError>

Source§

fn set_screen_saver( &self, timeout: i16, interval: i16, prefer_blanking: Blanking, allow_exposures: Exposures, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn get_screen_saver( &self, ) -> Result<Cookie<'_, Self, GetScreenSaverReply>, ConnectionError>

Source§

fn change_hosts<'c, 'input>( &'c self, mode: HostMode, family: Family, address: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn list_hosts( &self, ) -> Result<Cookie<'_, Self, ListHostsReply>, ConnectionError>

Source§

fn set_access_control( &self, mode: AccessControl, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn set_close_down_mode( &self, mode: CloseDown, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn kill_client<A>( &self, resource: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

kills a client. Read more
Source§

fn rotate_properties<'c, 'input>( &'c self, window: u32, delta: i16, atoms: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn force_screen_saver( &self, mode: ScreenSaver, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn set_pointer_mapping<'c, 'input>( &'c self, map: &'input [u8], ) -> Result<Cookie<'c, Self, SetPointerMappingReply>, ConnectionError>

Source§

fn get_pointer_mapping( &self, ) -> Result<Cookie<'_, Self, GetPointerMappingReply>, ConnectionError>

Source§

fn set_modifier_mapping<'c, 'input>( &'c self, keycodes: &'input [u8], ) -> Result<Cookie<'c, Self, SetModifierMappingReply>, ConnectionError>

Source§

fn get_modifier_mapping( &self, ) -> Result<Cookie<'_, Self, GetModifierMappingReply>, ConnectionError>

Source§

fn no_operation(&self) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

impl<C> ConnectionExt for C

Source§

fn xkb_use_extension( &self, wanted_major: u16, wanted_minor: u16, ) -> Result<Cookie<'_, Self, UseExtensionReply>, ConnectionError>

Source§

fn xkb_select_events<'c, 'input>( &'c self, device_spec: u16, clear: EventType, select_all: EventType, affect_map: MapPart, map: MapPart, details: &'input SelectEventsAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xkb_bell( &self, device_spec: u16, bell_class: u16, bell_id: u16, percent: i8, force_sound: bool, event_only: bool, pitch: i16, duration: i16, name: u32, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xkb_get_state( &self, device_spec: u16, ) -> Result<Cookie<'_, Self, GetStateReply>, ConnectionError>

Source§

fn xkb_latch_lock_state( &self, device_spec: u16, affect_mod_locks: ModMask, mod_locks: ModMask, lock_group: bool, group_lock: Group, affect_mod_latches: ModMask, latch_group: bool, group_latch: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xkb_get_controls( &self, device_spec: u16, ) -> Result<Cookie<'_, Self, GetControlsReply>, ConnectionError>

Source§

fn xkb_set_controls<'c, 'input>( &'c self, device_spec: u16, affect_internal_real_mods: ModMask, internal_real_mods: ModMask, affect_ignore_lock_real_mods: ModMask, ignore_lock_real_mods: ModMask, affect_internal_virtual_mods: VMod, internal_virtual_mods: VMod, affect_ignore_lock_virtual_mods: VMod, ignore_lock_virtual_mods: VMod, mouse_keys_dflt_btn: u8, groups_wrap: u8, access_x_options: AXOption, affect_enabled_controls: BoolCtrl, enabled_controls: BoolCtrl, change_controls: Control, repeat_delay: u16, repeat_interval: u16, slow_keys_delay: u16, debounce_delay: u16, mouse_keys_delay: u16, mouse_keys_interval: u16, mouse_keys_time_to_max: u16, mouse_keys_max_speed: u16, mouse_keys_curve: i16, access_x_timeout: u16, access_x_timeout_mask: BoolCtrl, access_x_timeout_values: BoolCtrl, access_x_timeout_options_mask: AXOption, access_x_timeout_options_values: AXOption, per_key_repeat: &'input [u8; 32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xkb_get_map( &self, device_spec: u16, full: MapPart, partial: MapPart, first_type: u8, n_types: u8, first_key_sym: u8, n_key_syms: u8, first_key_action: u8, n_key_actions: u8, first_key_behavior: u8, n_key_behaviors: u8, virtual_mods: VMod, first_key_explicit: u8, n_key_explicit: u8, first_mod_map_key: u8, n_mod_map_keys: u8, first_v_mod_map_key: u8, n_v_mod_map_keys: u8, ) -> Result<Cookie<'_, Self, GetMapReply>, ConnectionError>

Source§

fn xkb_set_map<'c, 'input>( &'c self, device_spec: u16, flags: SetMapFlags, min_key_code: u8, max_key_code: u8, first_type: u8, n_types: u8, first_key_sym: u8, n_key_syms: u8, total_syms: u16, first_key_action: u8, n_key_actions: u8, total_actions: u16, first_key_behavior: u8, n_key_behaviors: u8, total_key_behaviors: u8, first_key_explicit: u8, n_key_explicit: u8, total_key_explicit: u8, first_mod_map_key: u8, n_mod_map_keys: u8, total_mod_map_keys: u8, first_v_mod_map_key: u8, n_v_mod_map_keys: u8, total_v_mod_map_keys: u8, virtual_mods: VMod, values: &'input SetMapAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xkb_get_compat_map( &self, device_spec: u16, groups: SetOfGroup, get_all_si: bool, first_si: u16, n_si: u16, ) -> Result<Cookie<'_, Self, GetCompatMapReply>, ConnectionError>

Source§

fn xkb_set_compat_map<'c, 'input>( &'c self, device_spec: u16, recompute_actions: bool, truncate_si: bool, groups: SetOfGroup, first_si: u16, si: &'input [SymInterpret], group_maps: &'input [ModDef], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xkb_get_indicator_state( &self, device_spec: u16, ) -> Result<Cookie<'_, Self, GetIndicatorStateReply>, ConnectionError>

Source§

fn xkb_get_indicator_map( &self, device_spec: u16, which: u32, ) -> Result<Cookie<'_, Self, GetIndicatorMapReply>, ConnectionError>

Source§

fn xkb_set_indicator_map<'c, 'input>( &'c self, device_spec: u16, which: u32, maps: &'input [IndicatorMap], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xkb_get_named_indicator<A>( &self, device_spec: u16, led_class: LedClass, led_id: A, indicator: u32, ) -> Result<Cookie<'_, Self, GetNamedIndicatorReply>, ConnectionError>
where A: Into<u16>,

Source§

fn xkb_set_named_indicator<A>( &self, device_spec: u16, led_class: LedClass, led_id: A, indicator: u32, set_state: bool, on: bool, set_map: bool, create_map: bool, map_flags: IMFlag, map_which_groups: IMGroupsWhich, map_groups: SetOfGroups, map_which_mods: IMModsWhich, map_real_mods: ModMask, map_vmods: VMod, map_ctrls: BoolCtrl, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u16>,

Source§

fn xkb_get_names( &self, device_spec: u16, which: NameDetail, ) -> Result<Cookie<'_, Self, GetNamesReply>, ConnectionError>

Source§

fn xkb_set_names<'c, 'input>( &'c self, device_spec: u16, virtual_mods: VMod, first_type: u8, n_types: u8, first_kt_levelt: u8, n_kt_levels: u8, indicators: u32, group_names: SetOfGroup, n_radio_groups: u8, first_key: u8, n_keys: u8, n_key_aliases: u8, total_kt_level_names: u16, values: &'input SetNamesAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xkb_per_client_flags( &self, device_spec: u16, change: PerClientFlag, value: PerClientFlag, ctrls_to_change: BoolCtrl, auto_ctrls: BoolCtrl, auto_ctrls_values: BoolCtrl, ) -> Result<Cookie<'_, Self, PerClientFlagsReply>, ConnectionError>

Source§

fn xkb_list_components( &self, device_spec: u16, max_names: u16, ) -> Result<Cookie<'_, Self, ListComponentsReply>, ConnectionError>

Source§

fn xkb_get_kbd_by_name( &self, device_spec: u16, need: GBNDetail, want: GBNDetail, load: bool, ) -> Result<Cookie<'_, Self, GetKbdByNameReply>, ConnectionError>

Source§

fn xkb_get_device_info<A>( &self, device_spec: u16, wanted: XIFeature, all_buttons: bool, first_button: u8, n_buttons: u8, led_class: LedClass, led_id: A, ) -> Result<Cookie<'_, Self, GetDeviceInfoReply>, ConnectionError>
where A: Into<u16>,

Source§

fn xkb_set_device_info<'c, 'input>( &'c self, device_spec: u16, first_btn: u8, change: XIFeature, btn_actions: &'input [Action], leds: &'input [DeviceLedInfo], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xkb_set_debugging_flags<'c, 'input>( &'c self, affect_flags: u32, flags: u32, affect_ctrls: u32, ctrls: u32, message: &'input [u8], ) -> Result<Cookie<'c, Self, SetDebuggingFlagsReply>, ConnectionError>

Source§

impl<C> ConnectionExt for C

Source§

fn bigreq_enable( &self, ) -> Result<Cookie<'_, Self, EnableReply>, ConnectionError>

Enable the BIG-REQUESTS extension. Read more
Source§

impl<C> ConnectionExt for C

Source§

fn ge_query_version( &self, client_major_version: u16, client_minor_version: u16, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>

Source§

impl<C> ConnectionExt for C

Source§

fn randr_query_version( &self, major_version: u32, minor_version: u32, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>

Source§

fn randr_set_screen_config( &self, window: u32, timestamp: u32, config_timestamp: u32, size_id: u16, rotation: Rotation, rate: u16, ) -> Result<Cookie<'_, Self, SetScreenConfigReply>, ConnectionError>

Source§

fn randr_select_input( &self, window: u32, enable: NotifyMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_get_screen_info( &self, window: u32, ) -> Result<Cookie<'_, Self, GetScreenInfoReply>, ConnectionError>

Source§

fn randr_get_screen_size_range( &self, window: u32, ) -> Result<Cookie<'_, Self, GetScreenSizeRangeReply>, ConnectionError>

Source§

fn randr_set_screen_size( &self, window: u32, width: u16, height: u16, mm_width: u32, mm_height: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_get_screen_resources( &self, window: u32, ) -> Result<Cookie<'_, Self, GetScreenResourcesReply>, ConnectionError>

Source§

fn randr_get_output_info( &self, output: u32, config_timestamp: u32, ) -> Result<Cookie<'_, Self, GetOutputInfoReply>, ConnectionError>

Source§

fn randr_list_output_properties( &self, output: u32, ) -> Result<Cookie<'_, Self, ListOutputPropertiesReply>, ConnectionError>

Source§

fn randr_query_output_property( &self, output: u32, property: u32, ) -> Result<Cookie<'_, Self, QueryOutputPropertyReply>, ConnectionError>

Source§

fn randr_configure_output_property<'c, 'input>( &'c self, output: u32, property: u32, pending: bool, range: bool, values: &'input [i32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn randr_change_output_property<'c, 'input>( &'c self, output: u32, property: u32, type_: u32, format: u8, mode: PropMode, num_units: u32, data: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn randr_delete_output_property( &self, output: u32, property: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_get_output_property<A>( &self, output: u32, property: u32, type_: A, long_offset: u32, long_length: u32, delete: bool, pending: bool, ) -> Result<Cookie<'_, Self, GetOutputPropertyReply>, ConnectionError>
where A: Into<u32>,

Source§

fn randr_create_mode<'c, 'input>( &'c self, window: u32, mode_info: ModeInfo, name: &'input [u8], ) -> Result<Cookie<'c, Self, CreateModeReply>, ConnectionError>

Source§

fn randr_destroy_mode( &self, mode: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_add_output_mode( &self, output: u32, mode: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_delete_output_mode( &self, output: u32, mode: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_get_crtc_info( &self, crtc: u32, config_timestamp: u32, ) -> Result<Cookie<'_, Self, GetCrtcInfoReply>, ConnectionError>

Source§

fn randr_set_crtc_config<'c, 'input>( &'c self, crtc: u32, timestamp: u32, config_timestamp: u32, x: i16, y: i16, mode: u32, rotation: Rotation, outputs: &'input [u32], ) -> Result<Cookie<'c, Self, SetCrtcConfigReply>, ConnectionError>

Source§

fn randr_get_crtc_gamma_size( &self, crtc: u32, ) -> Result<Cookie<'_, Self, GetCrtcGammaSizeReply>, ConnectionError>

Source§

fn randr_get_crtc_gamma( &self, crtc: u32, ) -> Result<Cookie<'_, Self, GetCrtcGammaReply>, ConnectionError>

Source§

fn randr_set_crtc_gamma<'c, 'input>( &'c self, crtc: u32, red: &'input [u16], green: &'input [u16], blue: &'input [u16], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn randr_get_screen_resources_current( &self, window: u32, ) -> Result<Cookie<'_, Self, GetScreenResourcesCurrentReply>, ConnectionError>

Source§

fn randr_set_crtc_transform<'c, 'input>( &'c self, crtc: u32, transform: Transform, filter_name: &'input [u8], filter_params: &'input [i32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn randr_get_crtc_transform( &self, crtc: u32, ) -> Result<Cookie<'_, Self, GetCrtcTransformReply>, ConnectionError>

Source§

fn randr_get_panning( &self, crtc: u32, ) -> Result<Cookie<'_, Self, GetPanningReply>, ConnectionError>

Source§

fn randr_set_panning( &self, crtc: u32, timestamp: u32, left: u16, top: u16, width: u16, height: u16, track_left: u16, track_top: u16, track_width: u16, track_height: u16, border_left: i16, border_top: i16, border_right: i16, border_bottom: i16, ) -> Result<Cookie<'_, Self, SetPanningReply>, ConnectionError>

Source§

fn randr_set_output_primary( &self, window: u32, output: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_get_output_primary( &self, window: u32, ) -> Result<Cookie<'_, Self, GetOutputPrimaryReply>, ConnectionError>

Source§

fn randr_get_providers( &self, window: u32, ) -> Result<Cookie<'_, Self, GetProvidersReply>, ConnectionError>

Source§

fn randr_get_provider_info( &self, provider: u32, config_timestamp: u32, ) -> Result<Cookie<'_, Self, GetProviderInfoReply>, ConnectionError>

Source§

fn randr_set_provider_offload_sink( &self, provider: u32, sink_provider: u32, config_timestamp: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_set_provider_output_source( &self, provider: u32, source_provider: u32, config_timestamp: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_list_provider_properties( &self, provider: u32, ) -> Result<Cookie<'_, Self, ListProviderPropertiesReply>, ConnectionError>

Source§

fn randr_query_provider_property( &self, provider: u32, property: u32, ) -> Result<Cookie<'_, Self, QueryProviderPropertyReply>, ConnectionError>

Source§

fn randr_configure_provider_property<'c, 'input>( &'c self, provider: u32, property: u32, pending: bool, range: bool, values: &'input [i32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn randr_change_provider_property<'c, 'input>( &'c self, provider: u32, property: u32, type_: u32, format: u8, mode: u8, num_items: u32, data: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn randr_delete_provider_property( &self, provider: u32, property: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_get_provider_property( &self, provider: u32, property: u32, type_: u32, long_offset: u32, long_length: u32, delete: bool, pending: bool, ) -> Result<Cookie<'_, Self, GetProviderPropertyReply>, ConnectionError>

Source§

fn randr_get_monitors( &self, window: u32, get_active: bool, ) -> Result<Cookie<'_, Self, GetMonitorsReply>, ConnectionError>

Source§

fn randr_set_monitor( &self, window: u32, monitorinfo: MonitorInfo, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_delete_monitor( &self, window: u32, name: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn randr_create_lease<'c, 'input>( &'c self, window: u32, lid: u32, crtcs: &'input [u32], outputs: &'input [u32], ) -> Result<CookieWithFds<'c, Self, CreateLeaseReply>, ConnectionError>

Source§

fn randr_free_lease( &self, lid: u32, terminate: u8, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

impl<C> ConnectionExt for C

Source§

fn render_query_version( &self, client_major_version: u32, client_minor_version: u32, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>

Source§

fn render_query_pict_formats( &self, ) -> Result<Cookie<'_, Self, QueryPictFormatsReply>, ConnectionError>

Source§

fn render_query_pict_index_values( &self, format: u32, ) -> Result<Cookie<'_, Self, QueryPictIndexValuesReply>, ConnectionError>

Source§

fn render_create_picture<'c, 'input>( &'c self, pid: u32, drawable: u32, format: u32, value_list: &'input CreatePictureAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_change_picture<'c, 'input>( &'c self, picture: u32, value_list: &'input ChangePictureAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_set_picture_clip_rectangles<'c, 'input>( &'c self, picture: u32, clip_x_origin: i16, clip_y_origin: i16, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_free_picture( &self, picture: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn render_composite<A>( &self, op: PictOp, src: u32, mask: A, dst: u32, src_x: i16, src_y: i16, mask_x: i16, mask_y: i16, dst_x: i16, dst_y: i16, width: u16, height: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

Source§

fn render_trapezoids<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, src_x: i16, src_y: i16, traps: &'input [Trapezoid], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_triangles<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, src_x: i16, src_y: i16, triangles: &'input [Triangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_tri_strip<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, src_x: i16, src_y: i16, points: &'input [Pointfix], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_tri_fan<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, src_x: i16, src_y: i16, points: &'input [Pointfix], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_create_glyph_set( &self, gsid: u32, format: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn render_reference_glyph_set( &self, gsid: u32, existing: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn render_free_glyph_set( &self, glyphset: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn render_add_glyphs<'c, 'input>( &'c self, glyphset: u32, glyphids: &'input [u32], glyphs: &'input [Glyphinfo], data: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_free_glyphs<'c, 'input>( &'c self, glyphset: u32, glyphs: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_composite_glyphs8<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, glyphset: u32, src_x: i16, src_y: i16, glyphcmds: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_composite_glyphs16<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, glyphset: u32, src_x: i16, src_y: i16, glyphcmds: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_composite_glyphs32<'c, 'input>( &'c self, op: PictOp, src: u32, dst: u32, mask_format: u32, glyphset: u32, src_x: i16, src_y: i16, glyphcmds: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_fill_rectangles<'c, 'input>( &'c self, op: PictOp, dst: u32, color: Color, rects: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_create_cursor( &self, cid: u32, source: u32, x: u16, y: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn render_set_picture_transform( &self, picture: u32, transform: Transform, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn render_query_filters( &self, drawable: u32, ) -> Result<Cookie<'_, Self, QueryFiltersReply>, ConnectionError>

Source§

fn render_set_picture_filter<'c, 'input>( &'c self, picture: u32, filter: &'input [u8], values: &'input [i32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_create_anim_cursor<'c, 'input>( &'c self, cid: u32, cursors: &'input [Animcursorelt], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_add_traps<'c, 'input>( &'c self, picture: u32, x_off: i16, y_off: i16, traps: &'input [Trap], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_create_solid_fill( &self, picture: u32, color: Color, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn render_create_linear_gradient<'c, 'input>( &'c self, picture: u32, p1: Pointfix, p2: Pointfix, stops: &'input [i32], colors: &'input [Color], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_create_radial_gradient<'c, 'input>( &'c self, picture: u32, inner: Pointfix, outer: Pointfix, inner_radius: i32, outer_radius: i32, stops: &'input [i32], colors: &'input [Color], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn render_create_conical_gradient<'c, 'input>( &'c self, picture: u32, center: Pointfix, angle: i32, stops: &'input [i32], colors: &'input [Color], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

impl<C> ConnectionExt for C

Source§

fn shape_query_version( &self, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>

Source§

fn shape_rectangles<'c, 'input>( &'c self, operation: SO, destination_kind: SK, ordering: ClipOrdering, destination_window: u32, x_offset: i16, y_offset: i16, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn shape_mask<A>( &self, operation: SO, destination_kind: SK, destination_window: u32, x_offset: i16, y_offset: i16, source_bitmap: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

Source§

fn shape_combine( &self, operation: SO, destination_kind: SK, source_kind: SK, destination_window: u32, x_offset: i16, y_offset: i16, source_window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn shape_offset( &self, destination_kind: SK, destination_window: u32, x_offset: i16, y_offset: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn shape_query_extents( &self, destination_window: u32, ) -> Result<Cookie<'_, Self, QueryExtentsReply>, ConnectionError>

Source§

fn shape_select_input( &self, destination_window: u32, enable: bool, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn shape_input_selected( &self, destination_window: u32, ) -> Result<Cookie<'_, Self, InputSelectedReply>, ConnectionError>

Source§

fn shape_get_rectangles( &self, window: u32, source_kind: SK, ) -> Result<Cookie<'_, Self, GetRectanglesReply>, ConnectionError>

Source§

impl<C> ConnectionExt for C

Source§

fn xc_misc_get_version( &self, client_major_version: u16, client_minor_version: u16, ) -> Result<Cookie<'_, Self, GetVersionReply>, ConnectionError>

Source§

fn xc_misc_get_xid_range( &self, ) -> Result<Cookie<'_, Self, GetXIDRangeReply>, ConnectionError>

Source§

fn xc_misc_get_xid_list( &self, count: u32, ) -> Result<Cookie<'_, Self, GetXIDListReply>, ConnectionError>

Source§

impl<C> ConnectionExt for C

Source§

fn xfixes_query_version( &self, client_major_version: u32, client_minor_version: u32, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>

Source§

fn xfixes_change_save_set( &self, mode: SaveSetMode, target: SaveSetTarget, map: SaveSetMapping, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_select_selection_input( &self, window: u32, selection: u32, event_mask: SelectionEventMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_select_cursor_input( &self, window: u32, event_mask: CursorNotifyMask, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_get_cursor_image( &self, ) -> Result<Cookie<'_, Self, GetCursorImageReply>, ConnectionError>

Source§

fn xfixes_create_region<'c, 'input>( &'c self, region: u32, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xfixes_create_region_from_bitmap( &self, region: u32, bitmap: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_create_region_from_window( &self, region: u32, window: u32, kind: SK, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_create_region_from_gc( &self, region: u32, gc: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_create_region_from_picture( &self, region: u32, picture: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_destroy_region( &self, region: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_set_region<'c, 'input>( &'c self, region: u32, rectangles: &'input [Rectangle], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xfixes_copy_region( &self, source: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_union_region( &self, source1: u32, source2: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_intersect_region( &self, source1: u32, source2: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_subtract_region( &self, source1: u32, source2: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_invert_region( &self, source: u32, bounds: Rectangle, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_translate_region( &self, region: u32, dx: i16, dy: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_region_extents( &self, source: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_fetch_region( &self, region: u32, ) -> Result<Cookie<'_, Self, FetchRegionReply>, ConnectionError>

Source§

fn xfixes_set_gc_clip_region<A>( &self, gc: u32, region: A, x_origin: i16, y_origin: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

Source§

fn xfixes_set_window_shape_region<A>( &self, dest: u32, dest_kind: SK, x_offset: i16, y_offset: i16, region: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

Source§

fn xfixes_set_picture_clip_region<A>( &self, picture: u32, region: A, x_origin: i16, y_origin: i16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

Source§

fn xfixes_set_cursor_name<'c, 'input>( &'c self, cursor: u32, name: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xfixes_get_cursor_name( &self, cursor: u32, ) -> Result<Cookie<'_, Self, GetCursorNameReply>, ConnectionError>

Source§

fn xfixes_get_cursor_image_and_name( &self, ) -> Result<Cookie<'_, Self, GetCursorImageAndNameReply>, ConnectionError>

Source§

fn xfixes_change_cursor( &self, source: u32, destination: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_change_cursor_by_name<'c, 'input>( &'c self, src: u32, name: &'input [u8], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xfixes_expand_region( &self, source: u32, destination: u32, left: u16, right: u16, top: u16, bottom: u16, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_hide_cursor( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_show_cursor( &self, window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_create_pointer_barrier<'c, 'input>( &'c self, barrier: u32, window: u32, x1: u16, y1: u16, x2: u16, y2: u16, directions: BarrierDirections, devices: &'input [u16], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xfixes_delete_pointer_barrier( &self, barrier: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xfixes_set_client_disconnect_mode( &self, disconnect_mode: ClientDisconnectFlags, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Sets the disconnect mode for the client.. Read more
Source§

fn xfixes_get_client_disconnect_mode( &self, ) -> Result<Cookie<'_, Self, GetClientDisconnectModeReply>, ConnectionError>

Source§

impl<C> ConnectionExt for C

Source§

fn xinput_get_extension_version<'c, 'input>( &'c self, name: &'input [u8], ) -> Result<Cookie<'c, Self, GetExtensionVersionReply>, ConnectionError>

Source§

fn xinput_list_input_devices( &self, ) -> Result<Cookie<'_, Self, ListInputDevicesReply>, ConnectionError>

Source§

fn xinput_open_device( &self, device_id: u8, ) -> Result<Cookie<'_, Self, OpenDeviceReply>, ConnectionError>

Source§

fn xinput_close_device( &self, device_id: u8, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xinput_set_device_mode( &self, device_id: u8, mode: ValuatorMode, ) -> Result<Cookie<'_, Self, SetDeviceModeReply>, ConnectionError>

Source§

fn xinput_select_extension_event<'c, 'input>( &'c self, window: u32, classes: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xinput_get_selected_extension_events( &self, window: u32, ) -> Result<Cookie<'_, Self, GetSelectedExtensionEventsReply>, ConnectionError>

Source§

fn xinput_change_device_dont_propagate_list<'c, 'input>( &'c self, window: u32, mode: PropagateMode, classes: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xinput_get_device_dont_propagate_list( &self, window: u32, ) -> Result<Cookie<'_, Self, GetDeviceDontPropagateListReply>, ConnectionError>

Source§

fn xinput_get_device_motion_events<A>( &self, start: u32, stop: A, device_id: u8, ) -> Result<Cookie<'_, Self, GetDeviceMotionEventsReply>, ConnectionError>
where A: Into<u32>,

Source§

fn xinput_change_keyboard_device( &self, device_id: u8, ) -> Result<Cookie<'_, Self, ChangeKeyboardDeviceReply>, ConnectionError>

Source§

fn xinput_change_pointer_device( &self, x_axis: u8, y_axis: u8, device_id: u8, ) -> Result<Cookie<'_, Self, ChangePointerDeviceReply>, ConnectionError>

Source§

fn xinput_grab_device<'c, 'input, A>( &'c self, grab_window: u32, time: A, this_device_mode: GrabMode, other_device_mode: GrabMode, owner_events: bool, device_id: u8, classes: &'input [u32], ) -> Result<Cookie<'c, Self, GrabDeviceReply>, ConnectionError>
where A: Into<u32>,

Source§

fn xinput_ungrab_device<A>( &self, time: A, device_id: u8, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

Source§

fn xinput_grab_device_key<'c, 'input, A, B>( &'c self, grab_window: u32, modifiers: ModMask, modifier_device: A, grabbed_device: u8, key: B, this_device_mode: GrabMode, other_device_mode: GrabMode, owner_events: bool, classes: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
where A: Into<u8>, B: Into<u8>,

Source§

fn xinput_ungrab_device_key<A, B>( &self, grab_window: u32, modifiers: ModMask, modifier_device: A, key: B, grabbed_device: u8, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u8>, B: Into<u8>,

Source§

fn xinput_grab_device_button<'c, 'input, A, B>( &'c self, grab_window: u32, grabbed_device: u8, modifier_device: A, modifiers: ModMask, this_device_mode: GrabMode, other_device_mode: GrabMode, button: B, owner_events: bool, classes: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
where A: Into<u8>, B: Into<u8>,

Source§

fn xinput_ungrab_device_button<A, B>( &self, grab_window: u32, modifiers: ModMask, modifier_device: A, button: B, grabbed_device: u8, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u8>, B: Into<u8>,

Source§

fn xinput_allow_device_events<A>( &self, time: A, mode: DeviceInputMode, device_id: u8, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>,

Source§

fn xinput_get_device_focus( &self, device_id: u8, ) -> Result<Cookie<'_, Self, GetDeviceFocusReply>, ConnectionError>

Source§

fn xinput_set_device_focus<A, B>( &self, focus: A, time: B, revert_to: InputFocus, device_id: u8, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u32>,

Source§

fn xinput_get_feedback_control( &self, device_id: u8, ) -> Result<Cookie<'_, Self, GetFeedbackControlReply>, ConnectionError>

Source§

fn xinput_change_feedback_control( &self, mask: ChangeFeedbackControlMask, device_id: u8, feedback_id: u8, feedback: FeedbackCtl, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xinput_get_device_key_mapping( &self, device_id: u8, first_keycode: u8, count: u8, ) -> Result<Cookie<'_, Self, GetDeviceKeyMappingReply>, ConnectionError>

Source§

fn xinput_change_device_key_mapping<'c, 'input>( &'c self, device_id: u8, first_keycode: u8, keysyms_per_keycode: u8, keycode_count: u8, keysyms: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xinput_get_device_modifier_mapping( &self, device_id: u8, ) -> Result<Cookie<'_, Self, GetDeviceModifierMappingReply>, ConnectionError>

Source§

fn xinput_set_device_modifier_mapping<'c, 'input>( &'c self, device_id: u8, keymaps: &'input [u8], ) -> Result<Cookie<'c, Self, SetDeviceModifierMappingReply>, ConnectionError>

Source§

fn xinput_get_device_button_mapping( &self, device_id: u8, ) -> Result<Cookie<'_, Self, GetDeviceButtonMappingReply>, ConnectionError>

Source§

fn xinput_set_device_button_mapping<'c, 'input>( &'c self, device_id: u8, map: &'input [u8], ) -> Result<Cookie<'c, Self, SetDeviceButtonMappingReply>, ConnectionError>

Source§

fn xinput_query_device_state( &self, device_id: u8, ) -> Result<Cookie<'_, Self, QueryDeviceStateReply>, ConnectionError>

Source§

fn xinput_device_bell( &self, device_id: u8, feedback_id: u8, feedback_class: u8, percent: i8, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xinput_set_device_valuators<'c, 'input>( &'c self, device_id: u8, first_valuator: u8, valuators: &'input [i32], ) -> Result<Cookie<'c, Self, SetDeviceValuatorsReply>, ConnectionError>

Source§

fn xinput_get_device_control( &self, control_id: DeviceControl, device_id: u8, ) -> Result<Cookie<'_, Self, GetDeviceControlReply>, ConnectionError>

Source§

fn xinput_change_device_control( &self, control_id: DeviceControl, device_id: u8, control: DeviceCtl, ) -> Result<Cookie<'_, Self, ChangeDeviceControlReply>, ConnectionError>

Source§

fn xinput_list_device_properties( &self, device_id: u8, ) -> Result<Cookie<'_, Self, ListDevicePropertiesReply>, ConnectionError>

Source§

fn xinput_change_device_property<'c, 'input>( &'c self, property: u32, type_: u32, device_id: u8, mode: PropMode, num_items: u32, items: &'input ChangeDevicePropertyAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xinput_delete_device_property( &self, property: u32, device_id: u8, ) -> Result<VoidCookie<'_, Self>, ConnectionError>

Source§

fn xinput_get_device_property( &self, property: u32, type_: u32, offset: u32, len: u32, device_id: u8, delete: bool, ) -> Result<Cookie<'_, Self, GetDevicePropertyReply>, ConnectionError>

Source§

fn xinput_xi_query_pointer<A>( &self, window: u32, deviceid: A, ) -> Result<Cookie<'_, Self, XIQueryPointerReply>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_warp_pointer<A>( &self, src_win: u32, dst_win: u32, src_x: i32, src_y: i32, src_width: u16, src_height: u16, dst_x: i32, dst_y: i32, deviceid: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_change_cursor<A>( &self, window: u32, cursor: u32, deviceid: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_change_hierarchy<'c, 'input>( &'c self, changes: &'input [HierarchyChange], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xinput_xi_set_client_pointer<A>( &self, window: u32, deviceid: A, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_get_client_pointer( &self, window: u32, ) -> Result<Cookie<'_, Self, XIGetClientPointerReply>, ConnectionError>

Source§

fn xinput_xi_select_events<'c, 'input>( &'c self, window: u32, masks: &'input [EventMask], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xinput_xi_query_version( &self, major_version: u16, minor_version: u16, ) -> Result<Cookie<'_, Self, XIQueryVersionReply>, ConnectionError>

Source§

fn xinput_xi_query_device<A>( &self, deviceid: A, ) -> Result<Cookie<'_, Self, XIQueryDeviceReply>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_set_focus<A, B>( &self, window: u32, time: A, deviceid: B, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u16>,

Source§

fn xinput_xi_get_focus<A>( &self, deviceid: A, ) -> Result<Cookie<'_, Self, XIGetFocusReply>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_grab_device<'c, 'input, A, B>( &'c self, window: u32, time: A, cursor: u32, deviceid: B, mode: GrabMode, paired_device_mode: GrabMode, owner_events: GrabOwner, mask: &'input [u32], ) -> Result<Cookie<'c, Self, XIGrabDeviceReply>, ConnectionError>
where A: Into<u32>, B: Into<u16>,

Source§

fn xinput_xi_ungrab_device<A, B>( &self, time: A, deviceid: B, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u16>,

Source§

fn xinput_xi_allow_events<A, B>( &self, time: A, deviceid: B, event_mode: EventMode, touchid: u32, grab_window: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u32>, B: Into<u16>,

Source§

fn xinput_xi_passive_grab_device<'c, 'input, A, B>( &'c self, time: A, grab_window: u32, cursor: u32, detail: u32, deviceid: B, grab_type: GrabType, grab_mode: GrabMode22, paired_device_mode: GrabMode, owner_events: GrabOwner, mask: &'input [u32], modifiers: &'input [u32], ) -> Result<Cookie<'c, Self, XIPassiveGrabDeviceReply>, ConnectionError>
where A: Into<u32>, B: Into<u16>,

Source§

fn xinput_xi_passive_ungrab_device<'c, 'input, A>( &'c self, grab_window: u32, detail: u32, deviceid: A, grab_type: GrabType, modifiers: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_list_properties<A>( &self, deviceid: A, ) -> Result<Cookie<'_, Self, XIListPropertiesReply>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_change_property<'c, 'input, A>( &'c self, deviceid: A, mode: PropMode, property: u32, type_: u32, num_items: u32, items: &'input XIChangePropertyAux, ) -> Result<VoidCookie<'c, Self>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_delete_property<A>( &self, deviceid: A, property: u32, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_get_property<A>( &self, deviceid: A, delete: bool, property: u32, type_: u32, offset: u32, len: u32, ) -> Result<Cookie<'_, Self, XIGetPropertyReply>, ConnectionError>
where A: Into<u16>,

Source§

fn xinput_xi_get_selected_events( &self, window: u32, ) -> Result<Cookie<'_, Self, XIGetSelectedEventsReply>, ConnectionError>

Source§

fn xinput_xi_barrier_release_pointer<'c, 'input>( &'c self, barriers: &'input [BarrierReleasePointerInfo], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

fn xinput_send_extension_event<'c, 'input>( &'c self, destination: u32, device_id: u8, propagate: bool, events: &'input [EventForSend], classes: &'input [u32], ) -> Result<VoidCookie<'c, Self>, ConnectionError>

Source§

impl<C, F> ContainsToken<C> for F
where F: Fn(C) -> bool,

Source§

fn contains_token(&self, token: C) -> bool

Returns true if self contains the token
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> CryptoRngCore for T
where T: CryptoRng + RngCore,

Source§

fn as_rngcore(&mut self) -> &mut dyn RngCore

Upcast to an RngCore trait object.
Source§

impl<T, C, D> Curve<T> for D
where C: Curve<T> + ?Sized, D: Deref<Target = C>,

Source§

fn domain(&self) -> Interval

The interval over which this curve is parametrized. Read more
Source§

fn sample_unchecked(&self, t: f32) -> T

Sample a point on this curve at the parameter value t, extracting the associated value. This is the unchecked version of sampling, which should only be used if the sample time t is already known to lie within the curve’s domain. Read more
Source§

fn sample(&self, t: f32) -> Option<T>

Sample a point on this curve at the parameter value t, returning None if the point is outside of the curve’s domain.
Source§

fn sample_clamped(&self, t: f32) -> T

Sample a point on this curve at the parameter value t, clamping t to lie inside the domain of the curve.
Source§

impl<C, T> CurveExt<T> for C
where C: Curve<T>,

Source§

fn sample_iter( &self, iter: impl IntoIterator<Item = f32>, ) -> impl Iterator<Item = Option<T>>

Sample a collection of n >= 0 points on this curve at the parameter values t_n, returning None if the point is outside of the curve’s domain. Read more
Source§

fn sample_iter_unchecked( &self, iter: impl IntoIterator<Item = f32>, ) -> impl Iterator<Item = T>

Sample a collection of n >= 0 points on this curve at the parameter values t_n, extracting the associated values. This is the unchecked version of sampling, which should only be used if the sample times t_n are already known to lie within the curve’s domain. Read more
Source§

fn sample_iter_clamped( &self, iter: impl IntoIterator<Item = f32>, ) -> impl Iterator<Item = T>

Sample a collection of n >= 0 points on this curve at the parameter values t_n, clamping t_n to lie inside the domain of the curve. Read more
Source§

fn map<S, F>(self, f: F) -> MapCurve<T, S, Self, F>
where F: Fn(T) -> S,

Create a new curve by mapping the values of this curve via a function f; i.e., if the sample at time t for this curve is x, the value at time t on the new curve will be f(x).
Source§

fn reparametrize<F>(self, domain: Interval, f: F) -> ReparamCurve<T, Self, F>
where F: Fn(f32) -> f32,

Create a new Curve whose parameter space is related to the parameter space of this curve by f. For each time t, the sample from the new curve at time t is the sample from this curve at time f(t). The given domain will be the domain of the new curve. The function f is expected to take domain into self.domain(). Read more
Source§

fn reparametrize_linear( self, domain: Interval, ) -> Result<LinearReparamCurve<T, Self>, LinearReparamError>

Linearly reparametrize this Curve, producing a new curve whose domain is the given domain instead of the current one. This operation is only valid for curves with bounded domains. Read more
Source§

fn reparametrize_by_curve<C>(self, other: C) -> CurveReparamCurve<T, Self, C>
where C: Curve<f32>,

Reparametrize this Curve by sampling from another curve. Read more
Source§

fn graph(self) -> GraphCurve<T, Self>

Create a new Curve which is the graph of this one; that is, its output echoes the sample time as part of a tuple. Read more
Source§

fn zip<S, C>( self, other: C, ) -> Result<ZipCurve<T, S, Self, C>, InvalidIntervalError>
where C: Curve<S>,

Create a new Curve by zipping this curve together with another. Read more
Source§

fn chain<C>(self, other: C) -> Result<ChainCurve<T, Self, C>, ChainError>
where C: Curve<T>,

Create a new Curve by composing this curve end-to-start with another, producing another curve with outputs of the same type. The domain of the other curve is translated so that its start coincides with where this curve ends. Read more
Source§

fn reverse(self) -> Result<ReverseCurve<T, Self>, ReverseError>

Create a new Curve inverting this curve on the x-axis, producing another curve with outputs of the same type, effectively playing backwards starting at self.domain().end() and transitioning over to self.domain().start(). The domain of the new curve is still the same. Read more
Source§

fn repeat(self, count: usize) -> Result<RepeatCurve<T, Self>, RepeatError>

Create a new Curve repeating this curve N times, producing another curve with outputs of the same type. The domain of the new curve will be bigger by a factor of n + 1. Read more
Source§

fn forever(self) -> Result<ForeverCurve<T, Self>, RepeatError>

Create a new Curve repeating this curve forever, producing another curve with outputs of the same type. The domain of the new curve will be unbounded. Read more
Source§

fn ping_pong(self) -> Result<PingPongCurve<T, Self>, PingPongError>

Create a new Curve chaining the original curve with its inverse, producing another curve with outputs of the same type. The domain of the new curve will be twice as long. The transition point is guaranteed to not make any jumps. Read more
Source§

fn chain_continue<C>( self, other: C, ) -> Result<ContinuationCurve<T, Self, C>, ChainError>
where T: VectorSpace, C: Curve<T>,

Create a new Curve by composing this curve end-to-start with another, producing another curve with outputs of the same type. The domain of the other curve is translated so that its start coincides with where this curve ends. Read more
Source§

fn samples( &self, samples: usize, ) -> Result<impl Iterator<Item = T>, ResamplingError>

Extract an iterator over evenly-spaced samples from this curve. Read more
Source§

fn by_ref(&self) -> &Self

Borrow this curve rather than taking ownership of it. This is essentially an alias for a prefix &; the point is that intermediate operations can be performed while retaining access to the original curve. Read more
Source§

fn flip<U, V>(self) -> impl Curve<(V, U)>
where Self: CurveExt<(U, V)>,

Flip this curve so that its tuple output is arranged the other way.
Source§

impl<C, T> CurveResampleExt<T> for C
where C: Curve<T> + ?Sized,

Source§

fn resample<I>( &self, segments: usize, interpolation: I, ) -> Result<SampleCurve<T, I>, ResamplingError>
where I: Fn(&T, &T, f32) -> T,

Resample this Curve to produce a new one that is defined by interpolation over equally spaced sample values, using the provided interpolation to interpolate between adjacent samples. The curve is interpolated on segments segments between samples. For example, if segments is 1, only the start and end points of the curve are used as samples; if segments is 2, a sample at the midpoint is taken as well, and so on. Read more
Source§

fn resample_auto( &self, segments: usize, ) -> Result<SampleAutoCurve<T>, ResamplingError>

Resample this Curve to produce a new one that is defined by interpolation over equally spaced sample values, using automatic interpolation to interpolate between adjacent samples. The curve is interpolated on segments segments between samples. For example, if segments is 1, only the start and end points of the curve are used as samples; if segments is 2, a sample at the midpoint is taken as well, and so on. Read more
Source§

fn resample_uneven<I>( &self, sample_times: impl IntoIterator<Item = f32>, interpolation: I, ) -> Result<UnevenSampleCurve<T, I>, ResamplingError>
where I: Fn(&T, &T, f32) -> T,

Resample this Curve to produce a new one that is defined by interpolation over samples taken at a given set of times. The given interpolation is used to interpolate adjacent samples, and the sample_times are expected to contain at least two valid times within the curve’s domain interval. Read more
Source§

fn resample_uneven_auto( &self, sample_times: impl IntoIterator<Item = f32>, ) -> Result<UnevenSampleAutoCurve<T>, ResamplingError>

Resample this Curve to produce a new one that is defined by automatic interpolation over samples taken at the given set of times. The given sample_times are expected to contain at least two valid times within the curve’s domain interval. Read more
Source§

impl<T, C> CurveWithDerivative<T> for C
where T: HasTangent, C: SampleDerivative<T>,

Source§

fn with_derivative(self) -> SampleDerivativeWrapper<C>

This curve, but with its first derivative included in sampling. Read more
Source§

impl<F> DebounceEventHandler for F
where F: FnMut(Result<Vec<DebouncedEvent>, Vec<Error>>) + Send + 'static,

Source§

fn handle_event(&mut self, event: Result<Vec<DebouncedEvent>, Vec<Error>>)

Handles an event.
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DynEq for T
where T: Any + Eq,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Casts the type to dyn Any.
Source§

fn dyn_eq(&self, other: &(dyn DynEq + 'static)) -> bool

This method tests for self and other values to be equal. Read more
Source§

impl<T> DynHash for T
where T: DynEq + Hash,

Source§

fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)

Casts the type to dyn Any.
Source§

fn dyn_hash(&self, state: &mut dyn Hasher)

Feeds this value into the given Hasher.
Source§

impl<'de, T> DynamicDeserialize<'de> for T
where T: Type + Deserialize<'de>,

Source§

type Deserializer = PhantomData<T>

A DeserializeSeed implementation for this type.
Source§

fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>

Get a deserializer compatible with this parsed signature.
Source§

impl<T> DynamicType for T
where T: Type + ?Sized,

Source§

fn signature(&self) -> Signature

The type signature for self. Read more
Source§

impl<N, E, I> ElementIterator<N, E> for I
where I: Iterator<Item = Element<N, E>> + ?Sized,

Source§

fn filter_elements<F>(self, f: F) -> FilterElements<Self, F>
where Self: Sized, F: FnMut(Element<&mut N, &mut E>) -> bool,

Create an iterator adaptor that filters graph elements. Read more
Source§

impl<Out, F> EntityCommand<Out> for F
where F: FnOnce(EntityWorldMut<'_>) -> Out + Send + 'static,

Source§

fn apply(self, entity: EntityWorldMut<'_>) -> Out

Executes this command for the given Entity.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<F> EventHandler for F
where F: FnMut(Result<Event, Error>) + Send + 'static,

Source§

fn handle_event(&mut self, event: Result<Event, Error>)

Handles an event.
Source§

impl<In, Out, Func> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In) -> Out)> for Func
where Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = ()

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <() as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0) -> Out)> for Func
where F0: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0,)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0,) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5, F6) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5, F6, F7) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, F11: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>, <F11 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, F11: ExclusiveSystemParam, F12: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>, <F11 as ExclusiveSystemParam>::Item<'_>, <F12 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, F11: ExclusiveSystemParam, F12: ExclusiveSystemParam, F13: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>, <F11 as ExclusiveSystemParam>::Item<'_>, <F12 as ExclusiveSystemParam>::Item<'_>, <F13 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, F11: ExclusiveSystemParam, F12: ExclusiveSystemParam, F13: ExclusiveSystemParam, F14: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>, <F11 as ExclusiveSystemParam>::Item<'_>, <F12 as ExclusiveSystemParam>::Item<'_>, <F13 as ExclusiveSystemParam>::Item<'_>, <F14 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15> ExclusiveSystemParamFunction<(HasExclusiveSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) -> Out)> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, F11: ExclusiveSystemParam, F12: ExclusiveSystemParam, F13: ExclusiveSystemParam, F14: ExclusiveSystemParam, F15: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, &mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, &mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>, <F11 as ExclusiveSystemParam>::Item<'_>, <F12 as ExclusiveSystemParam>::Item<'_>, <F13 as ExclusiveSystemParam>::Item<'_>, <F14 as ExclusiveSystemParam>::Item<'_>, <F15 as ExclusiveSystemParam>::Item<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func> ExclusiveSystemParamFunction<fn() -> Out> for Func
where Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World) -> Out + for<'a> FnMut(&mut World), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = ()

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <() as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0> ExclusiveSystemParamFunction<fn(F0) -> Out> for Func
where F0: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0,)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0,) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1> ExclusiveSystemParamFunction<fn(F0, F1) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2> ExclusiveSystemParamFunction<fn(F0, F1, F2) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5, F6) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5, F6) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5, F6, F7) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, F11: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>, <F11 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, F11: ExclusiveSystemParam, F12: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>, <F11 as ExclusiveSystemParam>::Item<'_>, <F12 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, F11: ExclusiveSystemParam, F12: ExclusiveSystemParam, F13: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>, <F11 as ExclusiveSystemParam>::Item<'_>, <F12 as ExclusiveSystemParam>::Item<'_>, <F13 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, F11: ExclusiveSystemParam, F12: ExclusiveSystemParam, F13: ExclusiveSystemParam, F14: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>, <F11 as ExclusiveSystemParam>::Item<'_>, <F12 as ExclusiveSystemParam>::Item<'_>, <F13 as ExclusiveSystemParam>::Item<'_>, <F14 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15> ExclusiveSystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) -> Out> for Func
where F0: ExclusiveSystemParam, F1: ExclusiveSystemParam, F2: ExclusiveSystemParam, F3: ExclusiveSystemParam, F4: ExclusiveSystemParam, F5: ExclusiveSystemParam, F6: ExclusiveSystemParam, F7: ExclusiveSystemParam, F8: ExclusiveSystemParam, F9: ExclusiveSystemParam, F10: ExclusiveSystemParam, F11: ExclusiveSystemParam, F12: ExclusiveSystemParam, F13: ExclusiveSystemParam, F14: ExclusiveSystemParam, F15: ExclusiveSystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(&mut World, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) -> Out + for<'a> FnMut(&mut World, <F0 as ExclusiveSystemParam>::Item<'_>, <F1 as ExclusiveSystemParam>::Item<'_>, <F2 as ExclusiveSystemParam>::Item<'_>, <F3 as ExclusiveSystemParam>::Item<'_>, <F4 as ExclusiveSystemParam>::Item<'_>, <F5 as ExclusiveSystemParam>::Item<'_>, <F6 as ExclusiveSystemParam>::Item<'_>, <F7 as ExclusiveSystemParam>::Item<'_>, <F8 as ExclusiveSystemParam>::Item<'_>, <F9 as ExclusiveSystemParam>::Item<'_>, <F10 as ExclusiveSystemParam>::Item<'_>, <F11 as ExclusiveSystemParam>::Item<'_>, <F12 as ExclusiveSystemParam>::Item<'_>, <F13 as ExclusiveSystemParam>::Item<'_>, <F14 as ExclusiveSystemParam>::Item<'_>, <F15 as ExclusiveSystemParam>::Item<'_>), Out: 'static,

Source§

type In = ()

The input type to this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15)

The ExclusiveSystemParam’s defined by this system’s fn parameters.
Source§

fn run( &mut self, world: &mut World, _in: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) as ExclusiveSystemParam>::Item<'_>, ) -> Out

Executes this system once. See System::run.
Source§

impl<F> Fill for F
where F: Fn(Slot<'_, '_>) -> Result<(), Error>,

Source§

fn fill(&self, slot: Slot<'_, '_>) -> Result<(), Error>

Fill a value.
Source§

impl<F, N> FilterEdge<N> for F
where F: Fn(N) -> bool,

Source§

fn include_edge(&self, n: N) -> bool

Return true to have the edge be part of the graph
Source§

impl<F, S> FilterExt<S> for F
where F: Filter<S>,

Source§

fn and<B>(self, other: B) -> And<Self, B, S>
where Self: Sized, B: Filter<S>,

Combines this Filter with another Filter s so that spans and events are enabled if and only if both filters return true. Read more
Source§

fn or<B>(self, other: B) -> Or<Self, B, S>
where Self: Sized, B: Filter<S>,

Combines two Filters so that spans and events are enabled if either filter returns true. Read more
Source§

fn not(self) -> Not<Self, S>
where Self: Sized,

Inverts self, returning a filter that enables spans and events only if self would not enable them. Read more
Source§

fn boxed(self) -> Box<dyn Filter<S> + Send + Sync>
where Self: Sized + Send + Sync + 'static,

Boxes self, erasing its concrete type. Read more
Source§

impl<F> FilterFn for F
where F: Fn(Option<Event>, &mut Gilrs) -> Option<Event>,

Source§

fn filter(&self, ev: Option<Event>, gilrs: &mut Gilrs) -> Option<Event>

Source§

impl<F, N> FilterNode<N> for F
where F: Fn(N) -> bool,

Source§

fn include_node(&self, n: N) -> bool

Return true to have the node be part of the graph
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<!> for T

Source§

fn from(t: !) -> T

Converts to this type from the input type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> FromWorld for T
where T: Default,

Source§

fn from_world(_world: &mut World) -> T

Creates Self using default().

Source§

impl<F> FutureExt for F
where F: Future + ?Sized,

Source§

fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output>
where Self: Unpin,

A convenience for calling Future::poll() on !Unpin types.
Source§

fn or<F>(self, other: F) -> Or<Self, F>
where Self: Sized, F: Future<Output = Self::Output>,

Returns the result of self or other future, preferring self if both are ready. Read more
Source§

fn race<F>(self, other: F) -> Race<Self, F>
where Self: Sized, F: Future<Output = Self::Output>,

Returns the result of self or other future, with no preference if both are ready. Read more
Source§

fn catch_unwind(self) -> CatchUnwind<Self>
where Self: Sized + UnwindSafe,

Catches panics while polling the future. Read more
Source§

fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
where Self: Sized + Send + 'a,

Boxes the future and changes its type to dyn Future + Send + 'a. Read more
Source§

fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
where Self: Sized + 'a,

Boxes the future and changes its type to dyn Future + 'a. Read more
Source§

impl<T> FutureExt for T
where T: Future + ?Sized,

Source§

fn map<U, F>(self, f: F) -> Map<Self, F>
where F: FnOnce(Self::Output) -> U, Self: Sized,

Map this future’s output to a different type, returning a new future of the resulting type. Read more
Source§

fn map_into<U>(self) -> MapInto<Self, U>
where Self::Output: Into<U>, Self: Sized,

Map this future’s output to a different type, returning a new future of the resulting type. Read more
Source§

fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
where F: FnOnce(Self::Output) -> Fut, Fut: Future, Self: Sized,

Chain on a computation for when a future finished, passing the result of the future to the provided closure f. Read more
Source§

fn left_future<B>(self) -> Either<Self, B>
where B: Future<Output = Self::Output>, Self: Sized,

Wrap this future in an Either future, making it the left-hand variant of that Either. Read more
Source§

fn right_future<A>(self) -> Either<A, Self>
where A: Future<Output = Self::Output>, Self: Sized,

Wrap this future in an Either future, making it the right-hand variant of that Either. Read more
Source§

fn into_stream(self) -> IntoStream<Self>
where Self: Sized,

Convert this future into a single element stream. Read more
Source§

fn flatten(self) -> Flatten<Self>
where Self::Output: Future, Self: Sized,

Flatten the execution of this future when the output of this future is itself another future. Read more
Source§

fn flatten_stream(self) -> FlattenStream<Self>
where Self::Output: Stream, Self: Sized,

Flatten the execution of this future when the successful result of this future is a stream. Read more
Source§

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

Fuse a future such that poll will never again be called once it has completed. This method can be used to turn any Future into a FusedFuture. Read more
Source§

fn inspect<F>(self, f: F) -> Inspect<Self, F>
where F: FnOnce(&Self::Output), Self: Sized,

Do something with the output of a future before passing it on. Read more
Source§

fn catch_unwind(self) -> CatchUnwind<Self>
where Self: Sized + UnwindSafe,

Catches unwinding panics while polling the future. Read more
Source§

fn shared(self) -> Shared<Self>
where Self: Sized, Self::Output: Clone,

Create a cloneable handle to this future where all handles will resolve to the same result. Read more
Source§

fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
where Self: Sized + Send + 'a,

Wrap the future in a Box, pinning it. Read more
Source§

fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
where Self: Sized + 'a,

Wrap the future in a Box, pinning it. Read more
Source§

fn unit_error(self) -> UnitError<Self>
where Self: Sized,

Source§

fn never_error(self) -> NeverError<Self>
where Self: Sized,

Source§

fn poll_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output>
where Self: Unpin,

A convenience for calling Future::poll on Unpin future types.
Source§

fn now_or_never(self) -> Option<Self::Output>
where Self: Sized,

Evaluates and consumes the future, returning the resulting output if the future is ready after the first call to Future::poll. Read more
Source§

impl<F, P> GetPixel for F
where F: Sync + Fn(Vec2<usize>) -> P,

Source§

type Pixel = P

The pixel tuple containing f32, f16, u32 and Sample values. The length of the tuple must match the number of channels in the image.
Source§

fn get_pixel(&self, position: Vec2<usize>) -> P

Inspect a single pixel at the requested position. Will be called exactly once for each pixel in the image. The position will not exceed the image dimensions. Might be called from multiple threads at the same time.
Source§

impl<C, T, E> HandleError<Result<T, E>> for C
where C: Command<Result<T, E>>, E: Into<BevyError>,

Source§

fn handle_error_with( self, error_handler: fn(BevyError, ErrorContext), ) -> impl Command

Takes a Command that returns a Result and uses a given error handler function to convert it into a Command that internally handles an error if it occurs and returns ().
Source§

fn handle_error(self) -> impl Command
where Self: Sized,

Takes a Command that returns a Result and uses the default error handler function to convert it into a Command that internally handles an error if it occurs and returns ().
Source§

impl<C> HandleError for C
where C: Command,

Source§

fn handle_error_with( self, _error_handler: fn(BevyError, ErrorContext), ) -> impl Command

Takes a Command that returns a Result and uses a given error handler function to convert it into a Command that internally handles an error if it occurs and returns ().
Source§

fn handle_error(self) -> impl Command

Takes a Command that returns a Result and uses the default error handler function to convert it into a Command that internally handles an error if it occurs and returns ().
Source§

impl<T> HasRawDisplayHandle for T
where T: HasDisplayHandle + ?Sized,

Source§

fn raw_display_handle(&self) -> Result<RawDisplayHandle, HandleError>

👎Deprecated: Use HasDisplayHandle instead
Source§

impl<T> HasRawWindowHandle for T
where T: HasWindowHandle + ?Sized,

Source§

fn raw_window_handle(&self) -> Result<RawWindowHandle, HandleError>

👎Deprecated: Use HasWindowHandle instead
Source§

impl<T, B1, B2> HttpService<B1> for T
where T: Service<Request<B1>, Response = Response<B2>>, B2: Body, <T as Service<Request<B1>>>::Error: Into<Box<dyn Error + Send + Sync>>,

Source§

type ResBody = B2

The Body body of the http::Response.
Source§

type Error = <T as Service<Request<B1>>>::Error

The error type that can occur within this Service. Read more
Source§

type Future = <T as Service<Request<B1>>>::Future

The Future returned by this Service.
Source§

fn call(&mut self, req: Request<B1>) -> <T as HttpService<B1>>::Future

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<E> InstrumentError for E
where TracedError<E>: From<E>,

Source§

type Instrumented = TracedError<E>

The type of the wrapped error after instrumentation
Source§

fn in_current_span(self) -> <E as InstrumentError>::Instrumented

Instrument an Error by bundling it with a SpanTrace Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<I> IntoAsyncIterator for I
where I: AsyncIterator,

Source§

type Item = <I as AsyncIterator>::Item

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

type IntoAsyncIter = I

🔬This is a nightly-only experimental API. (async_iterator)
The type of the resulting iterator
Source§

fn into_async_iter(self) -> <I as IntoAsyncIterator>::IntoAsyncIter

🔬This is a nightly-only experimental API. (async_iterator)
Converts self into an async iterator
Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<'env, F, Marker1, Marker2> IntoFunction<'env, (Marker1, Marker2)> for F
where F: ReflectFn<'env, Marker1> + TypedFunction<Marker2> + Send + Sync + 'env,

Source§

fn into_function(self) -> DynamicFunction<'env>

Converts Self into a DynamicFunction.
Source§

impl<'env, F, Marker1, Marker2> IntoFunctionMut<'env, (Marker1, Marker2)> for F
where F: ReflectFnMut<'env, Marker1> + TypedFunction<Marker2> + 'env,

Source§

impl<F> IntoFuture for F
where F: Future,

Source§

type Output = <F as Future>::Output

The output that the future will produce on completion.
Source§

type IntoFuture = F

Which kind of future are we turning this into?
Source§

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
Source§

impl<I> IntoIterator for I
where I: Iterator,

Source§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
Source§

type IntoIter = I

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
Source§

impl<E, B, M, S, Out> IntoObserverSystem<E, B, (Fallible, M), Out> for S
where S: IntoSystem<Trigger<'static, E, B>, Out, M> + Send + 'static, <S as IntoSystem<Trigger<'static, E, B>, Out, M>>::System: ObserverSystem<E, B, Out>, E: 'static, B: Bundle,

Source§

type System = <S as IntoSystem<Trigger<'static, E, B>, Out, M>>::System

The type of System that this instance converts into.
Source§

fn into_system( this: S, ) -> <S as IntoObserverSystem<E, B, (Fallible, M), Out>>::System

Turns this value into its corresponding System.
Source§

impl<E, B, M, S> IntoObserverSystem<E, B, (Infallible, M)> for S
where S: IntoSystem<Trigger<'static, E, B>, (), M> + Send + 'static, <S as IntoSystem<Trigger<'static, E, B>, (), M>>::System: ObserverSystem<E, B, ()>, E: Send + Sync + 'static, B: Bundle,

Source§

type System = InfallibleObserverWrapper<E, B, <S as IntoSystem<Trigger<'static, E, B>, (), M>>::System, ()>

The type of System that this instance converts into.
Source§

fn into_system( this: S, ) -> <S as IntoObserverSystem<E, B, (Infallible, M)>>::System

Turns this value into its corresponding System.
Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<F, Marker> IntoScheduleConfigs<Box<dyn System<In = (), Out = Result<(), BevyError>>>, (Fallible, Marker)> for F
where F: IntoSystem<(), Result<(), BevyError>, Marker>,

Source§

fn into_configs( self, ) -> ScheduleConfigs<Box<dyn System<In = (), Out = Result<(), BevyError>>>>

Convert into a ScheduleConfigs.
Source§

fn in_set(self, set: impl SystemSet) -> ScheduleConfigs<T>

Add these systems to the provided set.
Source§

fn before<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Runs before all systems in set. If self has any systems that produce Commands or other Deferred operations, all systems in set will see their effect. Read more
Source§

fn after<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Run after all systems in set. If set has any systems that produce Commands or other Deferred operations, all systems in self will see their effect. Read more
Source§

fn before_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> ScheduleConfigs<T>

Run before all systems in set. Read more
Source§

fn after_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> ScheduleConfigs<T>

Run after all systems in set. Read more
Source§

fn distributive_run_if<M>( self, condition: impl Condition<M> + Clone, ) -> ScheduleConfigs<T>

Add a run condition to each contained system. Read more
Source§

fn run_if<M>(self, condition: impl Condition<M>) -> ScheduleConfigs<T>

Run the systems only if the Condition is true. Read more
Source§

fn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Suppress warnings and errors that would result from these systems having ambiguities (conflicting access but indeterminate order) with systems in set.
Source§

fn ambiguous_with_all(self) -> ScheduleConfigs<T>

Suppress warnings and errors that would result from these systems having ambiguities (conflicting access but indeterminate order) with any other system.
Source§

fn chain(self) -> ScheduleConfigs<T>

Treat this collection as a sequence of systems. Read more
Source§

fn chain_ignore_deferred(self) -> ScheduleConfigs<T>

Treat this collection as a sequence of systems. Read more
Source§

impl<F, Marker> IntoScheduleConfigs<Box<dyn System<In = (), Out = Result<(), BevyError>>>, (Infallible, Marker)> for F
where F: IntoSystem<(), (), Marker>,

Source§

fn into_configs( self, ) -> ScheduleConfigs<Box<dyn System<In = (), Out = Result<(), BevyError>>>>

Convert into a ScheduleConfigs.
Source§

fn in_set(self, set: impl SystemSet) -> ScheduleConfigs<T>

Add these systems to the provided set.
Source§

fn before<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Runs before all systems in set. If self has any systems that produce Commands or other Deferred operations, all systems in set will see their effect. Read more
Source§

fn after<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Run after all systems in set. If set has any systems that produce Commands or other Deferred operations, all systems in self will see their effect. Read more
Source§

fn before_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> ScheduleConfigs<T>

Run before all systems in set. Read more
Source§

fn after_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> ScheduleConfigs<T>

Run after all systems in set. Read more
Source§

fn distributive_run_if<M>( self, condition: impl Condition<M> + Clone, ) -> ScheduleConfigs<T>

Add a run condition to each contained system. Read more
Source§

fn run_if<M>(self, condition: impl Condition<M>) -> ScheduleConfigs<T>

Run the systems only if the Condition is true. Read more
Source§

fn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> ScheduleConfigs<T>

Suppress warnings and errors that would result from these systems having ambiguities (conflicting access but indeterminate order) with systems in set.
Source§

fn ambiguous_with_all(self) -> ScheduleConfigs<T>

Suppress warnings and errors that would result from these systems having ambiguities (conflicting access but indeterminate order) with any other system.
Source§

fn chain(self) -> ScheduleConfigs<T>

Treat this collection as a sequence of systems. Read more
Source§

fn chain_ignore_deferred(self) -> ScheduleConfigs<T>

Treat this collection as a sequence of systems. Read more
Source§

impl<Marker, F> IntoSystem<<F as ExclusiveSystemParamFunction<Marker>>::In, <F as ExclusiveSystemParamFunction<Marker>>::Out, (IsExclusiveFunctionSystem, Marker)> for F
where Marker: 'static, F: ExclusiveSystemParamFunction<Marker>,

Source§

type System = ExclusiveFunctionSystem<Marker, F>

The type of System that this instance converts into.
Source§

fn into_system( func: F, ) -> <F as IntoSystem<<F as ExclusiveSystemParamFunction<Marker>>::In, <F as ExclusiveSystemParamFunction<Marker>>::Out, (IsExclusiveFunctionSystem, Marker)>>::System

Turns this value into its corresponding System.
Source§

fn pipe<B, BIn, BOut, MarkerB>(self, system: B) -> IntoPipeSystem<Self, B>
where Out: 'static, B: IntoSystem<BIn, BOut, MarkerB>, BIn: for<'a> SystemInput<Inner<'a> = Out>,

Pass the output of this system A into a second system B, creating a new compound system. Read more
Source§

fn map<T, F>(self, f: F) -> IntoAdapterSystem<F, Self>
where F: Send + Sync + 'static + FnMut(Out) -> T,

Pass the output of this system into the passed function f, creating a new system that outputs the value returned from the function. Read more
Source§

fn system_type_id(&self) -> TypeId

Get the TypeId of the System produced after calling into_system.
Source§

impl<Marker, F> IntoSystem<<F as SystemParamFunction<Marker>>::In, <F as SystemParamFunction<Marker>>::Out, (IsFunctionSystem, Marker)> for F
where Marker: 'static, F: SystemParamFunction<Marker>,

Source§

type System = FunctionSystem<Marker, F>

The type of System that this instance converts into.
Source§

fn into_system( func: F, ) -> <F as IntoSystem<<F as SystemParamFunction<Marker>>::In, <F as SystemParamFunction<Marker>>::Out, (IsFunctionSystem, Marker)>>::System

Turns this value into its corresponding System.
Source§

fn pipe<B, BIn, BOut, MarkerB>(self, system: B) -> IntoPipeSystem<Self, B>
where Out: 'static, B: IntoSystem<BIn, BOut, MarkerB>, BIn: for<'a> SystemInput<Inner<'a> = Out>,

Pass the output of this system A into a second system B, creating a new compound system. Read more
Source§

fn map<T, F>(self, f: F) -> IntoAdapterSystem<F, Self>
where F: Send + Sync + 'static + FnMut(Out) -> T,

Pass the output of this system into the passed function f, creating a new system that outputs the value returned from the function. Read more
Source§

fn system_type_id(&self) -> TypeId

Get the TypeId of the System produced after calling into_system.
Source§

impl<Marker, F> IntoSystemSet<(IsExclusiveFunctionSystem, Marker)> for F
where Marker: 'static, F: ExclusiveSystemParamFunction<Marker>,

Source§

type Set = SystemTypeSet<ExclusiveFunctionSystem<Marker, F>>

The type of SystemSet this instance converts into.
Source§

fn into_system_set( self, ) -> <F as IntoSystemSet<(IsExclusiveFunctionSystem, Marker)>>::Set

Converts this instance to its associated SystemSet type.
Source§

impl<Marker, F> IntoSystemSet<(IsFunctionSystem, Marker)> for F
where Marker: 'static, F: SystemParamFunction<Marker>,

Source§

type Set = SystemTypeSet<FunctionSystem<Marker, F>>

The type of SystemSet this instance converts into.
Source§

fn into_system_set( self, ) -> <F as IntoSystemSet<(IsFunctionSystem, Marker)>>::Set

Converts this instance to its associated SystemSet type.
Source§

impl<I> IteratorRandom for I
where I: Iterator,

Source§

fn choose<R>(self, rng: &mut R) -> Option<Self::Item>
where R: Rng + ?Sized,

Choose one element at random from the iterator. Read more
Source§

fn choose_stable<R>(self, rng: &mut R) -> Option<Self::Item>
where R: Rng + ?Sized,

Choose one element at random from the iterator. Read more
Source§

fn choose_multiple_fill<R>(self, rng: &mut R, buf: &mut [Self::Item]) -> usize
where R: Rng + ?Sized,

Collects values at random from the iterator into a supplied buffer until that buffer is filled. Read more
Source§

fn choose_multiple<R>(self, rng: &mut R, amount: usize) -> Vec<Self::Item>
where R: Rng + ?Sized,

Collects amount values at random from the iterator into a vector. Read more
Source§

impl<T> Itertools for T
where T: Iterator + ?Sized,

Source§

fn interleave<J>( self, other: J, ) -> Interleave<Self, <J as IntoIterator>::IntoIter>
where J: IntoIterator<Item = Self::Item>, Self: Sized,

Alternate elements from two iterators until both have run out. Read more
Source§

fn interleave_shortest<J>( self, other: J, ) -> InterleaveShortest<Self, <J as IntoIterator>::IntoIter>
where J: IntoIterator<Item = Self::Item>, Self: Sized,

Alternate elements from two iterators until at least one of them has run out. Read more
Source§

fn intersperse( self, element: Self::Item, ) -> IntersperseWith<Self, IntersperseElementSimple<Self::Item>>
where Self: Sized, Self::Item: Clone,

An iterator adaptor to insert a particular value between each element of the adapted iterator. Read more
Source§

fn intersperse_with<F>(self, element: F) -> IntersperseWith<Self, F>
where Self: Sized, F: FnMut() -> Self::Item,

An iterator adaptor to insert a particular value created by a function between each element of the adapted iterator. Read more
Source§

fn get<R>(self, index: R) -> <R as IteratorIndex<Self>>::Output
where Self: Sized, R: IteratorIndex<Self>,

Returns an iterator over a subsection of the iterator. Read more
Source§

fn zip_longest<J>( self, other: J, ) -> ZipLongest<Self, <J as IntoIterator>::IntoIter>
where J: IntoIterator, Self: Sized,

Create an iterator which iterates over both this and the specified iterator simultaneously, yielding pairs of two optional elements. Read more
Source§

fn zip_eq<J>(self, other: J) -> ZipEq<Self, <J as IntoIterator>::IntoIter>
where J: IntoIterator, Self: Sized,

Create an iterator which iterates over both this and the specified iterator simultaneously, yielding pairs of elements. Read more
Source§

fn batching<B, F>(self, f: F) -> Batching<Self, F>
where F: FnMut(&mut Self) -> Option<B>, Self: Sized,

A “meta iterator adaptor”. Its closure receives a reference to the iterator and may pick off as many elements as it likes, to produce the next iterator element. Read more
Source§

fn chunk_by<K, F>(self, key: F) -> ChunkBy<K, Self, F>
where Self: Sized, F: FnMut(&Self::Item) -> K, K: PartialEq,

Return an iterable that can group iterator elements. Consecutive elements that map to the same key (“runs”), are assigned to the same group. Read more
Source§

fn group_by<K, F>(self, key: F) -> ChunkBy<K, Self, F>
where Self: Sized, F: FnMut(&Self::Item) -> K, K: PartialEq,

👎Deprecated since 0.13.0: Use .chunk_by() instead
Source§

fn chunks(self, size: usize) -> IntoChunks<Self>
where Self: Sized,

Return an iterable that can chunk the iterator. Read more
Source§

fn tuple_windows<T>(self) -> TupleWindows<Self, T>
where Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple, <T as TupleCollect>::Item: Clone,

Return an iterator over all contiguous windows producing tuples of a specific size (up to 12). Read more
Source§

fn circular_tuple_windows<T>(self) -> CircularTupleWindows<Self, T>
where Self: Sized + Clone + Iterator<Item = <T as TupleCollect>::Item> + ExactSizeIterator, T: TupleCollect + Clone, <T as TupleCollect>::Item: Clone,

Return an iterator over all windows, wrapping back to the first elements when the window would otherwise exceed the length of the iterator, producing tuples of a specific size (up to 12). Read more
Source§

fn tuples<T>(self) -> Tuples<Self, T>
where Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple,

Return an iterator that groups the items in tuples of a specific size (up to 12). Read more
Source§

fn tee(self) -> (Tee<Self>, Tee<Self>)
where Self: Sized, Self::Item: Clone,

Split into an iterator pair that both yield all elements from the original iterator. Read more
Source§

fn map_into<R>(self) -> MapSpecialCase<Self, MapSpecialCaseFnInto<R>>
where Self: Sized, Self::Item: Into<R>,

Convert each item of the iterator using the Into trait. Read more
Source§

fn map_ok<F, T, U, E>(self, f: F) -> MapSpecialCase<Self, MapSpecialCaseFnOk<F>>
where Self: Sized + Iterator<Item = Result<T, E>>, F: FnMut(T) -> U,

Return an iterator adaptor that applies the provided closure to every Result::Ok value. Result::Err values are unchanged. Read more
Source§

fn filter_ok<F, T, E>(self, f: F) -> FilterOk<Self, F>
where Self: Sized + Iterator<Item = Result<T, E>>, F: FnMut(&T) -> bool,

Return an iterator adaptor that filters every Result::Ok value with the provided closure. Result::Err values are unchanged. Read more
Source§

fn filter_map_ok<F, T, U, E>(self, f: F) -> FilterMapOk<Self, F>
where Self: Sized + Iterator<Item = Result<T, E>>, F: FnMut(T) -> Option<U>,

Return an iterator adaptor that filters and transforms every Result::Ok value with the provided closure. Result::Err values are unchanged. Read more
Source§

fn flatten_ok<T, E>(self) -> FlattenOk<Self, T, E>
where Self: Sized + Iterator<Item = Result<T, E>>, T: IntoIterator,

Return an iterator adaptor that flattens every Result::Ok value into a series of Result::Ok values. Result::Err values are unchanged. Read more
Source§

fn process_results<F, T, E, R>(self, processor: F) -> Result<R, E>
where Self: Sized + Iterator<Item = Result<T, E>>, F: FnOnce(ProcessResults<'_, Self, E>) -> R,

“Lift” a function of the values of the current iterator so as to process an iterator of Result values instead. Read more
Source§

fn merge<J>( self, other: J, ) -> MergeBy<Self, <J as IntoIterator>::IntoIter, MergeLte>
where Self: Sized, Self::Item: PartialOrd, J: IntoIterator<Item = Self::Item>,

Return an iterator adaptor that merges the two base iterators in ascending order. If both base iterators are sorted (ascending), the result is sorted. Read more
Source§

fn merge_by<J, F>( self, other: J, is_first: F, ) -> MergeBy<Self, <J as IntoIterator>::IntoIter, F>
where Self: Sized, J: IntoIterator<Item = Self::Item>, F: FnMut(&Self::Item, &Self::Item) -> bool,

Return an iterator adaptor that merges the two base iterators in order. This is much like .merge() but allows for a custom ordering. Read more
Source§

fn merge_join_by<J, F, T>( self, other: J, cmp_fn: F, ) -> MergeBy<Self, <J as IntoIterator>::IntoIter, MergeFuncLR<F, <F as FuncLR<Self::Item, <<J as IntoIterator>::IntoIter as Iterator>::Item>>::T>>
where J: IntoIterator, F: FnMut(&Self::Item, &<J as IntoIterator>::Item) -> T, Self: Sized,

Create an iterator that merges items from both this and the specified iterator in ascending order. Read more
Source§

fn kmerge(self) -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, KMergeByLt>
where Self: Sized, Self::Item: IntoIterator, <Self::Item as IntoIterator>::Item: PartialOrd,

Return an iterator adaptor that flattens an iterator of iterators by merging them in ascending order. Read more
Source§

fn kmerge_by<F>( self, first: F, ) -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, F>
where Self: Sized, Self::Item: IntoIterator, F: FnMut(&<Self::Item as IntoIterator>::Item, &<Self::Item as IntoIterator>::Item) -> bool,

Return an iterator adaptor that flattens an iterator of iterators by merging them according to the given closure. Read more
Source§

fn cartesian_product<J>( self, other: J, ) -> Product<Self, <J as IntoIterator>::IntoIter>
where Self: Sized, Self::Item: Clone, J: IntoIterator, <J as IntoIterator>::IntoIter: Clone,

Return an iterator adaptor that iterates over the cartesian product of the element sets of two iterators self and J. Read more
Source§

fn multi_cartesian_product( self, ) -> MultiProduct<<Self::Item as IntoIterator>::IntoIter>
where Self: Sized, Self::Item: IntoIterator, <Self::Item as IntoIterator>::IntoIter: Clone, <Self::Item as IntoIterator>::Item: Clone,

Return an iterator adaptor that iterates over the cartesian product of all subiterators returned by meta-iterator self. Read more
Source§

fn coalesce<F>(self, f: F) -> CoalesceBy<Self, F, NoCount>
where Self: Sized, F: FnMut(Self::Item, Self::Item) -> Result<Self::Item, (Self::Item, Self::Item)>,

Return an iterator adaptor that uses the passed-in closure to optionally merge together consecutive elements. Read more
Source§

fn dedup(self) -> CoalesceBy<Self, DedupPred2CoalescePred<DedupEq>, NoCount>
where Self: Sized, Self::Item: PartialEq,

Remove duplicates from sections of consecutive identical elements. If the iterator is sorted, all elements will be unique. Read more
Source§

fn dedup_by<Cmp>( self, cmp: Cmp, ) -> CoalesceBy<Self, DedupPred2CoalescePred<Cmp>, NoCount>
where Self: Sized, Cmp: FnMut(&Self::Item, &Self::Item) -> bool,

Remove duplicates from sections of consecutive identical elements, determining equality using a comparison function. If the iterator is sorted, all elements will be unique. Read more
Source§

fn dedup_with_count( self, ) -> CoalesceBy<Self, DedupPredWithCount2CoalescePred<DedupEq>, WithCount>
where Self: Sized,

Remove duplicates from sections of consecutive identical elements, while keeping a count of how many repeated elements were present. If the iterator is sorted, all elements will be unique. Read more
Source§

fn dedup_by_with_count<Cmp>( self, cmp: Cmp, ) -> CoalesceBy<Self, DedupPredWithCount2CoalescePred<Cmp>, WithCount>
where Self: Sized, Cmp: FnMut(&Self::Item, &Self::Item) -> bool,

Remove duplicates from sections of consecutive identical elements, while keeping a count of how many repeated elements were present. This will determine equality using a comparison function. If the iterator is sorted, all elements will be unique. Read more
Source§

fn duplicates(self) -> DuplicatesBy<Self, Self::Item, ById>
where Self: Sized, Self::Item: Eq + Hash,

Return an iterator adaptor that produces elements that appear more than once during the iteration. Duplicates are detected using hash and equality. Read more
Source§

fn duplicates_by<V, F>(self, f: F) -> DuplicatesBy<Self, V, ByFn<F>>
where Self: Sized, V: Eq + Hash, F: FnMut(&Self::Item) -> V,

Return an iterator adaptor that produces elements that appear more than once during the iteration. Duplicates are detected using hash and equality. Read more
Source§

fn unique(self) -> Unique<Self>
where Self: Sized, Self::Item: Clone + Eq + Hash,

Return an iterator adaptor that filters out elements that have already been produced once during the iteration. Duplicates are detected using hash and equality. Read more
Source§

fn unique_by<V, F>(self, f: F) -> UniqueBy<Self, V, F>
where Self: Sized, V: Eq + Hash, F: FnMut(&Self::Item) -> V,

Return an iterator adaptor that filters out elements that have already been produced once during the iteration. Read more
Source§

fn peeking_take_while<F>(&mut self, accept: F) -> PeekingTakeWhile<'_, Self, F>
where Self: Sized + PeekingNext, F: FnMut(&Self::Item) -> bool,

Return an iterator adaptor that borrows from this iterator and takes items while the closure accept returns true. Read more
Source§

fn take_while_ref<F>(&mut self, accept: F) -> TakeWhileRef<'_, Self, F>
where Self: Clone, F: FnMut(&Self::Item) -> bool,

Return an iterator adaptor that borrows from a Clone-able iterator to only pick off elements while the predicate accept returns true. Read more
Source§

fn take_while_inclusive<F>(self, accept: F) -> TakeWhileInclusive<Self, F>
where Self: Sized, F: FnMut(&Self::Item) -> bool,

Returns an iterator adaptor that consumes elements while the given predicate is true, including the element for which the predicate first returned false. Read more
Source§

fn while_some<A>(self) -> WhileSome<Self>
where Self: Sized + Iterator<Item = Option<A>>,

Return an iterator adaptor that filters Option<A> iterator elements and produces A. Stops on the first None encountered. Read more
Source§

fn tuple_combinations<T>(self) -> TupleCombinations<Self, T>
where Self: Sized + Clone, Self::Item: Clone, T: HasCombination<Self>,

Return an iterator adaptor that iterates over the combinations of the elements from an iterator. Read more
Source§

fn array_combinations<const K: usize>( self, ) -> CombinationsGeneric<Self, [usize; K]>
where Self: Sized + Clone, Self::Item: Clone,

Return an iterator adaptor that iterates over the combinations of the elements from an iterator. Read more
Source§

fn combinations(self, k: usize) -> CombinationsGeneric<Self, Vec<usize>>
where Self: Sized, Self::Item: Clone,

Return an iterator adaptor that iterates over the k-length combinations of the elements from an iterator. Read more
Source§

fn combinations_with_replacement( self, k: usize, ) -> CombinationsWithReplacement<Self>
where Self: Sized, Self::Item: Clone,

Return an iterator that iterates over the k-length combinations of the elements from an iterator, with replacement. Read more
Source§

fn permutations(self, k: usize) -> Permutations<Self>
where Self: Sized, Self::Item: Clone,

Return an iterator adaptor that iterates over all k-permutations of the elements from an iterator. Read more
Source§

fn powerset(self) -> Powerset<Self>
where Self: Sized, Self::Item: Clone,

Return an iterator that iterates through the powerset of the elements from an iterator. Read more
Source§

fn pad_using<F>(self, min: usize, f: F) -> PadUsing<Self, F>
where Self: Sized, F: FnMut(usize) -> Self::Item,

Return an iterator adaptor that pads the sequence to a minimum length of min by filling missing elements using a closure f. Read more
Source§

fn with_position(self) -> WithPosition<Self>
where Self: Sized,

Return an iterator adaptor that combines each element with a Position to ease special-case handling of the first or last elements. Read more
Source§

fn positions<P>(self, predicate: P) -> Positions<Self, P>
where Self: Sized, P: FnMut(Self::Item) -> bool,

Return an iterator adaptor that yields the indices of all elements satisfying a predicate, counted from the start of the iterator. Read more
Source§

fn update<F>(self, updater: F) -> Update<Self, F>
where Self: Sized, F: FnMut(&mut Self::Item),

Return an iterator adaptor that applies a mutating function to each element before yielding it. Read more
Source§

fn next_array<const N: usize>(&mut self) -> Option<[Self::Item; N]>
where Self: Sized,

Advances the iterator and returns the next items grouped in an array of a specific size. Read more
Source§

fn collect_array<const N: usize>(self) -> Option<[Self::Item; N]>
where Self: Sized,

Collects all items from the iterator into an array of a specific size. Read more
Source§

fn next_tuple<T>(&mut self) -> Option<T>
where Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple,

Advances the iterator and returns the next items grouped in a tuple of a specific size (up to 12). Read more
Source§

fn collect_tuple<T>(self) -> Option<T>
where Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple,

Collects all items from the iterator into a tuple of a specific size (up to 12). Read more
Source§

fn find_position<P>(&mut self, pred: P) -> Option<(usize, Self::Item)>
where P: FnMut(&Self::Item) -> bool,

Find the position and value of the first element satisfying a predicate. Read more
Source§

fn find_or_last<P>(self, predicate: P) -> Option<Self::Item>
where Self: Sized, P: FnMut(&Self::Item) -> bool,

Find the value of the first element satisfying a predicate or return the last element, if any. Read more
Source§

fn find_or_first<P>(self, predicate: P) -> Option<Self::Item>
where Self: Sized, P: FnMut(&Self::Item) -> bool,

Find the value of the first element satisfying a predicate or return the first element, if any. Read more
Source§

fn contains<Q>(&mut self, query: &Q) -> bool
where Self: Sized, Self::Item: Borrow<Q>, Q: PartialEq + ?Sized,

Returns true if the given item is present in this iterator. Read more
Source§

fn all_equal(&mut self) -> bool
where Self: Sized, Self::Item: PartialEq,

Check whether all elements compare equal. Read more
Source§

fn all_equal_value( &mut self, ) -> Result<Self::Item, Option<(Self::Item, Self::Item)>>
where Self: Sized, Self::Item: PartialEq,

If there are elements and they are all equal, return a single copy of that element. If there are no elements, return an Error containing None. If there are elements and they are not all equal, return a tuple containing the first two non-equal elements found. Read more
Source§

fn all_unique(&mut self) -> bool
where Self: Sized, Self::Item: Eq + Hash,

Check whether all elements are unique (non equal). Read more
Source§

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

Consume the first n elements from the iterator eagerly, and return the same iterator again. Read more
Source§

fn dropping_back(self, n: usize) -> Self
where Self: Sized + DoubleEndedIterator,

Consume the last n elements from the iterator eagerly, and return the same iterator again. Read more
Source§

fn concat(self) -> Self::Item
where Self: Sized, Self::Item: Extend<<Self::Item as IntoIterator>::Item> + IntoIterator + Default,

Combine all an iterator’s elements into one element by using Extend. Read more
Source§

fn collect_vec(self) -> Vec<Self::Item>
where Self: Sized,

.collect_vec() is simply a type specialization of Iterator::collect, for convenience.
Source§

fn try_collect<T, U, E>(self) -> Result<U, E>
where Self: Sized + Iterator<Item = Result<T, E>>, Result<U, E>: FromIterator<Result<T, E>>,

.try_collect() is more convenient way of writing .collect::<Result<_, _>>() Read more
Source§

fn set_from<'a, A, J>(&mut self, from: J) -> usize
where A: 'a, Self: Iterator<Item = &'a mut A>, J: IntoIterator<Item = A>,

Assign to each reference in self from the from iterator, stopping at the shortest of the two iterators. Read more
Source§

fn join(&mut self, sep: &str) -> String
where Self::Item: Display,

Combine all iterator elements into one String, separated by sep. Read more
Source§

fn format(self, sep: &str) -> Format<'_, Self>
where Self: Sized,

Format all iterator elements, separated by sep. Read more
Source§

fn format_with<F>(self, sep: &str, format: F) -> FormatWith<'_, Self, F>
where Self: Sized, F: FnMut(Self::Item, &mut dyn FnMut(&dyn Display) -> Result<(), Error>) -> Result<(), Error>,

Format all iterator elements, separated by sep. Read more
Source§

fn fold_ok<A, E, B, F>(&mut self, start: B, f: F) -> Result<B, E>
where Self: Iterator<Item = Result<A, E>>, F: FnMut(B, A) -> B,

Fold Result values from an iterator. Read more
Source§

fn fold_options<A, B, F>(&mut self, start: B, f: F) -> Option<B>
where Self: Iterator<Item = Option<A>>, F: FnMut(B, A) -> B,

Fold Option values from an iterator. Read more
Source§

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

👎Deprecated since 0.10.2: Use Iterator::reduce instead
Accumulator of the elements in the iterator. Read more
Source§

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

Accumulate the elements in the iterator in a tree-like manner. Read more
Source§

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

👎Deprecated since 0.13.0: Use .tree_reduce() instead
Source§

fn fold_while<B, F>(&mut self, init: B, f: F) -> FoldWhile<B>
where Self: Sized, F: FnMut(B, Self::Item) -> FoldWhile<B>,

An iterator method that applies a function, producing a single, final value. Read more
Source§

fn sum1<S>(self) -> Option<S>
where Self: Sized, S: Sum<Self::Item>,

Iterate over the entire iterator and add all the elements. Read more
Source§

fn product1<P>(self) -> Option<P>
where Self: Sized, P: Product<Self::Item>,

Iterate over the entire iterator and multiply all the elements. Read more
Source§

fn sorted_unstable(self) -> IntoIter<Self::Item>
where Self: Sized, Self::Item: Ord,

Sort all iterator elements into a new iterator in ascending order. Read more
Source§

fn sorted_unstable_by<F>(self, cmp: F) -> IntoIter<Self::Item>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort all iterator elements into a new iterator in ascending order. Read more
Source§

fn sorted_unstable_by_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where Self: Sized, K: Ord, F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. Read more
Source§

fn sorted(self) -> IntoIter<Self::Item>
where Self: Sized, Self::Item: Ord,

Sort all iterator elements into a new iterator in ascending order. Read more
Source§

fn sorted_by<F>(self, cmp: F) -> IntoIter<Self::Item>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort all iterator elements into a new iterator in ascending order. Read more
Source§

fn sorted_by_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where Self: Sized, K: Ord, F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. Read more
Source§

fn sorted_by_cached_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where Self: Sized, K: Ord, F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. The key function is called exactly once per key. Read more
Source§

fn k_smallest(self, k: usize) -> IntoIter<Self::Item>
where Self: Sized, Self::Item: Ord,

Sort the k smallest elements into a new iterator, in ascending order. Read more
Source§

fn k_smallest_by<F>(self, k: usize, cmp: F) -> IntoIter<Self::Item>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort the k smallest elements into a new iterator using the provided comparison. Read more
Source§

fn k_smallest_by_key<F, K>(self, k: usize, key: F) -> IntoIter<Self::Item>
where Self: Sized, F: FnMut(&Self::Item) -> K, K: Ord,

Return the elements producing the k smallest outputs of the provided function. Read more
Source§

fn k_smallest_relaxed(self, k: usize) -> IntoIter<Self::Item>
where Self: Sized, Self::Item: Ord,

Sort the k smallest elements into a new iterator, in ascending order, relaxing the amount of memory required. Read more
Source§

fn k_smallest_relaxed_by<F>(self, k: usize, cmp: F) -> IntoIter<Self::Item>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort the k smallest elements into a new iterator using the provided comparison, relaxing the amount of memory required. Read more
Source§

fn k_smallest_relaxed_by_key<F, K>( self, k: usize, key: F, ) -> IntoIter<Self::Item>
where Self: Sized, F: FnMut(&Self::Item) -> K, K: Ord,

Return the elements producing the k smallest outputs of the provided function, relaxing the amount of memory required. Read more
Source§

fn k_largest(self, k: usize) -> IntoIter<Self::Item>
where Self: Sized, Self::Item: Ord,

Sort the k largest elements into a new iterator, in descending order. Read more
Source§

fn k_largest_by<F>(self, k: usize, cmp: F) -> IntoIter<Self::Item>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort the k largest elements into a new iterator using the provided comparison. Read more
Source§

fn k_largest_by_key<F, K>(self, k: usize, key: F) -> IntoIter<Self::Item>
where Self: Sized, F: FnMut(&Self::Item) -> K, K: Ord,

Return the elements producing the k largest outputs of the provided function. Read more
Source§

fn k_largest_relaxed(self, k: usize) -> IntoIter<Self::Item>
where Self: Sized, Self::Item: Ord,

Sort the k largest elements into a new iterator, in descending order, relaxing the amount of memory required. Read more
Source§

fn k_largest_relaxed_by<F>(self, k: usize, cmp: F) -> IntoIter<Self::Item>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort the k largest elements into a new iterator using the provided comparison, relaxing the amount of memory required. Read more
Source§

fn k_largest_relaxed_by_key<F, K>( self, k: usize, key: F, ) -> IntoIter<Self::Item>
where Self: Sized, F: FnMut(&Self::Item) -> K, K: Ord,

Return the elements producing the k largest outputs of the provided function, relaxing the amount of memory required. Read more
Source§

fn tail(self, n: usize) -> IntoIter<Self::Item>
where Self: Sized,

Consumes the iterator and return an iterator of the last n elements. Read more
Source§

fn partition_map<A, B, F, L, R>(self, predicate: F) -> (A, B)
where Self: Sized, F: FnMut(Self::Item) -> Either<L, R>, A: Default + Extend<L>, B: Default + Extend<R>,

Collect all iterator elements into one of two partitions. Unlike Iterator::partition, each partition may have a distinct type. Read more
Source§

fn partition_result<A, B, T, E>(self) -> (A, B)
where Self: Sized + Iterator<Item = Result<T, E>>, A: Default + Extend<T>, B: Default + Extend<E>,

Partition a sequence of Results into one list of all the Ok elements and another list of all the Err elements. Read more
Source§

fn into_group_map<K, V>(self) -> HashMap<K, Vec<V>>
where Self: Sized + Iterator<Item = (K, V)>, K: Hash + Eq,

Return a HashMap of keys mapped to Vecs of values. Keys and values are taken from (Key, Value) tuple pairs yielded by the input iterator. Read more
Source§

fn into_group_map_by<K, V, F>(self, f: F) -> HashMap<K, Vec<V>>
where Self: Sized + Iterator<Item = V>, K: Hash + Eq, F: FnMut(&V) -> K,

Return a HashMap of keys mapped to Vecs of values. The key is specified in the closure. The values are taken from the input iterator. Read more
Source§

fn into_grouping_map<K, V>(self) -> GroupingMap<Self>
where Self: Sized + Iterator<Item = (K, V)>, K: Hash + Eq,

Constructs a GroupingMap to be used later with one of the efficient group-and-fold operations it allows to perform. Read more
Source§

fn into_grouping_map_by<K, V, F>( self, key_mapper: F, ) -> GroupingMap<MapSpecialCase<Self, GroupingMapFn<F>>>
where Self: Sized + Iterator<Item = V>, K: Hash + Eq, F: FnMut(&V) -> K,

Constructs a GroupingMap to be used later with one of the efficient group-and-fold operations it allows to perform. Read more
Source§

fn min_set(self) -> Vec<Self::Item>
where Self: Sized, Self::Item: Ord,

Return all minimum elements of an iterator. Read more
Source§

fn min_set_by<F>(self, compare: F) -> Vec<Self::Item>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return all minimum elements of an iterator, as determined by the specified function. Read more
Source§

fn min_set_by_key<K, F>(self, key: F) -> Vec<Self::Item>
where Self: Sized, K: Ord, F: FnMut(&Self::Item) -> K,

Return all minimum elements of an iterator, as determined by the specified function. Read more
Source§

fn max_set(self) -> Vec<Self::Item>
where Self: Sized, Self::Item: Ord,

Return all maximum elements of an iterator. Read more
Source§

fn max_set_by<F>(self, compare: F) -> Vec<Self::Item>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return all maximum elements of an iterator, as determined by the specified function. Read more
Source§

fn max_set_by_key<K, F>(self, key: F) -> Vec<Self::Item>
where Self: Sized, K: Ord, F: FnMut(&Self::Item) -> K,

Return all maximum elements of an iterator, as determined by the specified function. Read more
Source§

fn minmax(self) -> MinMaxResult<Self::Item>
where Self: Sized, Self::Item: PartialOrd,

Return the minimum and maximum elements in the iterator. Read more
Source§

fn minmax_by_key<K, F>(self, key: F) -> MinMaxResult<Self::Item>
where Self: Sized, K: PartialOrd, F: FnMut(&Self::Item) -> K,

Return the minimum and maximum element of an iterator, as determined by the specified function. Read more
Source§

fn minmax_by<F>(self, compare: F) -> MinMaxResult<Self::Item>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the minimum and maximum element of an iterator, as determined by the specified comparison function. Read more
Source§

fn position_max(self) -> Option<usize>
where Self: Sized, Self::Item: Ord,

Return the position of the maximum element in the iterator. Read more
Source§

fn position_max_by_key<K, F>(self, key: F) -> Option<usize>
where Self: Sized, K: Ord, F: FnMut(&Self::Item) -> K,

Return the position of the maximum element in the iterator, as determined by the specified function. Read more
Source§

fn position_max_by<F>(self, compare: F) -> Option<usize>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the position of the maximum element in the iterator, as determined by the specified comparison function. Read more
Source§

fn position_min(self) -> Option<usize>
where Self: Sized, Self::Item: Ord,

Return the position of the minimum element in the iterator. Read more
Source§

fn position_min_by_key<K, F>(self, key: F) -> Option<usize>
where Self: Sized, K: Ord, F: FnMut(&Self::Item) -> K,

Return the position of the minimum element in the iterator, as determined by the specified function. Read more
Source§

fn position_min_by<F>(self, compare: F) -> Option<usize>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the position of the minimum element in the iterator, as determined by the specified comparison function. Read more
Source§

fn position_minmax(self) -> MinMaxResult<usize>
where Self: Sized, Self::Item: PartialOrd,

Return the positions of the minimum and maximum elements in the iterator. Read more
Source§

fn position_minmax_by_key<K, F>(self, key: F) -> MinMaxResult<usize>
where Self: Sized, K: PartialOrd, F: FnMut(&Self::Item) -> K,

Return the postions of the minimum and maximum elements of an iterator, as determined by the specified function. Read more
Source§

fn position_minmax_by<F>(self, compare: F) -> MinMaxResult<usize>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the postions of the minimum and maximum elements of an iterator, as determined by the specified comparison function. Read more
Source§

fn exactly_one(self) -> Result<Self::Item, ExactlyOneError<Self>>
where Self: Sized,

If the iterator yields exactly one element, that element will be returned, otherwise an error will be returned containing an iterator that has the same output as the input iterator. Read more
Source§

fn at_most_one(self) -> Result<Option<Self::Item>, ExactlyOneError<Self>>
where Self: Sized,

If the iterator yields no elements, Ok(None) will be returned. If the iterator yields exactly one element, that element will be returned, otherwise an error will be returned containing an iterator that has the same output as the input iterator. Read more
Source§

fn multipeek(self) -> MultiPeek<Self>
where Self: Sized,

An iterator adaptor that allows the user to peek at multiple .next() values without advancing the base iterator. Read more
Source§

fn counts(self) -> HashMap<Self::Item, usize>
where Self: Sized, Self::Item: Eq + Hash,

Collect the items in this iterator and return a HashMap which contains each item that appears in the iterator and the number of times it appears. Read more
Source§

fn counts_by<K, F>(self, f: F) -> HashMap<K, usize>
where Self: Sized, K: Eq + Hash, F: FnMut(Self::Item) -> K,

Collect the items in this iterator and return a HashMap which contains each item that appears in the iterator and the number of times it appears, determining identity using a keying function. Read more
Source§

fn multiunzip<FromI>(self) -> FromI
where Self: Sized + MultiUnzip<FromI>,

Converts an iterator of tuples into a tuple of containers. Read more
Source§

fn try_len(&self) -> Result<usize, (usize, Option<usize>)>

Returns the length of the iterator if one exists. Otherwise return self.size_hint(). Read more
Source§

impl<Sp> LocalSpawnExt for Sp
where Sp: LocalSpawn + ?Sized,

Source§

fn spawn_local<Fut>(&self, future: Fut) -> Result<(), SpawnError>
where Fut: Future<Output = ()> + 'static,

Spawns a task that polls the given future with output () to completion. Read more
Source§

impl<T, M> MakeExt<T> for M
where M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>,

Source§

fn debug_alt(self) -> Alt<Self>

Wraps self so that any fmt::Debug fields are recorded using the alternate formatter ({:#?}).
Source§

fn display_messages(self) -> Messages<Self>

Wraps self so that any string fields named “message” are recorded using fmt::Display.
Source§

fn delimited<D>(self, delimiter: D) -> Delimited<D, Self>
where D: AsRef<str> + Clone, Self::Visitor: VisitFmt,

Wraps self so that when fields are formatted to a writer, they are separated by the provided delimiter.
Source§

impl<T, V, F> MakeVisitor<T> for F
where F: Fn(T) -> V, V: Visit,

Source§

type Visitor = V

The visitor type produced by this MakeVisitor.
Source§

fn make_visitor(&self, target: T) -> <F as MakeVisitor<T>>::Visitor

Make a new visitor for the provided target.
Source§

impl<'a, F, W> MakeWriter<'a> for F
where F: Fn() -> W, W: Write,

Source§

type Writer = W

The concrete io::Write implementation returned by make_writer.
Source§

fn make_writer(&'a self) -> <F as MakeWriter<'a>>::Writer

Returns an instance of Writer. Read more
Source§

fn make_writer_for(&'a self, meta: &Metadata<'_>) -> Self::Writer

Returns a Writer for writing data from the span or event described by the provided Metadata. Read more
Source§

impl<'a, M> MakeWriterExt<'a> for M
where M: MakeWriter<'a>,

Source§

fn with_max_level(self, level: Level) -> WithMaxLevel<Self>
where Self: Sized,

Wraps self and returns a MakeWriter that will only write output for events at or below the provided verbosity Level. For instance, Level::TRACE is considered to be _more verbosethanLevel::INFO`. Read more
Source§

fn with_min_level(self, level: Level) -> WithMinLevel<Self>
where Self: Sized,

Wraps self and returns a MakeWriter that will only write output for events at or above the provided verbosity Level. Read more
Source§

fn with_filter<F>(self, filter: F) -> WithFilter<Self, F>
where Self: Sized, F: Fn(&Metadata<'_>) -> bool,

Wraps self with a predicate that takes a span or event’s Metadata and returns a bool. The returned MakeWriter’s MakeWriter::make_writer_for method will check the predicate to determine if a writer should be produced for a given span or event. Read more
Source§

fn and<B>(self, other: B) -> Tee<Self, B>
where Self: Sized, B: MakeWriter<'a>,

Combines self with another type implementing MakeWriter, returning a new MakeWriter that produces writers that write to both outputs. Read more
Source§

fn or_else<W, B>(self, other: B) -> OrElse<Self, B>
where Self: Sized + MakeWriter<'a, Writer = EitherWriter<W, Sink>>, B: MakeWriter<'a>, W: Write,

Combines self with another type implementing MakeWriter, returning a new MakeWriter that calls other’s make_writer if self’s make_writer returns OptionalWriter::none. Read more
Source§

impl<IT> MultiUnzip<()> for IT
where IT: Iterator<Item = ()>,

Source§

fn multiunzip(self)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA> MultiUnzip<(FromA,)> for IT
where IT: Iterator<Item = (A,)>, FromA: Default + Extend<A>,

Source§

fn multiunzip(self) -> (FromA,)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA, B, FromB> MultiUnzip<(FromA, FromB)> for IT
where IT: Iterator<Item = (A, B)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>,

Source§

fn multiunzip(self) -> (FromA, FromB)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA, B, FromB, C, FromC> MultiUnzip<(FromA, FromB, FromC)> for IT
where IT: Iterator<Item = (A, B, C)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>, FromC: Default + Extend<C>,

Source§

fn multiunzip(self) -> (FromA, FromB, FromC)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA, B, FromB, C, FromC, D, FromD> MultiUnzip<(FromA, FromB, FromC, FromD)> for IT
where IT: Iterator<Item = (A, B, C, D)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>, FromC: Default + Extend<C>, FromD: Default + Extend<D>,

Source§

fn multiunzip(self) -> (FromA, FromB, FromC, FromD)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA, B, FromB, C, FromC, D, FromD, E, FromE> MultiUnzip<(FromA, FromB, FromC, FromD, FromE)> for IT
where IT: Iterator<Item = (A, B, C, D, E)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>, FromC: Default + Extend<C>, FromD: Default + Extend<D>, FromE: Default + Extend<E>,

Source§

fn multiunzip(self) -> (FromA, FromB, FromC, FromD, FromE)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA, B, FromB, C, FromC, D, FromD, E, FromE, F, FromF> MultiUnzip<(FromA, FromB, FromC, FromD, FromE, FromF)> for IT
where IT: Iterator<Item = (A, B, C, D, E, F)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>, FromC: Default + Extend<C>, FromD: Default + Extend<D>, FromE: Default + Extend<E>, FromF: Default + Extend<F>,

Source§

fn multiunzip(self) -> (FromA, FromB, FromC, FromD, FromE, FromF)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA, B, FromB, C, FromC, D, FromD, E, FromE, F, FromF, G, FromG> MultiUnzip<(FromA, FromB, FromC, FromD, FromE, FromF, FromG)> for IT
where IT: Iterator<Item = (A, B, C, D, E, F, G)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>, FromC: Default + Extend<C>, FromD: Default + Extend<D>, FromE: Default + Extend<E>, FromF: Default + Extend<F>, FromG: Default + Extend<G>,

Source§

fn multiunzip(self) -> (FromA, FromB, FromC, FromD, FromE, FromF, FromG)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA, B, FromB, C, FromC, D, FromD, E, FromE, F, FromF, G, FromG, H, FromH> MultiUnzip<(FromA, FromB, FromC, FromD, FromE, FromF, FromG, FromH)> for IT
where IT: Iterator<Item = (A, B, C, D, E, F, G, H)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>, FromC: Default + Extend<C>, FromD: Default + Extend<D>, FromE: Default + Extend<E>, FromF: Default + Extend<F>, FromG: Default + Extend<G>, FromH: Default + Extend<H>,

Source§

fn multiunzip(self) -> (FromA, FromB, FromC, FromD, FromE, FromF, FromG, FromH)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA, B, FromB, C, FromC, D, FromD, E, FromE, F, FromF, G, FromG, H, FromH, I, FromI> MultiUnzip<(FromA, FromB, FromC, FromD, FromE, FromF, FromG, FromH, FromI)> for IT
where IT: Iterator<Item = (A, B, C, D, E, F, G, H, I)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>, FromC: Default + Extend<C>, FromD: Default + Extend<D>, FromE: Default + Extend<E>, FromF: Default + Extend<F>, FromG: Default + Extend<G>, FromH: Default + Extend<H>, FromI: Default + Extend<I>,

Source§

fn multiunzip( self, ) -> (FromA, FromB, FromC, FromD, FromE, FromF, FromG, FromH, FromI)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA, B, FromB, C, FromC, D, FromD, E, FromE, F, FromF, G, FromG, H, FromH, I, FromI, J, FromJ> MultiUnzip<(FromA, FromB, FromC, FromD, FromE, FromF, FromG, FromH, FromI, FromJ)> for IT
where IT: Iterator<Item = (A, B, C, D, E, F, G, H, I, J)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>, FromC: Default + Extend<C>, FromD: Default + Extend<D>, FromE: Default + Extend<E>, FromF: Default + Extend<F>, FromG: Default + Extend<G>, FromH: Default + Extend<H>, FromI: Default + Extend<I>, FromJ: Default + Extend<J>,

Source§

fn multiunzip( self, ) -> (FromA, FromB, FromC, FromD, FromE, FromF, FromG, FromH, FromI, FromJ)

Unzip this iterator into multiple collections.
Source§

impl<IT, A, FromA, B, FromB, C, FromC, D, FromD, E, FromE, F, FromF, G, FromG, H, FromH, I, FromI, J, FromJ, K, FromK> MultiUnzip<(FromA, FromB, FromC, FromD, FromE, FromF, FromG, FromH, FromI, FromJ, FromK)> for IT
where IT: Iterator<Item = (A, B, C, D, E, F, G, H, I, J, K)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>, FromC: Default + Extend<C>, FromD: Default + Extend<D>, FromE: Default + Extend<E>, FromF: Default + Extend<F>, FromG: Default + Extend<G>, FromH: Default + Extend<H>, FromI: Default + Extend<I>, FromJ: Default + Extend<J>, FromK: Default + Extend<K>,

Source§

impl<IT, A, FromA, B, FromB, C, FromC, D, FromD, E, FromE, F, FromF, G, FromG, H, FromH, I, FromI, J, FromJ, K, FromK, L, FromL> MultiUnzip<(FromA, FromB, FromC, FromD, FromE, FromF, FromG, FromH, FromI, FromJ, FromK, FromL)> for IT
where IT: Iterator<Item = (A, B, C, D, E, F, G, H, I, J, K, L)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>, FromC: Default + Extend<C>, FromD: Default + Extend<D>, FromE: Default + Extend<E>, FromF: Default + Extend<F>, FromG: Default + Extend<G>, FromH: Default + Extend<H>, FromI: Default + Extend<I>, FromJ: Default + Extend<J>, FromK: Default + Extend<K>, FromL: Default + Extend<L>,

Source§

impl<T> NoneValue for T
where T: Default,

Source§

type NoneType = T

Source§

fn null_value() -> T

The none-equivalent value.
Source§

impl<S, T> ParallelSlice<T> for S
where T: Sync, S: AsRef<[T]>,

Source§

fn par_chunk_map<F, R>( &self, task_pool: &TaskPool, chunk_size: usize, f: F, ) -> Vec<R>
where F: Fn(usize, &[T]) -> R + Send + Sync, R: Send + 'static,

Splits the slice in chunks of size chunks_size or less and maps the chunks in parallel across the provided task_pool. One task is spawned in the task pool for every chunk. Read more
Source§

fn par_splat_map<F, R>( &self, task_pool: &TaskPool, max_tasks: Option<usize>, f: F, ) -> Vec<R>
where F: Fn(usize, &[T]) -> R + Send + Sync, R: Send + 'static,

Splits the slice into a maximum of max_tasks chunks, and maps the chunks in parallel across the provided task_pool. One task is spawned in the task pool for every chunk. Read more
Source§

impl<S, T> ParallelSliceMut<T> for S
where T: Send, S: AsMut<[T]>,

Source§

fn par_chunk_map_mut<F, R>( &mut self, task_pool: &TaskPool, chunk_size: usize, f: F, ) -> Vec<R>
where F: Fn(usize, &mut [T]) -> R + Send + Sync, R: Send + 'static,

Splits the slice in chunks of size chunks_size or less and maps the chunks in parallel across the provided task_pool. One task is spawned in the task pool for every chunk. Read more
Source§

fn par_splat_map_mut<F, R>( &mut self, task_pool: &TaskPool, max_tasks: Option<usize>, f: F, ) -> Vec<R>
where F: Fn(usize, &mut [T]) -> R + Send + Sync, R: Send + 'static,

Splits the slice into a maximum of max_tasks chunks, and maps the chunks in parallel across the provided task_pool. One task is spawned in the task pool for every chunk. Read more
Source§

impl<I, O, E, F> Parser<I, O, E> for F
where F: FnMut(&mut I) -> Result<O, E>, I: Stream,

Source§

fn parse_next(&mut self, i: &mut I) -> Result<O, E>

Take tokens from the Stream, turning it into the output Read more
Source§

fn parse( &mut self, input: I, ) -> Result<O, ParseError<I, <E as ParserError<I>>::Inner>>
where Self: Sized, I: Stream + StreamIsPartial, E: ParserError<I>, <E as ParserError<I>>::Inner: ParserError<I>,

Parse all of input, generating O from it
Source§

fn parse_peek(&mut self, input: I) -> Result<(I, O), E>

Take tokens from the Stream, turning it into the output Read more
Source§

fn by_ref(&mut self) -> ByRef<'_, Self, I, O, E>
where Self: Sized,

Treat &mut Self as a parser Read more
Source§

fn value<O2>(self, val: O2) -> Value<Self, I, O, O2, E>
where Self: Sized, O2: Clone,

Produce the provided value Read more
Source§

fn default_value<O2>(self) -> DefaultValue<Self, I, O, O2, E>
where Self: Sized, O2: Default,

Produce a type’s default value Read more
Source§

fn void(self) -> Void<Self, I, O, E>
where Self: Sized,

Discards the output of the Parser Read more
Source§

fn output_into<O2>(self) -> OutputInto<Self, I, O, O2, E>
where Self: Sized, O: Into<O2>,

Convert the parser’s output to another type using std::convert::From Read more
Source§

fn take(self) -> Take<Self, I, O, E>
where Self: Sized, I: Stream,

Produce the consumed input as produced value. Read more
Source§

fn with_taken(self) -> WithTaken<Self, I, O, E>
where Self: Sized, I: Stream,

Produce the consumed input with the output Read more
Source§

fn span(self) -> Span<Self, I, O, E>
where Self: Sized, I: Stream + Location,

Produce the location of the consumed input as produced value. Read more
Source§

fn with_span(self) -> WithSpan<Self, I, O, E>
where Self: Sized, I: Stream + Location,

Produce the location of consumed input with the output Read more
Source§

fn map<G, O2>(self, map: G) -> Map<Self, G, I, O, O2, E>
where G: FnMut(O) -> O2, Self: Sized,

Maps a function over the output of a parser Read more
Source§

fn try_map<G, O2, E2>(self, map: G) -> TryMap<Self, G, I, O, O2, E, E2>
where Self: Sized, G: FnMut(O) -> Result<O2, E2>, I: Stream, E: FromExternalError<I, E2> + ParserError<I>,

Applies a function returning a Result over the output of a parser. Read more
Source§

fn verify_map<G, O2>(self, map: G) -> VerifyMap<Self, G, I, O, O2, E>
where Self: Sized, G: FnMut(O) -> Option<O2>, I: Stream, E: ParserError<I>,

Source§

fn flat_map<G, H, O2>(self, map: G) -> FlatMap<Self, G, H, I, O, O2, E>
where Self: Sized, G: FnMut(O) -> H, H: Parser<I, O2, E>,

Creates a parser from the output of this one Read more
Source§

fn and_then<G, O2>(self, inner: G) -> AndThen<Self, G, I, O, O2, E>
where Self: Sized, G: Parser<O, O2, E>, O: StreamIsPartial, I: Stream,

Applies a second parser over the output of the first one Read more
Source§

fn parse_to<O2>(self) -> ParseTo<Self, I, O, O2, E>
where Self: Sized, I: Stream, O: ParseSlice<O2>, E: ParserError<I>,

Apply std::str::FromStr to the output of the parser Read more
Source§

fn verify<G, O2>(self, filter: G) -> Verify<Self, G, I, O, O2, E>
where Self: Sized, G: FnMut(&O2) -> bool, I: Stream, O: Borrow<O2>, E: ParserError<I>, O2: ?Sized,

Returns the output of the child parser if it satisfies a verification function. Read more
Source§

fn context<C>(self, context: C) -> Context<Self, I, O, E, C>
where Self: Sized, I: Stream, E: AddContext<I, C> + ParserError<I>, C: Clone + Debug,

If parsing fails, add context to the error Read more
Source§

fn context_with<F, C, FI>( self, context: F, ) -> ContextWith<Self, I, O, E, F, C, FI>
where Self: Sized, I: Stream, E: AddContext<I, C> + ParserError<I>, F: Fn() -> FI + Clone, C: Debug, FI: Iterator<Item = C>,

If parsing fails, dynamically add context to the error Read more
Source§

fn map_err<G, E2>(self, map: G) -> MapErr<Self, G, I, O, E, E2>
where G: FnMut(E) -> E2, Self: Sized,

Maps a function over the error of a parser Read more
Source§

fn complete_err(self) -> CompleteErr<Self, I, O, E>
where Self: Sized,

Source§

fn err_into<E2>(self) -> ErrInto<Self, I, O, E, E2>
where Self: Sized, E: Into<E2>,

Convert the parser’s error to another type using std::convert::From
Source§

impl<F, T> Parser for F
where F: FnOnce(&ParseBuffer<'_>) -> Result<T, Error>,

Source§

type Output = T

Source§

fn parse2(self, tokens: TokenStream) -> Result<T, Error>

Parse a proc-macro2 token stream into the chosen syntax tree node. Read more
Source§

fn __parse_scoped( self, scope: Span, tokens: TokenStream, ) -> Result<<F as Parser>::Output, Error>

Source§

fn parse(self, tokens: TokenStream) -> Result<Self::Output, Error>

Parse tokens of source code into the chosen syntax tree node. Read more
Source§

fn parse_str(self, s: &str) -> Result<Self::Output, Error>

Parse a string of Rust code into the chosen syntax tree node. Read more
Source§

impl<F> Pattern for F
where F: FnMut(char) -> bool,

Source§

type Searcher<'a> = CharPredicateSearcher<'a, F>

🔬This is a nightly-only experimental API. (pattern)
Associated searcher for this pattern
Source§

fn into_searcher<'a>(self, haystack: &'a str) -> CharPredicateSearcher<'a, F>

🔬This is a nightly-only experimental API. (pattern)
Constructs the associated searcher from self and the haystack to search in.
Source§

fn is_contained_in<'a>(self, haystack: &'a str) -> bool

🔬This is a nightly-only experimental API. (pattern)
Checks whether the pattern matches anywhere in the haystack
Source§

fn is_prefix_of<'a>(self, haystack: &'a str) -> bool

🔬This is a nightly-only experimental API. (pattern)
Checks whether the pattern matches at the front of the haystack
Source§

fn strip_prefix_of<'a>(self, haystack: &'a str) -> Option<&'a str>

🔬This is a nightly-only experimental API. (pattern)
Removes the pattern from the front of haystack, if it matches.
Source§

fn is_suffix_of<'a>(self, haystack: &'a str) -> bool

🔬This is a nightly-only experimental API. (pattern)
Checks whether the pattern matches at the back of the haystack
Source§

fn strip_suffix_of<'a>(self, haystack: &'a str) -> Option<&'a str>

🔬This is a nightly-only experimental API. (pattern)
Removes the pattern from the back of haystack, if it matches.
Source§

fn as_utf8_pattern(&self) -> Option<Utf8Pattern<'_>>

🔬This is a nightly-only experimental API. (pattern)
Returns the pattern as utf-8 bytes if possible.
Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Plugin for T
where T: Fn(&mut App) + Send + Sync + 'static,

Source§

fn build(&self, app: &mut App)

Configures the App to which this plugin is added.
Source§

fn ready(&self, _app: &App) -> bool

Has the plugin finished its setup? This can be useful for plugins that need something asynchronous to happen before they can finish their setup, like the initialization of a renderer. Once the plugin is ready, finish should be called.
Source§

fn finish(&self, _app: &mut App)

Finish adding this plugin to the App, once all plugins registered are ready. This can be useful for plugins that depends on another plugin asynchronous setup, like the renderer.
Source§

fn cleanup(&self, _app: &mut App)

Runs after all plugins are built and finished, but before the app schedule is executed. This can be useful if you have some resource that other plugins need during their build step, but after build you want to remove it and send it to another thread.
Source§

fn name(&self) -> &str

Configures a name for the Plugin which is primarily used for checking plugin uniqueness and debugging.
Source§

fn is_unique(&self) -> bool

If the plugin can be meaningfully instantiated several times in an App, override this method to return false.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<R> ReadBytes for R
where R: Read,

Source§

fn read_u8(&mut self, endian: Endian) -> Result<u8, Error>

Read a u8.
Source§

fn read_u16(&mut self, endian: Endian) -> Result<u16, Error>

Read a u16.
Source§

fn read_u32(&mut self, endian: Endian) -> Result<u32, Error>

Read a u32.
Source§

fn read_u64(&mut self, endian: Endian) -> Result<u64, Error>

Read a u64.
Source§

fn read_u128(&mut self, endian: Endian) -> Result<u128, Error>

Read a u128.
Source§

fn read_i8(&mut self, endian: Endian) -> Result<i8, Error>

Read a i8.
Source§

fn read_i16(&mut self, endian: Endian) -> Result<i16, Error>

Read a i16.
Source§

fn read_i32(&mut self, endian: Endian) -> Result<i32, Error>

Read a i32.
Source§

fn read_i64(&mut self, endian: Endian) -> Result<i64, Error>

Read a i64.
Source§

fn read_i128(&mut self, endian: Endian) -> Result<i128, Error>

Read a i128.
Source§

fn read_f32(&mut self, endian: Endian) -> Result<f32, Error>

Read a f32.
Source§

fn read_f64(&mut self, endian: Endian) -> Result<f64, Error>

Read a f64.
Source§

impl<R> ReadBytesExt for R
where R: Read + ?Sized,

Source§

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

Reads an unsigned 8 bit integer from the underlying reader. Read more
Source§

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

Reads a signed 8 bit integer from the underlying reader. Read more
Source§

fn read_u16<T>(&mut self) -> Result<u16, Error>
where T: ByteOrder,

Reads an unsigned 16 bit integer from the underlying reader. Read more
Source§

fn read_i16<T>(&mut self) -> Result<i16, Error>
where T: ByteOrder,

Reads a signed 16 bit integer from the underlying reader. Read more
Source§

fn read_u24<T>(&mut self) -> Result<u32, Error>
where T: ByteOrder,

Reads an unsigned 24 bit integer from the underlying reader. Read more
Source§

fn read_i24<T>(&mut self) -> Result<i32, Error>
where T: ByteOrder,

Reads a signed 24 bit integer from the underlying reader. Read more
Source§

fn read_u32<T>(&mut self) -> Result<u32, Error>
where T: ByteOrder,

Reads an unsigned 32 bit integer from the underlying reader. Read more
Source§

fn read_i32<T>(&mut self) -> Result<i32, Error>
where T: ByteOrder,

Reads a signed 32 bit integer from the underlying reader. Read more
Source§

fn read_u48<T>(&mut self) -> Result<u64, Error>
where T: ByteOrder,

Reads an unsigned 48 bit integer from the underlying reader. Read more
Source§

fn read_i48<T>(&mut self) -> Result<i64, Error>
where T: ByteOrder,

Reads a signed 48 bit integer from the underlying reader. Read more
Source§

fn read_u64<T>(&mut self) -> Result<u64, Error>
where T: ByteOrder,

Reads an unsigned 64 bit integer from the underlying reader. Read more
Source§

fn read_i64<T>(&mut self) -> Result<i64, Error>
where T: ByteOrder,

Reads a signed 64 bit integer from the underlying reader. Read more
Source§

fn read_u128<T>(&mut self) -> Result<u128, Error>
where T: ByteOrder,

Reads an unsigned 128 bit integer from the underlying reader. Read more
Source§

fn read_i128<T>(&mut self) -> Result<i128, Error>
where T: ByteOrder,

Reads a signed 128 bit integer from the underlying reader. Read more
Source§

fn read_uint<T>(&mut self, nbytes: usize) -> Result<u64, Error>
where T: ByteOrder,

Reads an unsigned n-bytes integer from the underlying reader. Read more
Source§

fn read_int<T>(&mut self, nbytes: usize) -> Result<i64, Error>
where T: ByteOrder,

Reads a signed n-bytes integer from the underlying reader. Read more
Source§

fn read_uint128<T>(&mut self, nbytes: usize) -> Result<u128, Error>
where T: ByteOrder,

Reads an unsigned n-bytes integer from the underlying reader.
Source§

fn read_int128<T>(&mut self, nbytes: usize) -> Result<i128, Error>
where T: ByteOrder,

Reads a signed n-bytes integer from the underlying reader.
Source§

fn read_f32<T>(&mut self) -> Result<f32, Error>
where T: ByteOrder,

Reads a IEEE754 single-precision (4 bytes) floating point number from the underlying reader. Read more
Source§

fn read_f64<T>(&mut self) -> Result<f64, Error>
where T: ByteOrder,

Reads a IEEE754 double-precision (8 bytes) floating point number from the underlying reader. Read more
Source§

fn read_u16_into<T>(&mut self, dst: &mut [u16]) -> Result<(), Error>
where T: ByteOrder,

Reads a sequence of unsigned 16 bit integers from the underlying reader. Read more
Source§

fn read_u32_into<T>(&mut self, dst: &mut [u32]) -> Result<(), Error>
where T: ByteOrder,

Reads a sequence of unsigned 32 bit integers from the underlying reader. Read more
Source§

fn read_u64_into<T>(&mut self, dst: &mut [u64]) -> Result<(), Error>
where T: ByteOrder,

Reads a sequence of unsigned 64 bit integers from the underlying reader. Read more
Source§

fn read_u128_into<T>(&mut self, dst: &mut [u128]) -> Result<(), Error>
where T: ByteOrder,

Reads a sequence of unsigned 128 bit integers from the underlying reader. Read more
Source§

fn read_i8_into(&mut self, dst: &mut [i8]) -> Result<(), Error>

Reads a sequence of signed 8 bit integers from the underlying reader. Read more
Source§

fn read_i16_into<T>(&mut self, dst: &mut [i16]) -> Result<(), Error>
where T: ByteOrder,

Reads a sequence of signed 16 bit integers from the underlying reader. Read more
Source§

fn read_i32_into<T>(&mut self, dst: &mut [i32]) -> Result<(), Error>
where T: ByteOrder,

Reads a sequence of signed 32 bit integers from the underlying reader. Read more
Source§

fn read_i64_into<T>(&mut self, dst: &mut [i64]) -> Result<(), Error>
where T: ByteOrder,

Reads a sequence of signed 64 bit integers from the underlying reader. Read more
Source§

fn read_i128_into<T>(&mut self, dst: &mut [i128]) -> Result<(), Error>
where T: ByteOrder,

Reads a sequence of signed 128 bit integers from the underlying reader. Read more
Source§

fn read_f32_into<T>(&mut self, dst: &mut [f32]) -> Result<(), Error>
where T: ByteOrder,

Reads a sequence of IEEE754 single-precision (4 bytes) floating point numbers from the underlying reader. Read more
Source§

fn read_f32_into_unchecked<T>(&mut self, dst: &mut [f32]) -> Result<(), Error>
where T: ByteOrder,

👎Deprecated since 1.2.0: please use read_f32_into instead
DEPRECATED. Read more
Source§

fn read_f64_into<T>(&mut self, dst: &mut [f64]) -> Result<(), Error>
where T: ByteOrder,

Reads a sequence of IEEE754 double-precision (8 bytes) floating point numbers from the underlying reader. Read more
Source§

fn read_f64_into_unchecked<T>(&mut self, dst: &mut [f64]) -> Result<(), Error>
where T: ByteOrder,

👎Deprecated since 1.2.0: please use read_f64_into instead
DEPRECATED. Read more
Source§

impl<R> ReadBytesExt for R
where R: Read + ?Sized,

Source§

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

Reads an unsigned 8 bit integer from the underlying reader. Read more
Source§

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

Reads a signed 8 bit integer from the underlying reader. Read more
Source§

fn read_u16<T>(&mut self) -> Result<u16, Error>
where T: ByteOrder,

Reads an unsigned 16 bit integer from the underlying reader. Read more
Source§

fn read_i16<T>(&mut self) -> Result<i16, Error>
where T: ByteOrder,

Reads a signed 16 bit integer from the underlying reader. Read more
Source§

fn read_u24<T>(&mut self) -> Result<u32, Error>
where T: ByteOrder,

Reads an unsigned 24 bit integer from the underlying reader. Read more
Source§

fn read_i24<T>(&mut self) -> Result<i32, Error>
where T: ByteOrder,

Reads a signed 24 bit integer from the underlying reader. Read more
Source§

fn read_u32<T>(&mut self) -> Result<u32, Error>
where T: ByteOrder,

Reads an unsigned 32 bit integer from the underlying reader. Read more
Source§

fn read_i32<T>(&mut self) -> Result<i32, Error>
where T: ByteOrder,

Reads a signed 32 bit integer from the underlying reader. Read more
Source§

fn read_u48<T>(&mut self) -> Result<u64, Error>
where T: ByteOrder,

Reads an unsigned 48 bit integer from the underlying reader. Read more
Source§

fn read_i48<T>(&mut self) -> Result<i64, Error>
where T: ByteOrder,

Reads a signed 48 bit integer from the underlying reader. Read more
Source§

fn read_u64<T>(&mut self) -> Result<u64, Error>
where T: ByteOrder,

Reads an unsigned 64 bit integer from the underlying reader. Read more
Source§

fn read_i64<T>(&mut self) -> Result<i64, Error>
where T: ByteOrder,

Reads a signed 64 bit integer from the underlying reader. Read more
Source§

fn read_u128<T>(&mut self) -> Result<u128, Error>
where T: ByteOrder,

Reads an unsigned 128 bit integer from the underlying reader. Read more
Source§

fn read_i128<T>(&mut self) -> Result<i128, Error>
where T: ByteOrder,

Reads a signed 128 bit integer from the underlying reader. Read more
Source§

fn read_uint<T>(&mut self, nbytes: usize) -> Result<u64, Error>
where T: ByteOrder,

Reads an unsigned n-bytes integer from the underlying reader. Read more
Source§

fn read_int<T>(&mut self, nbytes: usize) -> Result<i64, Error>
where T: ByteOrder,

Reads a signed n-bytes integer from the underlying reader. Read more
Source§

fn read_uint128<T>(&mut self, nbytes: usize) -> Result<u128, Error>
where T: ByteOrder,

Reads an unsigned n-bytes integer from the underlying reader.
Source§

fn read_int128<T>(&mut self, nbytes: usize) -> Result<i128, Error>
where T: ByteOrder,

Reads a signed n-bytes integer from the underlying reader.
Source§

fn read_f32<T>(&mut self) -> Result<f32, Error>
where T: ByteOrder,

Reads a IEEE754 single-precision (4 bytes) floating point number from the underlying reader. Read more
Source§

fn read_f64<T>(&mut self) -> Result<f64, Error>
where T: ByteOrder,

Reads a IEEE754 double-precision (8 bytes) floating point number from the underlying reader. Read more
Source§

impl<R> ReadEndian<[f32]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [f32], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [f32]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[f64]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [f64], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [f64]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[i128]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [i128], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [i128]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[i16]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [i16], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [i16]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[i32]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [i32], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [i32]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[i64]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [i64], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [i64]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[i8]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [i8], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [i8]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[u128]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [u128], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [u128]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[u16]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [u16], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [u16]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[u32]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [u32], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [u32]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[u64]> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut [u64], ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut [u64]) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<[u8]> for R
where R: Read,

Source§

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

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

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

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<f32> for R
where R: Read,

Source§

fn read_from_little_endian_into(&mut self, value: &mut f32) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut f32) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<f64> for R
where R: Read,

Source§

fn read_from_little_endian_into(&mut self, value: &mut f64) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut f64) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<i128> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut i128, ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut i128) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<i16> for R
where R: Read,

Source§

fn read_from_little_endian_into(&mut self, value: &mut i16) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut i16) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<i32> for R
where R: Read,

Source§

fn read_from_little_endian_into(&mut self, value: &mut i32) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut i32) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<i64> for R
where R: Read,

Source§

fn read_from_little_endian_into(&mut self, value: &mut i64) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut i64) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<i8> for R
where R: Read,

Source§

fn read_from_little_endian_into(&mut self, value: &mut i8) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut i8) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<u128> for R
where R: Read,

Source§

fn read_from_little_endian_into( &mut self, value: &mut u128, ) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut u128) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<u16> for R
where R: Read,

Source§

fn read_from_little_endian_into(&mut self, value: &mut u16) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut u16) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<u32> for R
where R: Read,

Source§

fn read_from_little_endian_into(&mut self, value: &mut u32) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut u32) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<u64> for R
where R: Read,

Source§

fn read_from_little_endian_into(&mut self, value: &mut u64) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut u64) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R> ReadEndian<u8> for R
where R: Read,

Source§

fn read_from_little_endian_into(&mut self, value: &mut u8) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_big_endian_into(&mut self, value: &mut u8) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
Source§

fn read_from_little_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_big_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

fn read_from_native_endian(&mut self) -> Result<T, Error>
where T: Default,

Read the byte value of the inferred type
Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<'env, Receiver, ReturnType, Function> ReflectFn<'env, fn(&Receiver) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, ReturnType, Function> ReflectFn<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, Arg14: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &'a ReturnType + 'env + for<'a> Fn(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>, <Arg14 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, Arg14: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &'a ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>, <Arg14 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, ReturnType, Function> ReflectFn<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, Arg14: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> Fn(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &'a mut ReturnType + 'env + for<'a> Fn(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>, <Arg14 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, ReturnType, Function> ReflectFn<'env, fn() -> [ReturnType]> for Function
where ReturnType: IntoReturn + Reflect, Function: Fn() -> ReturnType + 'env + for<'a> Fn(),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, ReturnType, Function> ReflectFn<'env, fn(Arg0) -> [ReturnType]> for Function
where Arg0: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, ReturnType, Function> ReflectFn<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, Arg14: FromArg, ReturnType: IntoReturn + Reflect, Function: Fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> ReturnType + 'env + for<'a> Fn(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>, <Arg14 as FromArg>::This<'a>),

Source§

fn reflect_call<'a>( &self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, ReturnType, Function> ReflectFnMut<'env, fn(&Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, Arg14: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &'a ReturnType + 'env + for<'a> FnMut(&'a Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>, <Arg14 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, Arg14: FromArg, ReturnType: Reflect, &'a ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &'a ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>, <Arg14 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, ReturnType, Function> ReflectFnMut<'env, fn(&mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &mut ReturnType> for Function
where Receiver: Reflect + TypePath, Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, Arg14: FromArg, ReturnType: Reflect, &'a mut ReturnType: for<'a> IntoReturn, Function: for<'a> FnMut(&'a mut Receiver, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> &'a mut ReturnType + 'env + for<'a> FnMut(&'a mut Receiver, <Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>, <Arg14 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, ReturnType, Function> ReflectFnMut<'env, fn() -> [ReturnType]> for Function
where ReturnType: IntoReturn + Reflect, Function: FnMut() -> ReturnType + 'env + for<'a> FnMut(),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, ReturnType, Function> ReflectFnMut<'env, fn(Arg0) -> [ReturnType]> for Function
where Arg0: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<'env, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, ReturnType, Function> ReflectFnMut<'env, fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> [ReturnType]> for Function
where Arg0: FromArg, Arg1: FromArg, Arg2: FromArg, Arg3: FromArg, Arg4: FromArg, Arg5: FromArg, Arg6: FromArg, Arg7: FromArg, Arg8: FromArg, Arg9: FromArg, Arg10: FromArg, Arg11: FromArg, Arg12: FromArg, Arg13: FromArg, Arg14: FromArg, ReturnType: IntoReturn + Reflect, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> ReturnType + 'env + for<'a> FnMut(<Arg0 as FromArg>::This<'a>, <Arg1 as FromArg>::This<'a>, <Arg2 as FromArg>::This<'a>, <Arg3 as FromArg>::This<'a>, <Arg4 as FromArg>::This<'a>, <Arg5 as FromArg>::This<'a>, <Arg6 as FromArg>::This<'a>, <Arg7 as FromArg>::This<'a>, <Arg8 as FromArg>::This<'a>, <Arg9 as FromArg>::This<'a>, <Arg10 as FromArg>::This<'a>, <Arg11 as FromArg>::This<'a>, <Arg12 as FromArg>::This<'a>, <Arg13 as FromArg>::This<'a>, <Arg14 as FromArg>::This<'a>),

Source§

fn reflect_call_mut<'a>( &mut self, args: ArgList<'a>, ) -> Result<Return<'a>, FunctionError>

Call the function with the given arguments and return the result.
Source§

impl<F, T> Replacer for F
where F: FnMut(&Captures<'_>) -> T, T: AsRef<[u8]>,

Source§

fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut Vec<u8>)

Appends possibly empty data to dst to replace the current match. Read more
Source§

fn no_expansion<'r>(&'r mut self) -> Option<Cow<'r, [u8]>>

Return a fixed unchanging replacement byte string. Read more
Source§

fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>

Returns a type that implements Replacer, but that borrows and wraps this Replacer. Read more
Source§

impl<F, T> Replacer for F
where F: FnMut(&Captures<'_>) -> T, T: AsRef<str>,

Source§

fn replace_append(&mut self, caps: &Captures<'_>, dst: &mut String)

Appends possibly empty data to dst to replace the current match. Read more
Source§

fn no_expansion<'r>(&'r mut self) -> Option<Cow<'r, str>>

Return a fixed unchanging replacement string. Read more
Source§

fn by_ref<'r>(&'r mut self) -> ReplacerRef<'r, Self>

Returns a type that implements Replacer, but that borrows and wraps this Replacer. Read more
Source§

impl<R> Rng for R
where R: RngCore + ?Sized,

Source§

fn gen<T>(&mut self) -> T

Return a random value supporting the Standard distribution. Read more
Source§

fn gen_range<T, R>(&mut self, range: R) -> T
where T: SampleUniform, R: SampleRange<T>,

Generate a random value in the given range. Read more
Source§

fn sample<T, D>(&mut self, distr: D) -> T
where D: Distribution<T>,

Sample a new value, using the given distribution. Read more
Source§

fn sample_iter<T, D>(self, distr: D) -> DistIter<D, Self, T>
where D: Distribution<T>, Self: Sized,

Create an iterator that generates values using the given distribution. Read more
Source§

fn fill<T>(&mut self, dest: &mut T)
where T: Fill + ?Sized,

Fill any type implementing Fill with random data Read more
Source§

fn try_fill<T>(&mut self, dest: &mut T) -> Result<(), Error>
where T: Fill + ?Sized,

Fill any type implementing Fill with random data Read more
Source§

fn gen_bool(&mut self, p: f64) -> bool

Return a bool with a probability p of being true. Read more
Source§

fn gen_ratio(&mut self, numerator: u32, denominator: u32) -> bool

Return a bool with a probability of numerator/denominator of being true. I.e. gen_ratio(2, 3) has chance of 2 in 3, or about 67%, of returning true. If numerator == denominator, then the returned value is guaranteed to be true. If numerator == 0, then the returned value is guaranteed to be false. Read more
Source§

impl<T, C, D> SampleDerivative<T> for D
where T: HasTangent, C: SampleDerivative<T> + ?Sized, D: Deref<Target = C>,

Source§

fn sample_with_derivative_unchecked(&self, t: f32) -> WithDerivative<T>

Sample this curve at the parameter value t, extracting the associated value in addition to its derivative. This is the unchecked version of sampling, which should only be used if the sample time t is already known to lie within the curve’s domain. Read more
Source§

fn sample_with_derivative(&self, t: f32) -> Option<WithDerivative<T>>

Sample this curve’s value and derivative at the parameter value t, returning None if the point is outside of the curve’s domain.
Source§

fn sample_with_derivative_clamped(&self, t: f32) -> WithDerivative<T>

Sample this curve’s value and derivative at the parameter value t, clamping t to lie inside the domain of the curve.
Source§

impl<F> ScanEventHandler for F
where F: FnMut(Result<PathBuf, Error>) + Send + 'static,

Source§

fn handle_event(&mut self, event: Result<PathBuf, Error>)

Handles an event.
Source§

impl<M, F> Schedule<M> for F
where F: Fn(Runnable<M>),

Source§

fn schedule(&self, runnable: Runnable<M>, _: ScheduleInfo)

The actual scheduling procedure.
Source§

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

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> Source for T
where T: Deref, <T as Deref>::Target: Source,

Source§

type Slice<'a> = <<T as Deref>::Target as Source>::Slice<'a> where T: 'a

A type this Source can be sliced into.
Source§

fn len(&self) -> usize

Length of the source
Source§

fn read<'a, Chunk>(&'a self, offset: usize) -> Option<Chunk>
where Chunk: Chunk<'a>,

Read a chunk of bytes into an array. Returns None when reading out of bounds would occur. Read more
Source§

unsafe fn read_byte_unchecked(&self, offset: usize) -> u8

Read a byte without doing bounds checks. Read more
Source§

fn slice(&self, range: Range<usize>) -> Option<<T as Source>::Slice<'_>>

Get a slice of the source at given range. This is analogous to slice::get(range). Read more
Source§

unsafe fn slice_unchecked( &self, range: Range<usize>, ) -> <T as Source>::Slice<'_>

Get a slice of the source at given range. This is analogous to slice::get_unchecked(range). Read more
Source§

fn is_boundary(&self, index: usize) -> bool

Check if index is valid for this Source, that is: Read more
Source§

fn find_boundary(&self, index: usize) -> usize

For &str sources attempts to find the closest char boundary at which source can be sliced, starting from index. Read more
Source§

impl<T> Spanned for T
where T: Spanned + ?Sized,

Source§

fn span(&self) -> Span

Returns a Span covering the complete contents of this syntax tree node, or Span::call_site() if this node is empty.
Source§

impl<Sp> SpawnExt for Sp
where Sp: Spawn + ?Sized,

Source§

fn spawn<Fut>(&self, future: Fut) -> Result<(), SpawnError>
where Fut: Future<Output = ()> + Send + 'static,

Spawns a task that polls the given future with output () to completion. Read more
Source§

impl<S> StreamExt for S
where S: Stream + ?Sized,

Source§

fn poll_next(&mut self, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>
where Self: Unpin,

A convenience for calling Stream::poll_next() on !Unpin types.
Source§

fn next(&mut self) -> NextFuture<'_, Self>
where Self: Unpin,

Retrieves the next item in the stream. Read more
Source§

fn try_next<T, E>(&mut self) -> TryNextFuture<'_, Self>
where Self: Stream<Item = Result<T, E>> + Unpin,

Retrieves the next item in the stream. Read more
Source§

fn count(self) -> CountFuture<Self>
where Self: Sized,

Counts the number of items in the stream. Read more
Source§

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

Maps items of the stream to new values using a closure. Read more
Source§

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

Maps items to streams and then concatenates them. Read more
Source§

fn flatten(self) -> Flatten<Self>
where Self: Sized, Self::Item: Stream,

Concatenates inner streams. Read more
Source§

fn then<F, Fut>(self, f: F) -> Then<Self, F, Fut>
where Self: Sized, F: FnMut(Self::Item) -> Fut, Fut: Future,

Maps items of the stream to new values using an async closure. Read more
Source§

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

Keeps items of the stream for which predicate returns true. Read more
Source§

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

Filters and maps items of the stream using a closure. Read more
Source§

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

Takes only the first n items of the stream. Read more
Source§

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

Takes items while predicate returns true. Read more
Source§

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

Maps items while predicate returns Some. Read more
Source§

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

Skips the first n items of the stream. Read more
Source§

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

Skips items while predicate returns true. Read more
Source§

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

Yields every stepth item. Read more
Source§

fn chain<U>(self, other: U) -> Chain<Self, U>
where Self: Sized, U: Stream<Item = Self::Item>,

Appends another stream to the end of this one. Read more
Source§

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

Clones all items. Read more
Source§

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

Copies all items. Read more
Source§

fn collect<C>(self) -> CollectFuture<Self, C>
where Self: Sized, C: Default + Extend<Self::Item>,

Collects all items in the stream into a collection. Read more
Source§

fn try_collect<T, E, C>(self) -> TryCollectFuture<Self, C>
where Self: Sized + Stream<Item = Result<T, E>>, C: Default + Extend<T>,

Collects all items in the fallible stream into a collection. Read more
Source§

fn partition<B, P>(self, predicate: P) -> PartitionFuture<Self, P, B>
where Self: Sized, B: Default + Extend<Self::Item>, P: FnMut(&Self::Item) -> bool,

Partitions items into those for which predicate is true and those for which it is false, and then collects them into two collections. Read more
Source§

fn fold<T, F>(self, init: T, f: F) -> FoldFuture<Self, F, T>
where Self: Sized, F: FnMut(T, Self::Item) -> T,

Accumulates a computation over the stream. Read more
Source§

fn try_fold<T, E, F, B>( &mut self, init: B, f: F, ) -> TryFoldFuture<'_, Self, F, B>
where Self: Sized + Stream<Item = Result<T, E>> + Unpin, F: FnMut(B, T) -> Result<B, E>,

Accumulates a fallible computation over the stream. Read more
Source§

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

Maps items of the stream to new values using a state value and a closure. Read more
Source§

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

Fuses the stream so that it stops yielding items after the first None. Read more
Source§

fn cycle(self) -> Cycle<Self>
where Self: Sized + Clone,

Repeats the stream from beginning to end, forever. Read more
Source§

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

Enumerates items, mapping them to (index, item). Read more
Source§

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

Calls a closure on each item and passes it on. Read more
Source§

fn nth(&mut self, n: usize) -> NthFuture<'_, Self>
where Self: Unpin,

Gets the nth item of the stream. Read more
Source§

fn last(self) -> LastFuture<Self>
where Self: Sized,

Returns the last item in the stream. Read more
Source§

fn find<P>(&mut self, predicate: P) -> FindFuture<'_, Self, P>
where Self: Unpin, P: FnMut(&Self::Item) -> bool,

Finds the first item of the stream for which predicate returns true. Read more
Source§

fn find_map<F, B>(&mut self, f: F) -> FindMapFuture<'_, Self, F>
where Self: Unpin, F: FnMut(Self::Item) -> Option<B>,

Applies a closure to items in the stream and returns the first Some result. Read more
Source§

fn position<P>(&mut self, predicate: P) -> PositionFuture<'_, Self, P>
where Self: Unpin, P: FnMut(Self::Item) -> bool,

Finds the index of the first item of the stream for which predicate returns true. Read more
Source§

fn all<P>(&mut self, predicate: P) -> AllFuture<'_, Self, P>
where Self: Unpin, P: FnMut(Self::Item) -> bool,

Tests if predicate returns true for all items in the stream. Read more
Source§

fn any<P>(&mut self, predicate: P) -> AnyFuture<'_, Self, P>
where Self: Unpin, P: FnMut(Self::Item) -> bool,

Tests if predicate returns true for any item in the stream. Read more
Source§

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

Calls a closure on each item of the stream. Read more
Source§

fn try_for_each<F, E>(&mut self, f: F) -> TryForEachFuture<'_, Self, F>
where Self: Unpin, F: FnMut(Self::Item) -> Result<(), E>,

Calls a fallible closure on each item of the stream, stopping on first error. Read more
Source§

fn zip<U>(self, other: U) -> Zip<Self, U>
where Self: Sized, U: Stream,

Zips up two streams into a single stream of pairs. Read more
Source§

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

Collects a stream of pairs into a pair of collections. Read more
Source§

fn or<S>(self, other: S) -> Or<Self, S>
where Self: Sized, S: Stream<Item = Self::Item>,

Merges with other stream, preferring items from self whenever both streams are ready. Read more
Source§

fn race<S>(self, other: S) -> Race<Self, S>
where Self: Sized, S: Stream<Item = Self::Item>,

Merges with other stream, with no preference for either stream when both are ready. Read more
Source§

fn drain(&mut self) -> Drain<'_, Self>

Yields all immediately available values from a stream. Read more
Source§

fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
where Self: Sized + Send + 'a,

Boxes the stream and changes its type to dyn Stream + Send + 'a. Read more
Source§

fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
where Self: Sized + 'a,

Boxes the stream and changes its type to dyn Stream + 'a. Read more
Source§

impl<T> StreamExt for T
where T: Stream + ?Sized,

Source§

fn next(&mut self) -> Next<'_, Self>
where Self: Unpin,

Creates a future that resolves to the next item in the stream. Read more
Source§

fn into_future(self) -> StreamFuture<Self>
where Self: Sized + Unpin,

Converts this stream into a future of (next_item, tail_of_stream). If the stream terminates, then the next item is None. Read more
Source§

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

Maps this stream’s items to a different type, returning a new stream of the resulting type. Read more
Source§

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

Creates a stream which gives the current iteration count as well as the next value. Read more
Source§

fn filter<Fut, F>(self, f: F) -> Filter<Self, Fut, F>
where F: FnMut(&Self::Item) -> Fut, Fut: Future<Output = bool>, Self: Sized,

Filters the values produced by this stream according to the provided asynchronous predicate. Read more
Source§

fn filter_map<Fut, T, F>(self, f: F) -> FilterMap<Self, Fut, F>
where F: FnMut(Self::Item) -> Fut, Fut: Future<Output = Option<T>>, Self: Sized,

Filters the values produced by this stream while simultaneously mapping them to a different type according to the provided asynchronous closure. Read more
Source§

fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
where F: FnMut(Self::Item) -> Fut, Fut: Future, Self: Sized,

Computes from this stream’s items new items of a different type using an asynchronous closure. Read more
Source§

fn collect<C>(self) -> Collect<Self, C>
where C: Default + Extend<Self::Item>, Self: Sized,

Transforms a stream into a collection, returning a future representing the result of that computation. Read more
Source§

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

Converts a stream of pairs into a future, which resolves to pair of containers. Read more
Source§

fn concat(self) -> Concat<Self>
where Self: Sized, Self::Item: Extend<<Self::Item as IntoIterator>::Item> + IntoIterator + Default,

Concatenate all items of a stream into a single extendable destination, returning a future representing the end result. Read more
Source§

fn count(self) -> Count<Self>
where Self: Sized,

Drives the stream to completion, counting the number of items. Read more
Source§

fn cycle(self) -> Cycle<Self>
where Self: Sized + Clone,

Repeats a stream endlessly. Read more
Source§

fn fold<T, Fut, F>(self, init: T, f: F) -> Fold<Self, Fut, T, F>
where F: FnMut(T, Self::Item) -> Fut, Fut: Future<Output = T>, Self: Sized,

Execute an accumulating asynchronous computation over a stream, collecting all the values into one final result. Read more
Source§

fn any<Fut, F>(self, f: F) -> Any<Self, Fut, F>
where F: FnMut(Self::Item) -> Fut, Fut: Future<Output = bool>, Self: Sized,

Execute predicate over asynchronous stream, and return true if any element in stream satisfied a predicate. Read more
Source§

fn all<Fut, F>(self, f: F) -> All<Self, Fut, F>
where F: FnMut(Self::Item) -> Fut, Fut: Future<Output = bool>, Self: Sized,

Execute predicate over asynchronous stream, and return true if all element in stream satisfied a predicate. Read more
Source§

fn flatten(self) -> Flatten<Self>
where Self::Item: Stream, Self: Sized,

Flattens a stream of streams into just one continuous stream. Read more
Source§

fn flatten_unordered( self, limit: impl Into<Option<usize>>, ) -> FlattenUnorderedWithFlowController<Self, ()>
where Self::Item: Stream + Unpin, Self: Sized,

Flattens a stream of streams into just one continuous stream. Polls inner streams produced by the base stream concurrently. Read more
Source§

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

Maps a stream like StreamExt::map but flattens nested Streams. Read more
Source§

fn flat_map_unordered<U, F>( self, limit: impl Into<Option<usize>>, f: F, ) -> FlatMapUnordered<Self, U, F>
where U: Stream + Unpin, F: FnMut(Self::Item) -> U, Self: Sized,

Maps a stream like StreamExt::map but flattens nested Streams and polls them concurrently, yielding items in any order, as they made available. Read more
Source§

fn scan<S, B, Fut, F>(self, initial_state: S, f: F) -> Scan<Self, S, Fut, F>
where F: FnMut(&mut S, Self::Item) -> Fut, Fut: Future<Output = Option<B>>, Self: Sized,

Combinator similar to StreamExt::fold that holds internal state and produces a new stream. Read more
Source§

fn skip_while<Fut, F>(self, f: F) -> SkipWhile<Self, Fut, F>
where F: FnMut(&Self::Item) -> Fut, Fut: Future<Output = bool>, Self: Sized,

Skip elements on this stream while the provided asynchronous predicate resolves to true. Read more
Source§

fn take_while<Fut, F>(self, f: F) -> TakeWhile<Self, Fut, F>
where F: FnMut(&Self::Item) -> Fut, Fut: Future<Output = bool>, Self: Sized,

Take elements from this stream while the provided asynchronous predicate resolves to true. Read more
Source§

fn take_until<Fut>(self, fut: Fut) -> TakeUntil<Self, Fut>
where Fut: Future, Self: Sized,

Take elements from this stream until the provided future resolves. Read more
Source§

fn for_each<Fut, F>(self, f: F) -> ForEach<Self, Fut, F>
where F: FnMut(Self::Item) -> Fut, Fut: Future<Output = ()>, Self: Sized,

Runs this stream to completion, executing the provided asynchronous closure for each element on the stream. Read more
Source§

fn for_each_concurrent<Fut, F>( self, limit: impl Into<Option<usize>>, f: F, ) -> ForEachConcurrent<Self, Fut, F>
where F: FnMut(Self::Item) -> Fut, Fut: Future<Output = ()>, Self: Sized,

Runs this stream to completion, executing the provided asynchronous closure for each element on the stream concurrently as elements become available. Read more
Source§

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

Creates a new stream of at most n items of the underlying stream. Read more
Source§

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

Creates a new stream which skips n items of the underlying stream. Read more
Source§

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

Fuse a stream such that poll_next will never again be called once it has finished. This method can be used to turn any Stream into a FusedStream. Read more
Source§

fn by_ref(&mut self) -> &mut Self

Borrows a stream, rather than consuming it. Read more
Source§

fn catch_unwind(self) -> CatchUnwind<Self>
where Self: Sized + UnwindSafe,

Catches unwinding panics while polling the stream. Read more
Source§

fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
where Self: Sized + Send + 'a,

Wrap the stream in a Box, pinning it. Read more
Source§

fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
where Self: Sized + 'a,

Wrap the stream in a Box, pinning it. Read more
Source§

fn buffered(self, n: usize) -> Buffered<Self>
where Self::Item: Future, Self: Sized,

An adaptor for creating a buffered list of pending futures. Read more
Source§

fn buffer_unordered(self, n: usize) -> BufferUnordered<Self>
where Self::Item: Future, Self: Sized,

An adaptor for creating a buffered list of pending futures (unordered). Read more
Source§

fn zip<St>(self, other: St) -> Zip<Self, St>
where St: Stream, Self: Sized,

An adapter for zipping two streams together. Read more
Source§

fn chain<St>(self, other: St) -> Chain<Self, St>
where St: Stream<Item = Self::Item>, Self: Sized,

Adapter for chaining two streams. Read more
Source§

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

Creates a new stream which exposes a peek method. Read more
Source§

fn chunks(self, capacity: usize) -> Chunks<Self>
where Self: Sized,

An adaptor for chunking up items of the stream inside a vector. Read more
Source§

fn ready_chunks(self, capacity: usize) -> ReadyChunks<Self>
where Self: Sized,

An adaptor for chunking up ready items of the stream inside a vector. Read more
Source§

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

Do something with each item of this stream, afterwards passing it on. Read more
Source§

fn left_stream<B>(self) -> Either<Self, B>
where B: Stream<Item = Self::Item>, Self: Sized,

Wrap this stream in an Either stream, making it the left-hand variant of that Either. Read more
Source§

fn right_stream<B>(self) -> Either<B, Self>
where B: Stream<Item = Self::Item>, Self: Sized,

Wrap this stream in an Either stream, making it the right-hand variant of that Either. Read more
Source§

fn poll_next_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>
where Self: Unpin,

A convenience method for calling Stream::poll_next on Unpin stream types.
Source§

fn select_next_some(&mut self) -> SelectNextSome<'_, Self>
where Self: Unpin + FusedStream,

Returns a Future that resolves when the next item in this stream is ready. Read more
Source§

impl<T> SubscriberInitExt for T
where T: Into<Dispatch>,

Source§

fn set_default(self) -> DefaultGuard

Sets self as the default subscriber in the current scope, returning a guard that will unset it when dropped. Read more
Source§

fn try_init(self) -> Result<(), TryInitError>

Attempts to set self as the global default subscriber in the current scope, returning an error if one is already set. Read more
Source§

fn init(self)

Attempts to set self as the global default subscriber in the current scope, panicking if this fails. Read more
Source§

impl<In, Out, Func> SystemParamFunction<(HasSystemInput, fn(In) -> Out)> for Func
where Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = ()

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <() as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0> SystemParamFunction<(HasSystemInput, fn(In, F0) -> Out)> for Func
where F0: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0,)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0,) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1> SystemParamFunction<(HasSystemInput, fn(In, F0, F1) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5, F6) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5, F6, F7) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5, F6, F7, F8) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>, <F11 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>, <F11 as SystemParam>::Item<'_, '_>, <F12 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, F13: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>, <F11 as SystemParam>::Item<'_, '_>, <F12 as SystemParam>::Item<'_, '_>, <F13 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, F13: SystemParam, F14: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>, <F11 as SystemParam>::Item<'_, '_>, <F12 as SystemParam>::Item<'_, '_>, <F13 as SystemParam>::Item<'_, '_>, <F14 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<In, Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15> SystemParamFunction<(HasSystemInput, fn(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) -> Out)> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, F13: SystemParam, F14: SystemParam, F15: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(In, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) -> Out + for<'a> FnMut(<In as SystemInput>::Param<'_>, <F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>, <F11 as SystemParam>::Item<'_, '_>, <F12 as SystemParam>::Item<'_, '_>, <F13 as SystemParam>::Item<'_, '_>, <F14 as SystemParam>::Item<'_, '_>, <F15 as SystemParam>::Item<'_, '_>), In: SystemInput + 'static, Out: 'static,

Source§

type In = In

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, input: <In as SystemInput>::Inner<'_>, param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func> SystemParamFunction<fn() -> Out> for Func
where Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut() -> Out + for<'a> FnMut(), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = ()

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <() as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0> SystemParamFunction<fn(F0) -> Out> for Func
where F0: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0,)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0,) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1> SystemParamFunction<fn(F0, F1) -> Out> for Func
where F0: SystemParam, F1: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2> SystemParamFunction<fn(F0, F1, F2) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3> SystemParamFunction<fn(F0, F1, F2, F3) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4> SystemParamFunction<fn(F0, F1, F2, F3, F4) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5, F6) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5, F6) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5, F6, F7) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>, <F11 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>, <F11 as SystemParam>::Item<'_, '_>, <F12 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, F13: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>, <F11 as SystemParam>::Item<'_, '_>, <F12 as SystemParam>::Item<'_, '_>, <F13 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, F13: SystemParam, F14: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>, <F11 as SystemParam>::Item<'_, '_>, <F12 as SystemParam>::Item<'_, '_>, <F13 as SystemParam>::Item<'_, '_>, <F14 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<Out, Func, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15> SystemParamFunction<fn(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) -> Out> for Func
where F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, F13: SystemParam, F14: SystemParam, F15: SystemParam, Func: Send + Sync + 'static, &'a mut Func: for<'a> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) -> Out + for<'a> FnMut(<F0 as SystemParam>::Item<'_, '_>, <F1 as SystemParam>::Item<'_, '_>, <F2 as SystemParam>::Item<'_, '_>, <F3 as SystemParam>::Item<'_, '_>, <F4 as SystemParam>::Item<'_, '_>, <F5 as SystemParam>::Item<'_, '_>, <F6 as SystemParam>::Item<'_, '_>, <F7 as SystemParam>::Item<'_, '_>, <F8 as SystemParam>::Item<'_, '_>, <F9 as SystemParam>::Item<'_, '_>, <F10 as SystemParam>::Item<'_, '_>, <F11 as SystemParam>::Item<'_, '_>, <F12 as SystemParam>::Item<'_, '_>, <F13 as SystemParam>::Item<'_, '_>, <F14 as SystemParam>::Item<'_, '_>, <F15 as SystemParam>::Item<'_, '_>), Out: 'static,

Source§

type In = ()

The input type of this system. See System::In.
Source§

type Out = Out

The return type of this system. See System::Out.
Source§

type Param = (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15)

The SystemParam/s used by this system to access the World.
Source§

fn run( &mut self, _input: (), param_value: <(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) as SystemParam>::Item<'_, '_>, ) -> Out

Executes this system once. See System::run or System::run_unsafe.
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToHex for T
where T: AsRef<[u8]>,

Source§

fn encode_hex<U>(&self) -> U
where U: FromIterator<char>,

Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca)
Source§

fn encode_hex_upper<U>(&self) -> U
where U: FromIterator<char>,

Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA)
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<F, T, E> TryFuture for F
where F: Future<Output = Result<T, E>> + ?Sized,

Source§

type Ok = T

The type of successful values yielded by this future
Source§

type Error = E

The type of failures yielded by this future
Source§

fn try_poll( self: Pin<&mut F>, cx: &mut Context<'_>, ) -> Poll<<F as Future>::Output>

Poll this TryFuture as if it were a Future. Read more
Source§

impl<Fut> TryFutureExt for Fut
where Fut: TryFuture + ?Sized,

Source§

fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
where F: FnOnce(Self::Ok) -> T, Self: Sized,

Maps this future’s success value to a different value. Read more
Source§

fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>
where F: FnOnce(Self::Ok) -> T, E: FnOnce(Self::Error) -> T, Self: Sized,

Maps this future’s success value to a different value, and permits for error handling resulting in the same type. Read more
Source§

fn map_err<E, F>(self, f: F) -> MapErr<Self, F>
where F: FnOnce(Self::Error) -> E, Self: Sized,

Maps this future’s error value to a different value. Read more
Source§

fn err_into<E>(self) -> ErrInto<Self, E>
where Self: Sized, Self::Error: Into<E>,

Maps this future’s Error to a new error type using the Into trait. Read more
Source§

fn ok_into<U>(self) -> OkInto<Self, U>
where Self: Sized, Self::Ok: Into<U>,

Maps this future’s Ok to a new type using the Into trait.
Source§

fn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F>
where F: FnOnce(Self::Ok) -> Fut, Fut: TryFuture<Error = Self::Error>, Self: Sized,

Executes another future after this one resolves successfully. The success value is passed to a closure to create this subsequent future. Read more
Source§

fn or_else<Fut, F>(self, f: F) -> OrElse<Self, Fut, F>
where F: FnOnce(Self::Error) -> Fut, Fut: TryFuture<Ok = Self::Ok>, Self: Sized,

Executes another future if this one resolves to an error. The error value is passed to a closure to create this subsequent future. Read more
Source§

fn inspect_ok<F>(self, f: F) -> InspectOk<Self, F>
where F: FnOnce(&Self::Ok), Self: Sized,

Do something with the success value of a future before passing it on. Read more
Source§

fn inspect_err<F>(self, f: F) -> InspectErr<Self, F>
where F: FnOnce(&Self::Error), Self: Sized,

Do something with the error value of a future before passing it on. Read more
Source§

fn try_flatten(self) -> TryFlatten<Self, Self::Ok>
where Self::Ok: TryFuture<Error = Self::Error>, Self: Sized,

Flatten the execution of this future when the successful result of this future is another future. Read more
Source§

fn try_flatten_stream(self) -> TryFlattenStream<Self>
where Self::Ok: TryStream<Error = Self::Error>, Self: Sized,

Flatten the execution of this future when the successful result of this future is a stream. Read more
Source§

fn unwrap_or_else<F>(self, f: F) -> UnwrapOrElse<Self, F>
where Self: Sized, F: FnOnce(Self::Error) -> Self::Ok,

Unwraps this future’s output, producing a future with this future’s Ok type as its Output type. Read more
Source§

fn into_future(self) -> IntoFuture<Self>
where Self: Sized,

Wraps a TryFuture into a type that implements Future. Read more
Source§

fn try_poll_unpin( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Self::Ok, Self::Error>>
where Self: Unpin,

A convenience method for calling TryFuture::try_poll on Unpin future types.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T, E> TryStream for S
where S: Stream<Item = Result<T, E>> + ?Sized,

Source§

type Ok = T

The type of successful values yielded by this future
Source§

type Error = E

The type of failures yielded by this future
Source§

fn try_poll_next( self: Pin<&mut S>, cx: &mut Context<'_>, ) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>

Poll this TryStream as if it were a Stream. Read more
Source§

impl<S> TryStreamExt for S
where S: TryStream + ?Sized,

Source§

fn err_into<E>(self) -> ErrInto<Self, E>
where Self: Sized, Self::Error: Into<E>,

Wraps the current stream in a new stream which converts the error type into the one provided. Read more
Source§

fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
where Self: Sized, F: FnMut(Self::Ok) -> T,

Wraps the current stream in a new stream which maps the success value using the provided closure. Read more
Source§

fn map_err<E, F>(self, f: F) -> MapErr<Self, F>
where Self: Sized, F: FnMut(Self::Error) -> E,

Wraps the current stream in a new stream which maps the error value using the provided closure. Read more
Source§

fn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F>
where F: FnMut(Self::Ok) -> Fut, Fut: TryFuture<Error = Self::Error>, Self: Sized,

Chain on a computation for when a value is ready, passing the successful results to the provided closure f. Read more
Source§

fn or_else<Fut, F>(self, f: F) -> OrElse<Self, Fut, F>
where F: FnMut(Self::Error) -> Fut, Fut: TryFuture<Ok = Self::Ok>, Self: Sized,

Chain on a computation for when an error happens, passing the erroneous result to the provided closure f. Read more
Source§

fn inspect_ok<F>(self, f: F) -> InspectOk<Self, F>
where F: FnMut(&Self::Ok), Self: Sized,

Do something with the success value of this stream, afterwards passing it on. Read more
Source§

fn inspect_err<F>(self, f: F) -> InspectErr<Self, F>
where F: FnMut(&Self::Error), Self: Sized,

Do something with the error value of this stream, afterwards passing it on. Read more
Source§

fn into_stream(self) -> IntoStream<Self>
where Self: Sized,

Wraps a TryStream into a type that implements Stream Read more
Source§

fn try_next(&mut self) -> TryNext<'_, Self>
where Self: Unpin,

Creates a future that attempts to resolve the next item in the stream. If an error is encountered before the next item, the error is returned instead. Read more
Source§

fn try_for_each<Fut, F>(self, f: F) -> TryForEach<Self, Fut, F>
where F: FnMut(Self::Ok) -> Fut, Fut: TryFuture<Ok = (), Error = Self::Error>, Self: Sized,

Attempts to run this stream to completion, executing the provided asynchronous closure for each element on the stream. Read more
Source§

fn try_skip_while<Fut, F>(self, f: F) -> TrySkipWhile<Self, Fut, F>
where F: FnMut(&Self::Ok) -> Fut, Fut: TryFuture<Ok = bool, Error = Self::Error>, Self: Sized,

Skip elements on this stream while the provided asynchronous predicate resolves to true. Read more
Source§

fn try_take_while<Fut, F>(self, f: F) -> TryTakeWhile<Self, Fut, F>
where F: FnMut(&Self::Ok) -> Fut, Fut: TryFuture<Ok = bool, Error = Self::Error>, Self: Sized,

Take elements on this stream while the provided asynchronous predicate resolves to true. Read more
Source§

fn try_for_each_concurrent<Fut, F>( self, limit: impl Into<Option<usize>>, f: F, ) -> TryForEachConcurrent<Self, Fut, F>
where F: FnMut(Self::Ok) -> Fut, Fut: Future<Output = Result<(), Self::Error>>, Self: Sized,

Attempts to run this stream to completion, executing the provided asynchronous closure for each element on the stream concurrently as elements become available, exiting as soon as an error occurs. Read more
Source§

fn try_collect<C>(self) -> TryCollect<Self, C>
where C: Default + Extend<Self::Ok>, Self: Sized,

Attempt to transform a stream into a collection, returning a future representing the result of that computation. Read more
Source§

fn try_chunks(self, capacity: usize) -> TryChunks<Self>
where Self: Sized,

An adaptor for chunking up successful items of the stream inside a vector. Read more
Source§

fn try_ready_chunks(self, capacity: usize) -> TryReadyChunks<Self>
where Self: Sized,

An adaptor for chunking up successful, ready items of the stream inside a vector. Read more
Source§

fn try_filter<Fut, F>(self, f: F) -> TryFilter<Self, Fut, F>
where Fut: Future<Output = bool>, F: FnMut(&Self::Ok) -> Fut, Self: Sized,

Attempt to filter the values produced by this stream according to the provided asynchronous closure. Read more
Source§

fn try_filter_map<Fut, F, T>(self, f: F) -> TryFilterMap<Self, Fut, F>
where Fut: TryFuture<Ok = Option<T>, Error = Self::Error>, F: FnMut(Self::Ok) -> Fut, Self: Sized,

Attempt to filter the values produced by this stream while simultaneously mapping them to a different type according to the provided asynchronous closure. Read more
Source§

fn try_flatten_unordered( self, limit: impl Into<Option<usize>>, ) -> TryFlattenUnordered<Self>
where Self::Ok: TryStream + Unpin, <Self::Ok as TryStream>::Error: From<Self::Error>, Self: Sized,

Flattens a stream of streams into just one continuous stream. Produced streams will be polled concurrently and any errors will be passed through without looking at them. If the underlying base stream returns an error, it will be immediately propagated. Read more
Source§

fn try_flatten(self) -> TryFlatten<Self>
where Self::Ok: TryStream, <Self::Ok as TryStream>::Error: From<Self::Error>, Self: Sized,

Flattens a stream of streams into just one continuous stream. Read more
Source§

fn try_fold<T, Fut, F>(self, init: T, f: F) -> TryFold<Self, Fut, T, F>
where F: FnMut(T, Self::Ok) -> Fut, Fut: TryFuture<Ok = T, Error = Self::Error>, Self: Sized,

Attempt to execute an accumulating asynchronous computation over a stream, collecting all the values into one final result. Read more
Source§

fn try_concat(self) -> TryConcat<Self>
where Self: Sized, Self::Ok: Extend<<Self::Ok as IntoIterator>::Item> + IntoIterator + Default,

Attempt to concatenate all items of a stream into a single extendable destination, returning a future representing the end result. Read more
Source§

fn try_buffer_unordered(self, n: usize) -> TryBufferUnordered<Self>
where Self::Ok: TryFuture<Error = Self::Error>, Self: Sized,

Attempt to execute several futures from a stream concurrently (unordered). Read more
Source§

fn try_buffered(self, n: usize) -> TryBuffered<Self>
where Self::Ok: TryFuture<Error = Self::Error>, Self: Sized,

Attempt to execute several futures from a stream concurrently. Read more
Source§

fn try_poll_next_unpin( &mut self, cx: &mut Context<'_>, ) -> Poll<Option<Result<Self::Ok, Self::Error>>>
where Self: Unpin,

A convenience method for calling TryStream::try_poll_next on Unpin stream types.
Source§

fn try_all<Fut, F>(self, f: F) -> TryAll<Self, Fut, F>
where Self: Sized, F: FnMut(Self::Ok) -> Fut, Fut: Future<Output = bool>,

Attempt to execute a predicate over an asynchronous stream and evaluate if all items satisfy the predicate. Exits early if an Err is encountered or if an Ok item is found that does not satisfy the predicate. Read more
Source§

fn try_any<Fut, F>(self, f: F) -> TryAny<Self, Fut, F>
where Self: Sized, F: FnMut(Self::Ok) -> Fut, Fut: Future<Output = bool>,

Attempt to execute a predicate over an asynchronous stream and evaluate if any items satisfy the predicate. Exits early if an Err is encountered or if an Ok item is found that satisfies the predicate. Read more
Source§

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

Source§

impl<ReturnType, Function> TypedFunction<fn() -> [ReturnType]> for Function
where ReturnType: TypePath + GetOwnership, Function: FnMut() -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, ReturnType, Function> TypedFunction<fn(Arg0) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, ReturnType, Function> TypedFunction<fn(Arg0, Arg1) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, Arg5: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, Arg5: TypePath + GetOwnership, Arg6: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, Arg5: TypePath + GetOwnership, Arg6: TypePath + GetOwnership, Arg7: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, Arg5: TypePath + GetOwnership, Arg6: TypePath + GetOwnership, Arg7: TypePath + GetOwnership, Arg8: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, Arg5: TypePath + GetOwnership, Arg6: TypePath + GetOwnership, Arg7: TypePath + GetOwnership, Arg8: TypePath + GetOwnership, Arg9: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, Arg5: TypePath + GetOwnership, Arg6: TypePath + GetOwnership, Arg7: TypePath + GetOwnership, Arg8: TypePath + GetOwnership, Arg9: TypePath + GetOwnership, Arg10: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, Arg5: TypePath + GetOwnership, Arg6: TypePath + GetOwnership, Arg7: TypePath + GetOwnership, Arg8: TypePath + GetOwnership, Arg9: TypePath + GetOwnership, Arg10: TypePath + GetOwnership, Arg11: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, Arg5: TypePath + GetOwnership, Arg6: TypePath + GetOwnership, Arg7: TypePath + GetOwnership, Arg8: TypePath + GetOwnership, Arg9: TypePath + GetOwnership, Arg10: TypePath + GetOwnership, Arg11: TypePath + GetOwnership, Arg12: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, Arg5: TypePath + GetOwnership, Arg6: TypePath + GetOwnership, Arg7: TypePath + GetOwnership, Arg8: TypePath + GetOwnership, Arg9: TypePath + GetOwnership, Arg10: TypePath + GetOwnership, Arg11: TypePath + GetOwnership, Arg12: TypePath + GetOwnership, Arg13: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, ReturnType, Function> TypedFunction<fn(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> [ReturnType]> for Function
where Arg0: TypePath + GetOwnership, Arg1: TypePath + GetOwnership, Arg2: TypePath + GetOwnership, Arg3: TypePath + GetOwnership, Arg4: TypePath + GetOwnership, Arg5: TypePath + GetOwnership, Arg6: TypePath + GetOwnership, Arg7: TypePath + GetOwnership, Arg8: TypePath + GetOwnership, Arg9: TypePath + GetOwnership, Arg10: TypePath + GetOwnership, Arg11: TypePath + GetOwnership, Arg12: TypePath + GetOwnership, Arg13: TypePath + GetOwnership, Arg14: TypePath + GetOwnership, ReturnType: TypePath + GetOwnership, Function: FnMut(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14) -> ReturnType,

Source§

fn function_info() -> FunctionInfo

Get the FunctionInfo for this type.
Source§

fn get_function_info(&self) -> FunctionInfo

Get the FunctionInfo for this type.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<F> Visit for F
where F: FnMut(&Field, &dyn Debug),

Source§

fn record_debug(&mut self, field: &Field, value: &dyn Debug)

Visit a value implementing fmt::Debug.
Source§

fn record_f64(&mut self, field: &Field, value: f64)

Visit a double-precision floating point value.
Source§

fn record_i64(&mut self, field: &Field, value: i64)

Visit a signed 64-bit integer value.
Source§

fn record_u64(&mut self, field: &Field, value: u64)

Visit an unsigned 64-bit integer value.
Source§

fn record_i128(&mut self, field: &Field, value: i128)

Visit a signed 128-bit integer value.
Source§

fn record_u128(&mut self, field: &Field, value: u128)

Visit an unsigned 128-bit integer value.
Source§

fn record_bool(&mut self, field: &Field, value: bool)

Visit a boolean value.
Source§

fn record_str(&mut self, field: &Field, value: &str)

Visit a string value.
Source§

fn record_bytes(&mut self, field: &Field, value: &[u8])

Visit a byte slice.
Source§

fn record_error(&mut self, field: &Field, value: &(dyn Error + 'static))

Records a type implementing Error. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<W> WriteBytes for W
where W: Write,

Source§

fn write_u8(&mut self, endian: Endian, n: u8) -> Result<(), Error>

Write a u8.
Source§

fn write_u16(&mut self, endian: Endian, n: u16) -> Result<(), Error>

Write a u16.
Source§

fn write_u32(&mut self, endian: Endian, n: u32) -> Result<(), Error>

Write a u32.
Source§

fn write_u64(&mut self, endian: Endian, n: u64) -> Result<(), Error>

Write a u64.
Source§

fn write_u128(&mut self, endian: Endian, n: u128) -> Result<(), Error>

Write a u128.
Source§

fn write_i8(&mut self, endian: Endian, n: i8) -> Result<(), Error>

Write a i8.
Source§

fn write_i16(&mut self, endian: Endian, n: i16) -> Result<(), Error>

Write a i16.
Source§

fn write_i32(&mut self, endian: Endian, n: i32) -> Result<(), Error>

Write a i32.
Source§

fn write_i64(&mut self, endian: Endian, n: i64) -> Result<(), Error>

Write a i64.
Source§

fn write_i128(&mut self, endian: Endian, n: i128) -> Result<(), Error>

Write a i128.
Source§

fn write_f32(&mut self, endian: Endian, n: f32) -> Result<(), Error>

Write a f32.
Source§

fn write_f64(&mut self, endian: Endian, n: f64) -> Result<(), Error>

Write a f64.
Source§

impl<W> WriteBytesExt for W
where W: Write + ?Sized,

Source§

fn write_u8(&mut self, n: u8) -> Result<(), Error>

Writes an unsigned 8 bit integer to the underlying writer. Read more
Source§

fn write_i8(&mut self, n: i8) -> Result<(), Error>

Writes a signed 8 bit integer to the underlying writer. Read more
Source§

fn write_u16<T>(&mut self, n: u16) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 16 bit integer to the underlying writer. Read more
Source§

fn write_i16<T>(&mut self, n: i16) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 16 bit integer to the underlying writer. Read more
Source§

fn write_u24<T>(&mut self, n: u32) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 24 bit integer to the underlying writer. Read more
Source§

fn write_i24<T>(&mut self, n: i32) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 24 bit integer to the underlying writer. Read more
Source§

fn write_u32<T>(&mut self, n: u32) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 32 bit integer to the underlying writer. Read more
Source§

fn write_i32<T>(&mut self, n: i32) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 32 bit integer to the underlying writer. Read more
Source§

fn write_u48<T>(&mut self, n: u64) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 48 bit integer to the underlying writer. Read more
Source§

fn write_i48<T>(&mut self, n: i64) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 48 bit integer to the underlying writer. Read more
Source§

fn write_u64<T>(&mut self, n: u64) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 64 bit integer to the underlying writer. Read more
Source§

fn write_i64<T>(&mut self, n: i64) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 64 bit integer to the underlying writer. Read more
Source§

fn write_u128<T>(&mut self, n: u128) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 128 bit integer to the underlying writer.
Source§

fn write_i128<T>(&mut self, n: i128) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 128 bit integer to the underlying writer.
Source§

fn write_uint<T>(&mut self, n: u64, nbytes: usize) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned n-bytes integer to the underlying writer. Read more
Source§

fn write_int<T>(&mut self, n: i64, nbytes: usize) -> Result<(), Error>
where T: ByteOrder,

Writes a signed n-bytes integer to the underlying writer. Read more
Source§

fn write_uint128<T>(&mut self, n: u128, nbytes: usize) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned n-bytes integer to the underlying writer. Read more
Source§

fn write_int128<T>(&mut self, n: i128, nbytes: usize) -> Result<(), Error>
where T: ByteOrder,

Writes a signed n-bytes integer to the underlying writer. Read more
Source§

fn write_f32<T>(&mut self, n: f32) -> Result<(), Error>
where T: ByteOrder,

Writes a IEEE754 single-precision (4 bytes) floating point number to the underlying writer. Read more
Source§

fn write_f64<T>(&mut self, n: f64) -> Result<(), Error>
where T: ByteOrder,

Writes a IEEE754 double-precision (8 bytes) floating point number to the underlying writer. Read more
Source§

impl<W> WriteBytesExt for W
where W: Write + ?Sized,

Source§

fn write_u8(&mut self, n: u8) -> Result<(), Error>

Writes an unsigned 8 bit integer to the underlying writer. Read more
Source§

fn write_i8(&mut self, n: i8) -> Result<(), Error>

Writes a signed 8 bit integer to the underlying writer. Read more
Source§

fn write_u16<T>(&mut self, n: u16) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 16 bit integer to the underlying writer. Read more
Source§

fn write_i16<T>(&mut self, n: i16) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 16 bit integer to the underlying writer. Read more
Source§

fn write_u24<T>(&mut self, n: u32) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 24 bit integer to the underlying writer. Read more
Source§

fn write_i24<T>(&mut self, n: i32) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 24 bit integer to the underlying writer. Read more
Source§

fn write_u32<T>(&mut self, n: u32) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 32 bit integer to the underlying writer. Read more
Source§

fn write_i32<T>(&mut self, n: i32) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 32 bit integer to the underlying writer. Read more
Source§

fn write_u48<T>(&mut self, n: u64) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 48 bit integer to the underlying writer. Read more
Source§

fn write_i48<T>(&mut self, n: i64) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 48 bit integer to the underlying writer. Read more
Source§

fn write_u64<T>(&mut self, n: u64) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 64 bit integer to the underlying writer. Read more
Source§

fn write_i64<T>(&mut self, n: i64) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 64 bit integer to the underlying writer. Read more
Source§

fn write_u128<T>(&mut self, n: u128) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned 128 bit integer to the underlying writer.
Source§

fn write_i128<T>(&mut self, n: i128) -> Result<(), Error>
where T: ByteOrder,

Writes a signed 128 bit integer to the underlying writer.
Source§

fn write_uint<T>(&mut self, n: u64, nbytes: usize) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned n-bytes integer to the underlying writer. Read more
Source§

fn write_int<T>(&mut self, n: i64, nbytes: usize) -> Result<(), Error>
where T: ByteOrder,

Writes a signed n-bytes integer to the underlying writer. Read more
Source§

fn write_uint128<T>(&mut self, n: u128, nbytes: usize) -> Result<(), Error>
where T: ByteOrder,

Writes an unsigned n-bytes integer to the underlying writer. Read more
Source§

fn write_int128<T>(&mut self, n: i128, nbytes: usize) -> Result<(), Error>
where T: ByteOrder,

Writes a signed n-bytes integer to the underlying writer. Read more
Source§

fn write_f32<T>(&mut self, n: f32) -> Result<(), Error>
where T: ByteOrder,

Writes a IEEE754 single-precision (4 bytes) floating point number to the underlying writer. Read more
Source§

fn write_f64<T>(&mut self, n: f64) -> Result<(), Error>
where T: ByteOrder,

Writes a IEEE754 double-precision (8 bytes) floating point number to the underlying writer. Read more
Source§

impl<W> WriteEndian<[f32]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[f32]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[f32]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[f64]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[f64]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[f64]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[i128]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[i128]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[i128]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[i16]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[i16]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[i16]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[i32]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[i32]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[i32]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[i64]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[i64]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[i64]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[i8]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[i8]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[i8]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[u128]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[u128]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[u128]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[u16]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[u16]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[u16]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[u32]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[u32]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[u32]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[u64]> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &[u64]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &[u64]) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<[u8]> for W
where W: Write,

Source§

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

Write the byte value of the specified reference, converting it to little endianness
Source§

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

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<f32> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &f32) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &f32) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<f64> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &f64) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &f64) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<i128> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &i128) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &i128) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<i16> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &i16) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &i16) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<i32> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &i32) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &i32) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<i64> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &i64) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &i64) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<i8> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &i8) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &i8) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<u128> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &u128) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &u128) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<u16> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &u16) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &u16) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<u32> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &u32) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &u32) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<u64> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &u64) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &u64) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<W> WriteEndian<u8> for W
where W: Write,

Source§

fn write_as_little_endian(&mut self, value: &u8) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
Source§

fn write_as_big_endian(&mut self, value: &u8) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
Source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it
Source§

impl<S> SubscriberExt for S
where S: Subscriber,

Source§

fn with<L>(self, layer: L) -> Layered<L, Self>
where L: Layer<Self>, Self: Sized,

Wraps self with the provided layer.
Source§

impl<T> ConditionalSend for T
where T: Send,

Source§

impl<T> ConditionalSendFuture for T

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> GpuArrayBufferable for T

Source§

impl<I, O, E, P> ModalParser<I, O, E> for P
where P: Parser<I, O, ErrMode<E>>,

Source§

impl<T> NumBytes for T
where T: Debug + AsRef<[u8]> + AsMut<[u8]> + PartialEq + Eq + PartialOrd + Ord + Hash + Borrow<[u8]> + BorrowMut<[u8]> + ?Sized,

Source§

impl<Marker, T> Plugins<Marker> for T
where T: Plugins<Marker>,

Source§

impl<T> Settings for T
where T: 'static + Send + Sync,

Source§

impl<T> UncapturedErrorHandler for T
where T: Fn(Error) + Send + 'static,

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,

Source§

impl<T> WindowHandle for T