diff --git a/cu29/all.html b/cu29/all.html index 554a9ded9..497fd6df0 100644 --- a/cu29/all.html +++ b/cu29/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Attribute Macros

Functions

Type Aliases

Statics

Constants

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Attribute Macros

Functions

Type Aliases

Statics

Constants

\ No newline at end of file diff --git a/cu29/config/fn.read_configuration.html b/cu29/config/fn.read_configuration.html index b2203854e..7cb2002ae 100644 --- a/cu29/config/fn.read_configuration.html +++ b/cu29/config/fn.read_configuration.html @@ -1,2 +1,2 @@ -read_configuration in cu29::config - Rust
cu29::config

Function read_configuration

Source
pub fn read_configuration(config_filename: &str) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

+read_configuration in cu29::config - Rust
cu29::config

Function read_configuration

Source
pub fn read_configuration(config_filename: &str) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

\ No newline at end of file diff --git a/cu29/config/fn.read_configuration_str.html b/cu29/config/fn.read_configuration_str.html index aa78cb38d..eebbdeaf4 100644 --- a/cu29/config/fn.read_configuration_str.html +++ b/cu29/config/fn.read_configuration_str.html @@ -1,4 +1,4 @@ -read_configuration_str in cu29::config - Rust
cu29::config

Function read_configuration_str

Source
pub fn read_configuration_str(
+read_configuration_str in cu29::config - Rust
cu29::config

Function read_configuration_str

Source
pub fn read_configuration_str(
     config_content: String,
 ) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

\ No newline at end of file diff --git a/cu29/config/index.html b/cu29/config/index.html index a8d030b1e..59a2b0b5c 100644 --- a/cu29/config/index.html +++ b/cu29/config/index.html @@ -1,4 +1,4 @@ -cu29::config - Rust
cu29

Module config

Source
Expand description

This module defines the configuration of the copper runtime. +cu29::config - Rust

cu29

Module config

Source
Expand description

This module defines the configuration of the copper runtime. The configuration is a directed graph where nodes are tasks and edges are connections between tasks. The configuration is serialized in the RON format. The configuration is used to generate the runtime code at compile time.

diff --git a/cu29/config/struct.Cnx.html b/cu29/config/struct.Cnx.html index 939886306..94098c994 100644 --- a/cu29/config/struct.Cnx.html +++ b/cu29/config/struct.Cnx.html @@ -1,4 +1,4 @@ -Cnx in cu29::config - Rust
cu29::config

Struct Cnx

Source
pub struct Cnx {
+Cnx in cu29::config - Rust
cu29::config

Struct Cnx

Source
pub struct Cnx {
     pub msg: String,
     pub batch: Option<u32>,
     pub store: Option<bool>,
@@ -9,19 +9,19 @@
 If None, Copper will just send 1 message at a time.
 If Some(n), Copper will batch n messages before sending the buffer.

§store: Option<bool>

Tells Copper if it needs to log the messages.

-

Trait Implementations§

Source§

impl Clone for Cnx

Source§

fn clone(&self) -> Cnx

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 Debug for Cnx

Source§

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

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

impl<'de> Deserialize<'de> for Cnx

Trait Implementations§

Source§

impl Clone for Cnx

Source§

fn clone(&self) -> Cnx

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 Debug for Cnx

Source§

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

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

impl<'de> Deserialize<'de> for Cnx

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<Cnx, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for Cnx

Source§

fn serialize<__S>( +) -> Result<Cnx, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for Cnx

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

Auto Trait Implementations§

§

impl Freeze for Cnx

§

impl RefUnwindSafe for Cnx

§

impl Send for Cnx

§

impl Sync for Cnx

§

impl Unpin for Cnx

§

impl UnwindSafe for Cnx

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Cnx

§

impl RefUnwindSafe for Cnx

§

impl Send for Cnx

§

impl Sync for Cnx

§

impl Unpin for Cnx

§

impl UnwindSafe for Cnx

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -29,6 +29,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/config/struct.ComponentConfig.html b/cu29/config/struct.ComponentConfig.html index f1687eaf7..a27114d1a 100644 --- a/cu29/config/struct.ComponentConfig.html +++ b/cu29/config/struct.ComponentConfig.html @@ -1,21 +1,21 @@ -ComponentConfig in cu29::config - Rust
cu29::config

Struct ComponentConfig

Source
pub struct ComponentConfig(pub HashMap<String, Value>);
Expand description

This is the configuration of a component (like a task config or a monitoring config):w +ComponentConfig in cu29::config - Rust

cu29::config

Struct ComponentConfig

Source
pub struct ComponentConfig(pub HashMap<String, Value>);
Expand description

This is the configuration of a component (like a task config or a monitoring config):w It is a map of key-value pairs. It is given to the new method of the task implementation.

Tuple Fields§

§0: HashMap<String, Value>

Implementations§

Source§

impl ComponentConfig

Source

pub fn new() -> ComponentConfig

Source

pub fn get<T>(&self, key: &str) -> Option<T>
where T: From<Value>,

Source

pub fn set<T>(&mut self, key: &str, value: T)
where - T: Into<Value>,

Trait Implementations§

Source§

impl Clone for ComponentConfig

Source§

fn clone(&self) -> ComponentConfig

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 Debug for ComponentConfig

Source§

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

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

impl Default for ComponentConfig

Source§

fn default() -> ComponentConfig

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

impl<'de> Deserialize<'de> for ComponentConfig

Trait Implementations§

Source§

impl Clone for ComponentConfig

Source§

fn clone(&self) -> ComponentConfig

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 Debug for ComponentConfig

Source§

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

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

impl Default for ComponentConfig

Source§

fn default() -> ComponentConfig

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

impl<'de> Deserialize<'de> for ComponentConfig

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<ComponentConfig, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for ComponentConfig

Source§

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

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

impl Serialize for ComponentConfig

Source§

fn serialize<__S>( +) -> Result<ComponentConfig, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for ComponentConfig

Source§

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

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

impl Serialize for ComponentConfig

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for ComponentConfig

§

impl RefUnwindSafe for ComponentConfig

§

impl Send for ComponentConfig

§

impl Sync for ComponentConfig

§

impl Unpin for ComponentConfig

§

impl UnwindSafe for ComponentConfig

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -25,6 +25,6 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/config/struct.CuConfig.html b/cu29/config/struct.CuConfig.html index dd3e266ca..f5793c24c 100644 --- a/cu29/config/struct.CuConfig.html +++ b/cu29/config/struct.CuConfig.html @@ -1,4 +1,4 @@ -CuConfig in cu29::config - Rust
cu29::config

Struct CuConfig

Source
pub struct CuConfig {
+CuConfig in cu29::config - Rust
cu29::config

Struct CuConfig

Source
pub struct CuConfig {
     pub graph: StableGraph<Node, Cnx>,
     /* private fields */
 }
Expand description

CuConfig is the programmatic representation of the configuration graph. @@ -26,21 +26,21 @@

Source

pub fn connect(&mut self, source: u32, target: u32, msg_type: &str)

Adds an edge between two nodes/tasks in the configuration graph. msg_type is the type of message exchanged between the two nodes/tasks.

Source

pub fn serialize_ron(&self) -> String

Source

pub fn deserialize_ron(ron: &str) -> CuConfig

Source

pub fn render(&self, output: &mut dyn Write)

Render the configuration graph in the dot format.

-
Source

pub fn get_all_instances_configs(&self) -> Vec<Option<&ComponentConfig>>

Source

pub fn get_monitor_config(&self) -> Option<&MonitorConfig>

Trait Implementations§

Source§

impl Clone for CuConfig

Source§

fn clone(&self) -> CuConfig

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 Debug for CuConfig

Source§

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

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

impl Default for CuConfig

Source§

fn default() -> CuConfig

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

impl<'de> Deserialize<'de> for CuConfig

Source

pub fn get_all_instances_configs(&self) -> Vec<Option<&ComponentConfig>>

Source

pub fn get_monitor_config(&self) -> Option<&MonitorConfig>

Trait Implementations§

Source§

impl Clone for CuConfig

Source§

fn clone(&self) -> CuConfig

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 Debug for CuConfig

Source§

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

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

impl Default for CuConfig

Source§

fn default() -> CuConfig

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

impl<'de> Deserialize<'de> for CuConfig

Source§

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

This is a custom serialization to make this implementation independent of petgraph.

-
Source§

impl Serialize for CuConfig

Source§

fn serialize<S>( +) -> Result<CuConfig, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,

This is a custom serialization to make this implementation independent of petgraph.

+
Source§

impl Serialize for CuConfig

Source§

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

This is a custom serialization to make this implementation independent of petgraph.

+) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where + S: Serializer,

This is a custom serialization to make this implementation independent of petgraph.

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -48,6 +48,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/config/struct.MonitorConfig.html b/cu29/config/struct.MonitorConfig.html index de2d9723c..21ea2c0a4 100644 --- a/cu29/config/struct.MonitorConfig.html +++ b/cu29/config/struct.MonitorConfig.html @@ -1,16 +1,16 @@ -MonitorConfig in cu29::config - Rust
cu29::config

Struct MonitorConfig

Source
pub struct MonitorConfig { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Clone for MonitorConfig

Source§

fn clone(&self) -> MonitorConfig

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 Debug for MonitorConfig

Source§

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

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

impl Default for MonitorConfig

Source§

fn default() -> MonitorConfig

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

impl<'de> Deserialize<'de> for MonitorConfig

Source§

fn deserialize<__D>( +MonitorConfig in cu29::config - Rust
cu29::config

Struct MonitorConfig

Source
pub struct MonitorConfig { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Clone for MonitorConfig

Source§

fn clone(&self) -> MonitorConfig

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 Debug for MonitorConfig

Source§

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

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

impl Default for MonitorConfig

Source§

fn default() -> MonitorConfig

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

impl<'de> Deserialize<'de> for MonitorConfig

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<MonitorConfig, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for MonitorConfig

Source§

fn serialize<__S>( +) -> Result<MonitorConfig, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for MonitorConfig

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -18,6 +18,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/config/struct.Node.html b/cu29/config/struct.Node.html index adbbdd5e0..3aa1094e0 100644 --- a/cu29/config/struct.Node.html +++ b/cu29/config/struct.Node.html @@ -1,20 +1,20 @@ -Node in cu29::config - Rust
cu29::config

Struct Node

Source
pub struct Node { /* private fields */ }
Expand description

A node in the configuration graph. +Node in cu29::config - Rust

cu29::config

Struct Node

Source
pub struct Node { /* private fields */ }
Expand description

A node in the configuration graph. A node represents a Task in the system Graph.

Implementations§

Source§

impl Node

Source

pub fn new(id: &str, ptype: &str) -> Node

Source

pub fn get_id(&self) -> String

Source

pub fn set_type(self, name: Option<String>) -> Node

Source

pub fn get_type(&self) -> &str

Source

pub fn get_instance_config(&self) -> Option<&ComponentConfig>

Source

pub fn get_param<T>(&self, key: &str) -> Option<T>
where T: From<Value>,

Source

pub fn set_param<T>(&mut self, key: &str, value: T)
where - T: Into<Value>,

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Node

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 Debug for Node

Source§

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

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

impl<'de> Deserialize<'de> for Node

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Node

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 Debug for Node

Source§

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

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

impl<'de> Deserialize<'de> for Node

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<Node, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for Node

Source§

fn serialize<__S>( +) -> Result<Node, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for Node

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

Auto Trait Implementations§

§

impl Freeze for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -22,6 +22,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/config/struct.Value.html b/cu29/config/struct.Value.html index 6a184790e..27df086ec 100644 --- a/cu29/config/struct.Value.html +++ b/cu29/config/struct.Value.html @@ -1,18 +1,18 @@ -Value in cu29::config - Rust
cu29::config

Struct Value

Source
pub struct Value(/* private fields */);
Expand description

Wrapper around the ron::Value to allow for custom serialization.

-

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

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 Debug for Value

Source§

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

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

impl<'de> Deserialize<'de> for Value

Source§

fn deserialize<__D>( +Value in cu29::config - Rust
cu29::config

Struct Value

Source
pub struct Value(/* private fields */);
Expand description

Wrapper around the ron::Value to allow for custom serialization.

+

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

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 Debug for Value

Source§

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

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

impl<'de> Deserialize<'de> for Value

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<Value, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for Value

Source§

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

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

impl From<String> for Value

Source§

fn from(value: String) -> Value

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(value: f64) -> Value

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(value: i32) -> Value

Converts to this type from the input type.
Source§

impl From<u16> for Value

Source§

fn from(value: u16) -> Value

Converts to this type from the input type.
Source§

impl From<u32> for Value

Source§

fn from(value: u32) -> Value

Converts to this type from the input type.
Source§

impl From<u8> for Value

Source§

fn from(value: u8) -> Value

Converts to this type from the input type.
Source§

impl PartialEq for Value

Source§

fn eq(&self, other: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for Value

Source§

fn serialize<__S>( +) -> Result<Value, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for Value

Source§

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

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

impl From<String> for Value

Source§

fn from(value: String) -> Value

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(value: f64) -> Value

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(value: i32) -> Value

Converts to this type from the input type.
Source§

impl From<u16> for Value

Source§

fn from(value: u16) -> Value

Converts to this type from the input type.
Source§

impl From<u32> for Value

Source§

fn from(value: u32) -> Value

Converts to this type from the input type.
Source§

impl From<u8> for Value

Source§

fn from(value: u8) -> Value

Converts to this type from the input type.
Source§

impl PartialEq for Value

Source§

fn eq(&self, other: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Serialize for Value

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 StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Source§

impl StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -22,6 +22,6 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/config/type.NodeId.html b/cu29/config/type.NodeId.html index ae3d207c5..3a49db0ae 100644 --- a/cu29/config/type.NodeId.html +++ b/cu29/config/type.NodeId.html @@ -1,3 +1,3 @@ -NodeId in cu29::config - Rust
cu29::config

Type Alias NodeId

Source
pub type NodeId = u32;
Expand description

NodeId is the unique identifier of a node in the configuration graph for petgraph +NodeId in cu29::config - Rust

cu29::config

Type Alias NodeId

Source
pub type NodeId = u32;
Expand description

NodeId is the unique identifier of a node in the configuration graph for petgraph and the code generation.

\ No newline at end of file diff --git a/cu29/copperlist/enum.CopperListState.html b/cu29/copperlist/enum.CopperListState.html index c4783758d..71f684dd1 100644 --- a/cu29/copperlist/enum.CopperListState.html +++ b/cu29/copperlist/enum.CopperListState.html @@ -1,4 +1,4 @@ -CopperListState in cu29::copperlist - Rust
cu29::copperlist

Enum CopperListState

Source
pub enum CopperListState {
+CopperListState in cu29::copperlist - Rust
cu29::copperlist

Enum CopperListState

Source
pub enum CopperListState {
     Free,
     Initialized,
     Processing,
@@ -9,16 +9,16 @@
     __D: BorrowDecoder<'__de>,
Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for CopperListState

Source§

fn clone(&self) -> CopperListState

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 Debug for CopperListState

Source§

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

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

impl Decode for CopperListState

Source§

fn decode<__D>(decoder: &mut __D) -> Result<CopperListState, DecodeError>
where __D: Decoder,

Attempt to decode this type with the given Decode.
Source§

impl Display for CopperListState

Source§

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

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

impl Encode for CopperListState

Source§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where __E: Encoder,

Encode a given type.
Source§

impl PartialEq for CopperListState

Source§

fn eq(&self, other: &CopperListState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for CopperListState

Source§

fn serialize<__S>( +and should not be overridden without very good reason.

Source§

impl Serialize for CopperListState

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 Copy for CopperListState

Source§

impl StructuralPartialEq for CopperListState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for CopperListState

Source§

impl StructuralPartialEq for CopperListState

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 diff --git a/cu29/copperlist/index.html b/cu29/copperlist/index.html index a65663cdc..81c7780d7 100644 --- a/cu29/copperlist/index.html +++ b/cu29/copperlist/index.html @@ -1,4 +1,4 @@ -cu29::copperlist - Rust

cu29

Module copperlist

Source
Expand description

CopperList is the main data structure used by Copper to communicate between tasks. +cu29::copperlist - Rust

cu29

Module copperlist

Source
Expand description

CopperList is the main data structure used by Copper to communicate between tasks. It is a queue that can be used to store preallocated messages between tasks in memory order.

Structs§

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -35,6 +35,6 @@ 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<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.
§

impl<T> CopperListTuple for T
where T: Encode + Decode + Debug,

Source§

impl<T> CuMsgPayload for T
where - T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/cutask/trait.CuMsgPack.html b/cu29/cutask/trait.CuMsgPack.html index 5874e7dfc..08c25d693 100644 --- a/cu29/cutask/trait.CuMsgPack.html +++ b/cu29/cutask/trait.CuMsgPack.html @@ -1,4 +1,4 @@ -CuMsgPack in cu29::cutask - Rust
cu29::cutask

Trait CuMsgPack

Source
pub trait CuMsgPack<'cl> { }

Implementations on Foreign Types§

Source§

impl<'cl> CuMsgPack<'cl> for ()

Source§

impl<'cl, T1, T2> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>)
where +CuMsgPack in cu29::cutask - Rust
cu29::cutask

Trait CuMsgPack

Source
pub trait CuMsgPack<'cl> { }

Implementations on Foreign Types§

Source§

impl<'cl> CuMsgPack<'cl> for ()

Source§

impl<'cl, T1, T2> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>)
where T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl,

Source§

impl<'cl, T1, T2, T3> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>, &'cl CuMsg<T3>)
where T1: CuMsgPayload + 'cl, diff --git a/cu29/cutask/trait.CuMsgPayload.html b/cu29/cutask/trait.CuMsgPayload.html index b1c34c1e1..286c45ba3 100644 --- a/cu29/cutask/trait.CuMsgPayload.html +++ b/cu29/cutask/trait.CuMsgPayload.html @@ -1,4 +1,4 @@ -CuMsgPayload in cu29::cutask - Rust
cu29::cutask

Trait CuMsgPayload

Source
pub trait CuMsgPayload:
+CuMsgPayload in cu29::cutask - Rust
cu29::cutask

Trait CuMsgPayload

Source
pub trait CuMsgPayload:
     Sized
     + Default
     + Debug
diff --git a/cu29/cutask/trait.CuSinkTask.html b/cu29/cutask/trait.CuSinkTask.html
index ff33dc0cf..82af01b87 100644
--- a/cu29/cutask/trait.CuSinkTask.html
+++ b/cu29/cutask/trait.CuSinkTask.html
@@ -1,4 +1,4 @@
-CuSinkTask in cu29::cutask - Rust
cu29::cutask

Trait CuSinkTask

Source
pub trait CuSinkTask<'cl>: Freezable {
+CuSinkTask in cu29::cutask - Rust
cu29::cutask

Trait CuSinkTask

Source
pub trait CuSinkTask<'cl>: Freezable {
     type Input: CuMsgPack<'cl>;
 
     // Required methods
diff --git a/cu29/cutask/trait.CuSrcTask.html b/cu29/cutask/trait.CuSrcTask.html
index d8f11a33c..b073c26c3 100644
--- a/cu29/cutask/trait.CuSrcTask.html
+++ b/cu29/cutask/trait.CuSrcTask.html
@@ -1,4 +1,4 @@
-CuSrcTask in cu29::cutask - Rust
cu29::cutask

Trait CuSrcTask

Source
pub trait CuSrcTask<'cl>: Freezable {
+CuSrcTask in cu29::cutask - Rust
cu29::cutask

Trait CuSrcTask

Source
pub trait CuSrcTask<'cl>: Freezable {
     type Output: CuMsgPack<'cl>;
 
     // Required methods
diff --git a/cu29/cutask/trait.CuTask.html b/cu29/cutask/trait.CuTask.html
index f8a94da66..e47fa762f 100644
--- a/cu29/cutask/trait.CuTask.html
+++ b/cu29/cutask/trait.CuTask.html
@@ -1,4 +1,4 @@
-CuTask in cu29::cutask - Rust
cu29::cutask

Trait CuTask

Source
pub trait CuTask<'cl>: Freezable {
+CuTask in cu29::cutask - Rust
cu29::cutask

Trait CuTask

Source
pub trait CuTask<'cl>: Freezable {
     type Input: CuMsgPack<'cl>;
     type Output: CuMsgPack<'cl>;
 
diff --git a/cu29/cutask/trait.Freezable.html b/cu29/cutask/trait.Freezable.html
index 1365f32d8..b7a240157 100644
--- a/cu29/cutask/trait.Freezable.html
+++ b/cu29/cutask/trait.Freezable.html
@@ -1,4 +1,4 @@
-Freezable in cu29::cutask - Rust
cu29::cutask

Trait Freezable

Source
pub trait Freezable {
+Freezable in cu29::cutask - Rust
cu29::cutask

Trait Freezable

Source
pub trait Freezable {
     // Provided methods
     fn freeze<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
        where E: Encoder { ... }
diff --git a/cu29/enum.UnifiedLogType.html b/cu29/enum.UnifiedLogType.html
index f0d7c4932..c046057ec 100644
--- a/cu29/enum.UnifiedLogType.html
+++ b/cu29/enum.UnifiedLogType.html
@@ -1,4 +1,4 @@
-UnifiedLogType in cu29 - Rust
cu29

Enum UnifiedLogType

pub enum UnifiedLogType {
+UnifiedLogType in cu29 - Rust
cu29

Enum UnifiedLogType

pub enum UnifiedLogType {
     Empty,
     StructuredLogLine,
     CopperList,
diff --git a/cu29/fn.read_configuration.html b/cu29/fn.read_configuration.html
index 7e207f74d..c4ca6fed1 100644
--- a/cu29/fn.read_configuration.html
+++ b/cu29/fn.read_configuration.html
@@ -1,2 +1,2 @@
-read_configuration in cu29 - Rust
cu29

Function read_configuration

Source
pub fn read_configuration(config_filename: &str) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

+read_configuration in cu29 - Rust
cu29

Function read_configuration

Source
pub fn read_configuration(config_filename: &str) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

\ No newline at end of file diff --git a/cu29/index.html b/cu29/index.html index 53b52f004..ae007fdd6 100644 --- a/cu29/index.html +++ b/cu29/index.html @@ -1,4 +1,4 @@ -cu29 - Rust

Crate cu29

Source
Expand description
logo +cu29 - Rust

Crate cu29

Source
Expand description
logo

§

§Copper

copper GitHub last commit diff --git a/cu29/macro.input_msg.html b/cu29/macro.input_msg.html index a84483455..95cb52ba7 100644 --- a/cu29/macro.input_msg.html +++ b/cu29/macro.input_msg.html @@ -1,4 +1,4 @@ -input_msg in cu29 - Rust

cu29

Macro input_msg

Source
macro_rules! input_msg {
+input_msg in cu29 - Rust
cu29

Macro input_msg

Source
macro_rules! input_msg {
     ($lifetime:lifetime, $ty:ty) => { ... };
     ($lifetime:lifetime, $($ty:ty),*) => { ... };
 }
\ No newline at end of file diff --git a/cu29/macro.output_msg.html b/cu29/macro.output_msg.html index 285e75db4..d71066058 100644 --- a/cu29/macro.output_msg.html +++ b/cu29/macro.output_msg.html @@ -1,3 +1,3 @@ -output_msg in cu29 - Rust
cu29

Macro output_msg

Source
macro_rules! output_msg {
+output_msg in cu29 - Rust
cu29

Macro output_msg

Source
macro_rules! output_msg {
     ($lifetime:lifetime, $ty:ty) => { ... };
 }
\ No newline at end of file diff --git a/cu29/monitoring/enum.CuTaskState.html b/cu29/monitoring/enum.CuTaskState.html index 903034efe..397fb8495 100644 --- a/cu29/monitoring/enum.CuTaskState.html +++ b/cu29/monitoring/enum.CuTaskState.html @@ -1,28 +1,28 @@ -CuTaskState in cu29::monitoring - Rust
cu29::monitoring

Enum CuTaskState

Source
pub enum CuTaskState {
+CuTaskState in cu29::monitoring - Rust
cu29::monitoring

Enum CuTaskState

Source
pub enum CuTaskState {
     Start,
     Preprocess,
     Process,
     Postprocess,
     Stop,
 }
Expand description

The state of a task.

-

Variants§

§

Start

§

Preprocess

§

Process

§

Postprocess

§

Stop

Trait Implementations§

Source§

impl Debug for CuTaskState

Source§

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

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

impl<'de> Deserialize<'de> for CuTaskState

Variants§

§

Start

§

Preprocess

§

Process

§

Postprocess

§

Stop

Trait Implementations§

Source§

impl Debug for CuTaskState

Source§

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

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

impl<'de> Deserialize<'de> for CuTaskState

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<CuTaskState, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for CuTaskState

Source§

fn serialize<__S>( +) -> Result<CuTaskState, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for CuTaskState

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/monitoring/enum.Decision.html b/cu29/monitoring/enum.Decision.html index 6b4a22bc7..9beeb15b2 100644 --- a/cu29/monitoring/enum.Decision.html +++ b/cu29/monitoring/enum.Decision.html @@ -1,4 +1,4 @@ -Decision in cu29::monitoring - Rust
cu29::monitoring

Enum Decision

Source
pub enum Decision {
+Decision in cu29::monitoring - Rust
cu29::monitoring

Enum Decision

Source
pub enum Decision {
     Abort,
     Ignore,
     Shutdown,
diff --git a/cu29/monitoring/index.html b/cu29/monitoring/index.html
index 3bfec204f..bcdca9a1e 100644
--- a/cu29/monitoring/index.html
+++ b/cu29/monitoring/index.html
@@ -1,4 +1,4 @@
-cu29::monitoring - Rust
cu29

Module monitoring

Source
Expand description

Some basic internal monitoring tooling Copper uses to monitor itself and the tasks it is running.

+cu29::monitoring - Rust
cu29

Module monitoring

Source
Expand description

Some basic internal monitoring tooling Copper uses to monitor itself and the tasks it is running.

Structs§

  • A simple allocator that counts the number of bytes allocated and deallocated.
  • A Specialized statistics object for CuDuration. It will also keep track of the jitter between the values.
  • Accumulative stat object that can give your some real time statistics.
  • A do nothing monitor if no monitor is provided. This is basically defining the default behavior of Copper in case of error.
  • A simple struct that counts the number of bytes allocated and deallocated in a scope.

Enums§

Statics§

Traits§

  • Trait to implement a monitoring task.
\ No newline at end of file diff --git a/cu29/monitoring/static.GLOBAL.html b/cu29/monitoring/static.GLOBAL.html index 6003d9316..2d6f72452 100644 --- a/cu29/monitoring/static.GLOBAL.html +++ b/cu29/monitoring/static.GLOBAL.html @@ -1 +1 @@ -GLOBAL in cu29::monitoring - Rust
cu29::monitoring

Static GLOBAL

Source
pub static GLOBAL: CountingAllocator
\ No newline at end of file +GLOBAL in cu29::monitoring - Rust
cu29::monitoring

Static GLOBAL

Source
pub static GLOBAL: CountingAllocator
\ No newline at end of file diff --git a/cu29/monitoring/struct.CountingAllocator.html b/cu29/monitoring/struct.CountingAllocator.html index 82a1b7999..af19c51eb 100644 --- a/cu29/monitoring/struct.CountingAllocator.html +++ b/cu29/monitoring/struct.CountingAllocator.html @@ -1,4 +1,4 @@ -CountingAllocator in cu29::monitoring - Rust
cu29::monitoring

Struct CountingAllocator

Source
pub struct CountingAllocator { /* private fields */ }
Expand description

A simple allocator that counts the number of bytes allocated and deallocated.

+CountingAllocator in cu29::monitoring - Rust
cu29::monitoring

Struct CountingAllocator

Source
pub struct CountingAllocator { /* private fields */ }
Expand description

A simple allocator that counts the number of bytes allocated and deallocated.

Implementations§

Trait Implementations§

Source§

impl Default for CountingAllocator

Source§

fn default() -> CountingAllocator

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

impl GlobalAlloc for CountingAllocator

Source§

unsafe fn alloc(&self, layout: Layout) -> *mut u8

Allocates memory as described by the given layout. Read more
Source§

unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout)

Deallocates the block of memory at the given ptr pointer with the given layout. Read more
1.28.0 · Source§

unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8

Behaves like alloc, but also ensures that the contents are set to zero before being returned. Read more
1.28.0 · Source§

unsafe fn realloc( &self, diff --git a/cu29/monitoring/struct.CuDurationStatistics.html b/cu29/monitoring/struct.CuDurationStatistics.html index 6f99c5bec..ed25ebe6e 100644 --- a/cu29/monitoring/struct.CuDurationStatistics.html +++ b/cu29/monitoring/struct.CuDurationStatistics.html @@ -1,4 +1,4 @@ -CuDurationStatistics in cu29::monitoring - Rust
cu29::monitoring

Struct CuDurationStatistics

Source
pub struct CuDurationStatistics { /* private fields */ }
Expand description

A Specialized statistics object for CuDuration. +CuDurationStatistics in cu29::monitoring - Rust

cu29::monitoring

Struct CuDurationStatistics

Source
pub struct CuDurationStatistics { /* private fields */ }
Expand description

A Specialized statistics object for CuDuration. It will also keep track of the jitter between the values.

Implementations§

Source§

impl CuDurationStatistics

Source

pub fn new(max: CuDuration) -> CuDurationStatistics

Source

pub fn min(&self) -> CuDuration

Source

pub fn max(&self) -> CuDuration

Source

pub fn mean(&self) -> CuDuration

Source

pub fn percentile(&self, percentile: f64) -> CuDuration

Source

pub fn stddev(&self) -> CuDuration

Source

pub fn len(&self) -> u64

Source

pub fn is_empty(&self) -> bool

Source

pub fn jitter_min(&self) -> CuDuration

Source

pub fn jitter_max(&self) -> CuDuration

Source

pub fn jitter_mean(&self) -> CuDuration

Source

pub fn jitter_stddev(&self) -> CuDuration

Source

pub fn jitter_percentile(&self, percentile: f64) -> CuDuration

Source

pub fn record(&mut self, value: CuDuration)

Source

pub fn reset(&mut self)

Trait Implementations§

Source§

impl Clone for CuDurationStatistics

Source§

fn clone(&self) -> CuDurationStatistics

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 Debug for CuDurationStatistics

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29/monitoring/struct.LiveStatistics.html b/cu29/monitoring/struct.LiveStatistics.html index c59ba354d..1665e5b1d 100644 --- a/cu29/monitoring/struct.LiveStatistics.html +++ b/cu29/monitoring/struct.LiveStatistics.html @@ -1,4 +1,4 @@ -LiveStatistics in cu29::monitoring - Rust
cu29::monitoring

Struct LiveStatistics

Source
pub struct LiveStatistics { /* private fields */ }
Expand description

Accumulative stat object that can give your some real time statistics.

+LiveStatistics in cu29::monitoring - Rust
cu29::monitoring

Struct LiveStatistics

Source
pub struct LiveStatistics { /* private fields */ }
Expand description

Accumulative stat object that can give your some real time statistics.

Implementations§

Source§

impl LiveStatistics

Source

pub fn new_unbounded() -> LiveStatistics

Source

pub fn new_with_max(max: u64) -> LiveStatistics

Source

pub fn min(&self) -> u64

Source

pub fn max(&self) -> u64

Source

pub fn mean(&self) -> f64

Source

pub fn percentile(&self, percentile: f64) -> u64

Source

pub fn record(&mut self, value: u64)

Adds a value to the statistics.

Source

pub fn len(&self) -> u64

Source

pub fn is_empty(&self) -> bool

Source

pub fn reset(&mut self)

Trait Implementations§

Source§

impl Clone for LiveStatistics

Source§

fn clone(&self) -> LiveStatistics

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 Debug for LiveStatistics

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29/monitoring/struct.NoMonitor.html b/cu29/monitoring/struct.NoMonitor.html index e8ce504bb..2d1e4e827 100644 --- a/cu29/monitoring/struct.NoMonitor.html +++ b/cu29/monitoring/struct.NoMonitor.html @@ -1,4 +1,4 @@ -NoMonitor in cu29::monitoring - Rust
cu29::monitoring

Struct NoMonitor

Source
pub struct NoMonitor {}
Expand description

A do nothing monitor if no monitor is provided. +NoMonitor in cu29::monitoring - Rust

cu29::monitoring

Struct NoMonitor

Source
pub struct NoMonitor {}
Expand description

A do nothing monitor if no monitor is provided. This is basically defining the default behavior of Copper in case of error.

Trait Implementations§

Source§

impl CuMonitor for NoMonitor

Source§

fn new( _config: &CuConfig, diff --git a/cu29/monitoring/struct.ScopedAllocCounter.html b/cu29/monitoring/struct.ScopedAllocCounter.html index a55ab136f..b28628959 100644 --- a/cu29/monitoring/struct.ScopedAllocCounter.html +++ b/cu29/monitoring/struct.ScopedAllocCounter.html @@ -1,4 +1,4 @@ -ScopedAllocCounter in cu29::monitoring - Rust
cu29::monitoring

Struct ScopedAllocCounter

Source
pub struct ScopedAllocCounter { /* private fields */ }
Expand description

A simple struct that counts the number of bytes allocated and deallocated in a scope.

+ScopedAllocCounter in cu29::monitoring - Rust
cu29::monitoring

Struct ScopedAllocCounter

Source
pub struct ScopedAllocCounter { /* private fields */ }
Expand description

A simple struct that counts the number of bytes allocated and deallocated in a scope.

Implementations§

Trait Implementations§

Source§

impl Default for ScopedAllocCounter

Source§

fn default() -> ScopedAllocCounter

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

impl Drop for ScopedAllocCounter

Build a difference between the number of bytes allocated and deallocated in the scope at drop time.

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29/monitoring/trait.CuMonitor.html b/cu29/monitoring/trait.CuMonitor.html index 617adb1b5..e7c5c4364 100644 --- a/cu29/monitoring/trait.CuMonitor.html +++ b/cu29/monitoring/trait.CuMonitor.html @@ -1,4 +1,4 @@ -CuMonitor in cu29::monitoring - Rust
cu29::monitoring

Trait CuMonitor

Source
pub trait CuMonitor: Sized {
+CuMonitor in cu29::monitoring - Rust
cu29::monitoring

Trait CuMonitor

Source
pub trait CuMonitor: Sized {
     // Required methods
     fn new(
         config: &CuConfig,
diff --git a/cu29/payload/index.html b/cu29/payload/index.html
index e9edfa6c1..fc3dcf0f1 100644
--- a/cu29/payload/index.html
+++ b/cu29/payload/index.html
@@ -1 +1 @@
-cu29::payload - Rust
cu29

Module payload

Source

Structs§

  • Copper friendly wrapper for a fixed size array.
\ No newline at end of file +cu29::payload - Rust
cu29

Module payload

Source

Structs§

  • Copper friendly wrapper for a fixed size array.
\ No newline at end of file diff --git a/cu29/payload/struct.CuArray.html b/cu29/payload/struct.CuArray.html index 96dffed0f..04695fcd4 100644 --- a/cu29/payload/struct.CuArray.html +++ b/cu29/payload/struct.CuArray.html @@ -1,4 +1,4 @@ -CuArray in cu29::payload - Rust
cu29::payload

Struct CuArray

Source
pub struct CuArray<T, const N: usize> { /* private fields */ }
Expand description

Copper friendly wrapper for a fixed size array.

+CuArray in cu29::payload - Rust
cu29::payload

Struct CuArray

Source
pub struct CuArray<T, const N: usize> { /* private fields */ }
Expand description

Copper friendly wrapper for a fixed size array.

Implementations§

Source§

impl<T, const N: usize> CuArray<T, N>

Source

pub fn new() -> CuArray<T, N>

Source

pub fn fill_from_iter<I>(&mut self, iter: I)
where I: IntoIterator<Item = T>,

Source

pub fn len(&self) -> usize

Source

pub fn as_slice(&self) -> &[T]

Source

pub fn capacity(&self) -> usize

Trait Implementations§

Source§

impl<T, const N: usize> Clone for CuArray<T, N>
where T: Clone,

Source§

fn clone(&self) -> CuArray<T, N>

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, const N: usize> Debug for CuArray<T, N>
where diff --git a/cu29/prelude/attr.copper_runtime.html b/cu29/prelude/attr.copper_runtime.html index 10b6e1288..513b2f5a3 100644 --- a/cu29/prelude/attr.copper_runtime.html +++ b/cu29/prelude/attr.copper_runtime.html @@ -1,4 +1,4 @@ -copper_runtime in cu29::prelude - Rust
cu29::prelude

Attribute Macro copper_runtime

Source
#[copper_runtime]
Expand description

Adds #[copper_runtime(config = “path”, sim_mode = false/true)] to your application struct to generate the runtime. +copper_runtime in cu29::prelude - Rust

cu29::prelude

Attribute Macro copper_runtime

Source
#[copper_runtime]
Expand description

Adds #[copper_runtime(config = “path”, sim_mode = false/true)] to your application struct to generate the runtime. if sim_mode is ommited, it is set to false. This will add a “runtime” field to your struct and implement the “new” and “run” methods.

\ No newline at end of file diff --git a/cu29/prelude/config/fn.read_configuration.html b/cu29/prelude/config/fn.read_configuration.html index ef3268452..7d1265cd4 100644 --- a/cu29/prelude/config/fn.read_configuration.html +++ b/cu29/prelude/config/fn.read_configuration.html @@ -1,2 +1,2 @@ -read_configuration in cu29::prelude::config - Rust
cu29::prelude::config

Function read_configuration

Source
pub fn read_configuration(config_filename: &str) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

+read_configuration in cu29::prelude::config - Rust
cu29::prelude::config

Function read_configuration

Source
pub fn read_configuration(config_filename: &str) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

\ No newline at end of file diff --git a/cu29/prelude/config/fn.read_configuration_str.html b/cu29/prelude/config/fn.read_configuration_str.html index d6b8b93ae..7696b60ce 100644 --- a/cu29/prelude/config/fn.read_configuration_str.html +++ b/cu29/prelude/config/fn.read_configuration_str.html @@ -1,4 +1,4 @@ -read_configuration_str in cu29::prelude::config - Rust
cu29::prelude::config

Function read_configuration_str

Source
pub fn read_configuration_str(
+read_configuration_str in cu29::prelude::config - Rust
cu29::prelude::config

Function read_configuration_str

Source
pub fn read_configuration_str(
     config_content: String,
 ) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

\ No newline at end of file diff --git a/cu29/prelude/config/index.html b/cu29/prelude/config/index.html index 354028d99..f7268c617 100644 --- a/cu29/prelude/config/index.html +++ b/cu29/prelude/config/index.html @@ -1,4 +1,4 @@ -cu29::prelude::config - Rust
cu29::prelude

Module config

Source
Expand description

This module defines the configuration of the copper runtime. +cu29::prelude::config - Rust

cu29::prelude

Module config

Source
Expand description

This module defines the configuration of the copper runtime. The configuration is a directed graph where nodes are tasks and edges are connections between tasks. The configuration is serialized in the RON format. The configuration is used to generate the runtime code at compile time.

diff --git a/cu29/prelude/config/struct.Cnx.html b/cu29/prelude/config/struct.Cnx.html index d1fc45f07..a8ac8b970 100644 --- a/cu29/prelude/config/struct.Cnx.html +++ b/cu29/prelude/config/struct.Cnx.html @@ -1,4 +1,4 @@ -Cnx in cu29::prelude::config - Rust
cu29::prelude::config

Struct Cnx

Source
pub struct Cnx {
+Cnx in cu29::prelude::config - Rust
cu29::prelude::config

Struct Cnx

Source
pub struct Cnx {
     pub msg: String,
     pub batch: Option<u32>,
     pub store: Option<bool>,
@@ -9,19 +9,19 @@
 If None, Copper will just send 1 message at a time.
 If Some(n), Copper will batch n messages before sending the buffer.

§store: Option<bool>

Tells Copper if it needs to log the messages.

-

Trait Implementations§

Source§

impl Clone for Cnx

Source§

fn clone(&self) -> Cnx

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 Debug for Cnx

Source§

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

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

impl<'de> Deserialize<'de> for Cnx

Trait Implementations§

Source§

impl Clone for Cnx

Source§

fn clone(&self) -> Cnx

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 Debug for Cnx

Source§

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

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

impl<'de> Deserialize<'de> for Cnx

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<Cnx, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for Cnx

Source§

fn serialize<__S>( +) -> Result<Cnx, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for Cnx

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

Auto Trait Implementations§

§

impl Freeze for Cnx

§

impl RefUnwindSafe for Cnx

§

impl Send for Cnx

§

impl Sync for Cnx

§

impl Unpin for Cnx

§

impl UnwindSafe for Cnx

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Cnx

§

impl RefUnwindSafe for Cnx

§

impl Send for Cnx

§

impl Sync for Cnx

§

impl Unpin for Cnx

§

impl UnwindSafe for Cnx

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -29,6 +29,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/config/struct.ComponentConfig.html b/cu29/prelude/config/struct.ComponentConfig.html index 1c181db77..1e54e6d8a 100644 --- a/cu29/prelude/config/struct.ComponentConfig.html +++ b/cu29/prelude/config/struct.ComponentConfig.html @@ -1,21 +1,21 @@ -ComponentConfig in cu29::prelude::config - Rust
cu29::prelude::config

Struct ComponentConfig

Source
pub struct ComponentConfig(pub HashMap<String, Value>);
Expand description

This is the configuration of a component (like a task config or a monitoring config):w +ComponentConfig in cu29::prelude::config - Rust

cu29::prelude::config

Struct ComponentConfig

Source
pub struct ComponentConfig(pub HashMap<String, Value>);
Expand description

This is the configuration of a component (like a task config or a monitoring config):w It is a map of key-value pairs. It is given to the new method of the task implementation.

Tuple Fields§

§0: HashMap<String, Value>

Implementations§

Source§

impl ComponentConfig

Source

pub fn new() -> ComponentConfig

Source

pub fn get<T>(&self, key: &str) -> Option<T>
where T: From<Value>,

Source

pub fn set<T>(&mut self, key: &str, value: T)
where - T: Into<Value>,

Trait Implementations§

Source§

impl Clone for ComponentConfig

Source§

fn clone(&self) -> ComponentConfig

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 Debug for ComponentConfig

Source§

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

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

impl Default for ComponentConfig

Source§

fn default() -> ComponentConfig

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

impl<'de> Deserialize<'de> for ComponentConfig

Trait Implementations§

Source§

impl Clone for ComponentConfig

Source§

fn clone(&self) -> ComponentConfig

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 Debug for ComponentConfig

Source§

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

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

impl Default for ComponentConfig

Source§

fn default() -> ComponentConfig

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

impl<'de> Deserialize<'de> for ComponentConfig

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<ComponentConfig, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for ComponentConfig

Source§

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

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

impl Serialize for ComponentConfig

Source§

fn serialize<__S>( +) -> Result<ComponentConfig, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for ComponentConfig

Source§

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

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

impl Serialize for ComponentConfig

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -25,6 +25,6 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/config/struct.CuConfig.html b/cu29/prelude/config/struct.CuConfig.html index 2428a9f82..0992e6622 100644 --- a/cu29/prelude/config/struct.CuConfig.html +++ b/cu29/prelude/config/struct.CuConfig.html @@ -1,4 +1,4 @@ -CuConfig in cu29::prelude::config - Rust
cu29::prelude::config

Struct CuConfig

Source
pub struct CuConfig {
+CuConfig in cu29::prelude::config - Rust
cu29::prelude::config

Struct CuConfig

Source
pub struct CuConfig {
     pub graph: StableGraph<Node, Cnx>,
     /* private fields */
 }
Expand description

CuConfig is the programmatic representation of the configuration graph. @@ -26,21 +26,21 @@

Source

pub fn connect(&mut self, source: u32, target: u32, msg_type: &str)

Adds an edge between two nodes/tasks in the configuration graph. msg_type is the type of message exchanged between the two nodes/tasks.

Source

pub fn serialize_ron(&self) -> String

Source

pub fn deserialize_ron(ron: &str) -> CuConfig

Source

pub fn render(&self, output: &mut dyn Write)

Render the configuration graph in the dot format.

-
Source

pub fn get_all_instances_configs(&self) -> Vec<Option<&ComponentConfig>>

Source

pub fn get_monitor_config(&self) -> Option<&MonitorConfig>

Trait Implementations§

Source§

impl Clone for CuConfig

Source§

fn clone(&self) -> CuConfig

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 Debug for CuConfig

Source§

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

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

impl Default for CuConfig

Source§

fn default() -> CuConfig

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

impl<'de> Deserialize<'de> for CuConfig

Source

pub fn get_all_instances_configs(&self) -> Vec<Option<&ComponentConfig>>

Source

pub fn get_monitor_config(&self) -> Option<&MonitorConfig>

Trait Implementations§

Source§

impl Clone for CuConfig

Source§

fn clone(&self) -> CuConfig

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 Debug for CuConfig

Source§

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

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

impl Default for CuConfig

Source§

fn default() -> CuConfig

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

impl<'de> Deserialize<'de> for CuConfig

Source§

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

This is a custom serialization to make this implementation independent of petgraph.

-
Source§

impl Serialize for CuConfig

Source§

fn serialize<S>( +) -> Result<CuConfig, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,

This is a custom serialization to make this implementation independent of petgraph.

+
Source§

impl Serialize for CuConfig

Source§

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

This is a custom serialization to make this implementation independent of petgraph.

+) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where + S: Serializer,

This is a custom serialization to make this implementation independent of petgraph.

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -48,6 +48,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/config/struct.MonitorConfig.html b/cu29/prelude/config/struct.MonitorConfig.html index a0c3b2302..0e4d5ddde 100644 --- a/cu29/prelude/config/struct.MonitorConfig.html +++ b/cu29/prelude/config/struct.MonitorConfig.html @@ -1,16 +1,16 @@ -MonitorConfig in cu29::prelude::config - Rust
cu29::prelude::config

Struct MonitorConfig

Source
pub struct MonitorConfig { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Clone for MonitorConfig

Source§

fn clone(&self) -> MonitorConfig

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 Debug for MonitorConfig

Source§

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

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

impl Default for MonitorConfig

Source§

fn default() -> MonitorConfig

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

impl<'de> Deserialize<'de> for MonitorConfig

Source§

fn deserialize<__D>( +MonitorConfig in cu29::prelude::config - Rust
cu29::prelude::config

Struct MonitorConfig

Source
pub struct MonitorConfig { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Clone for MonitorConfig

Source§

fn clone(&self) -> MonitorConfig

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 Debug for MonitorConfig

Source§

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

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

impl Default for MonitorConfig

Source§

fn default() -> MonitorConfig

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

impl<'de> Deserialize<'de> for MonitorConfig

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<MonitorConfig, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for MonitorConfig

Source§

fn serialize<__S>( +) -> Result<MonitorConfig, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for MonitorConfig

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -18,6 +18,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/config/struct.Node.html b/cu29/prelude/config/struct.Node.html index 3e6870505..256403187 100644 --- a/cu29/prelude/config/struct.Node.html +++ b/cu29/prelude/config/struct.Node.html @@ -1,20 +1,20 @@ -Node in cu29::prelude::config - Rust
cu29::prelude::config

Struct Node

Source
pub struct Node { /* private fields */ }
Expand description

A node in the configuration graph. +Node in cu29::prelude::config - Rust

cu29::prelude::config

Struct Node

Source
pub struct Node { /* private fields */ }
Expand description

A node in the configuration graph. A node represents a Task in the system Graph.

Implementations§

Source§

impl Node

Source

pub fn new(id: &str, ptype: &str) -> Node

Source

pub fn get_id(&self) -> String

Source

pub fn set_type(self, name: Option<String>) -> Node

Source

pub fn get_type(&self) -> &str

Source

pub fn get_instance_config(&self) -> Option<&ComponentConfig>

Source

pub fn get_param<T>(&self, key: &str) -> Option<T>
where T: From<Value>,

Source

pub fn set_param<T>(&mut self, key: &str, value: T)
where - T: Into<Value>,

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Node

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 Debug for Node

Source§

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

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

impl<'de> Deserialize<'de> for Node

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Node

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 Debug for Node

Source§

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

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

impl<'de> Deserialize<'de> for Node

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<Node, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for Node

Source§

fn serialize<__S>( +) -> Result<Node, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for Node

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

Auto Trait Implementations§

§

impl Freeze for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -22,6 +22,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/config/struct.Value.html b/cu29/prelude/config/struct.Value.html index 860a7a6cb..069e29100 100644 --- a/cu29/prelude/config/struct.Value.html +++ b/cu29/prelude/config/struct.Value.html @@ -1,18 +1,18 @@ -Value in cu29::prelude::config - Rust
cu29::prelude::config

Struct Value

Source
pub struct Value(/* private fields */);
Expand description

Wrapper around the ron::Value to allow for custom serialization.

-

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

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 Debug for Value

Source§

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

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

impl<'de> Deserialize<'de> for Value

Source§

fn deserialize<__D>( +Value in cu29::prelude::config - Rust
cu29::prelude::config

Struct Value

Source
pub struct Value(/* private fields */);
Expand description

Wrapper around the ron::Value to allow for custom serialization.

+

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

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 Debug for Value

Source§

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

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

impl<'de> Deserialize<'de> for Value

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<Value, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for Value

Source§

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

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

impl From<String> for Value

Source§

fn from(value: String) -> Value

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(value: f64) -> Value

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(value: i32) -> Value

Converts to this type from the input type.
Source§

impl From<u16> for Value

Source§

fn from(value: u16) -> Value

Converts to this type from the input type.
Source§

impl From<u32> for Value

Source§

fn from(value: u32) -> Value

Converts to this type from the input type.
Source§

impl From<u8> for Value

Source§

fn from(value: u8) -> Value

Converts to this type from the input type.
Source§

impl PartialEq for Value

Source§

fn eq(&self, other: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for Value

Source§

fn serialize<__S>( +) -> Result<Value, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for Value

Source§

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

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

impl From<String> for Value

Source§

fn from(value: String) -> Value

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(value: f64) -> Value

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(value: i32) -> Value

Converts to this type from the input type.
Source§

impl From<u16> for Value

Source§

fn from(value: u16) -> Value

Converts to this type from the input type.
Source§

impl From<u32> for Value

Source§

fn from(value: u32) -> Value

Converts to this type from the input type.
Source§

impl From<u8> for Value

Source§

fn from(value: u8) -> Value

Converts to this type from the input type.
Source§

impl PartialEq for Value

Source§

fn eq(&self, other: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Serialize for Value

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 StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Source§

impl StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -22,6 +22,6 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/config/type.NodeId.html b/cu29/prelude/config/type.NodeId.html index 1890bc717..bd5cac723 100644 --- a/cu29/prelude/config/type.NodeId.html +++ b/cu29/prelude/config/type.NodeId.html @@ -1,3 +1,3 @@ -NodeId in cu29::prelude::config - Rust
cu29::prelude::config

Type Alias NodeId

Source
pub type NodeId = u32;
Expand description

NodeId is the unique identifier of a node in the configuration graph for petgraph +NodeId in cu29::prelude::config - Rust

cu29::prelude::config

Type Alias NodeId

Source
pub type NodeId = u32;
Expand description

NodeId is the unique identifier of a node in the configuration graph for petgraph and the code generation.

\ No newline at end of file diff --git a/cu29/prelude/constant.ANONYMOUS.html b/cu29/prelude/constant.ANONYMOUS.html index 674737d60..36daf1c18 100644 --- a/cu29/prelude/constant.ANONYMOUS.html +++ b/cu29/prelude/constant.ANONYMOUS.html @@ -1 +1 @@ -ANONYMOUS in cu29::prelude - Rust
cu29::prelude

Constant ANONYMOUS

pub const ANONYMOUS: u32 = 0; // 0u32
\ No newline at end of file +ANONYMOUS in cu29::prelude - Rust
cu29::prelude

Constant ANONYMOUS

pub const ANONYMOUS: u32 = 0; // 0u32
\ No newline at end of file diff --git a/cu29/prelude/constant.MAX_LOG_PARAMS_ON_STACK.html b/cu29/prelude/constant.MAX_LOG_PARAMS_ON_STACK.html index d1d1cabb5..aa7751b20 100644 --- a/cu29/prelude/constant.MAX_LOG_PARAMS_ON_STACK.html +++ b/cu29/prelude/constant.MAX_LOG_PARAMS_ON_STACK.html @@ -1 +1 @@ -MAX_LOG_PARAMS_ON_STACK in cu29::prelude - Rust
cu29::prelude

Constant MAX_LOG_PARAMS_ON_STACK

pub const MAX_LOG_PARAMS_ON_STACK: usize = 10; // 10usize
\ No newline at end of file +MAX_LOG_PARAMS_ON_STACK in cu29::prelude - Rust
cu29::prelude

Constant MAX_LOG_PARAMS_ON_STACK

pub const MAX_LOG_PARAMS_ON_STACK: usize = 10; // 10usize
\ No newline at end of file diff --git a/cu29/prelude/copperlist/enum.CopperListState.html b/cu29/prelude/copperlist/enum.CopperListState.html index 8e24aae06..ef58c9218 100644 --- a/cu29/prelude/copperlist/enum.CopperListState.html +++ b/cu29/prelude/copperlist/enum.CopperListState.html @@ -1,4 +1,4 @@ -CopperListState in cu29::prelude::copperlist - Rust
cu29::prelude::copperlist

Enum CopperListState

Source
pub enum CopperListState {
+CopperListState in cu29::prelude::copperlist - Rust
cu29::prelude::copperlist

Enum CopperListState

Source
pub enum CopperListState {
     Free,
     Initialized,
     Processing,
@@ -9,16 +9,16 @@
     __D: BorrowDecoder<'__de>,
Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for CopperListState

Source§

fn clone(&self) -> CopperListState

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 Debug for CopperListState

Source§

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

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

impl Decode for CopperListState

Source§

fn decode<__D>(decoder: &mut __D) -> Result<CopperListState, DecodeError>
where __D: Decoder,

Attempt to decode this type with the given Decode.
Source§

impl Display for CopperListState

Source§

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

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

impl Encode for CopperListState

Source§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where __E: Encoder,

Encode a given type.
Source§

impl PartialEq for CopperListState

Source§

fn eq(&self, other: &CopperListState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for CopperListState

Source§

fn serialize<__S>( +and should not be overridden without very good reason.

Source§

impl Serialize for CopperListState

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 Copy for CopperListState

Source§

impl StructuralPartialEq for CopperListState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for CopperListState

Source§

impl StructuralPartialEq for CopperListState

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 diff --git a/cu29/prelude/copperlist/index.html b/cu29/prelude/copperlist/index.html index 23a9d9f45..0967bcc17 100644 --- a/cu29/prelude/copperlist/index.html +++ b/cu29/prelude/copperlist/index.html @@ -1,4 +1,4 @@ -cu29::prelude::copperlist - Rust

cu29::prelude

Module copperlist

Source
Expand description

CopperList is the main data structure used by Copper to communicate between tasks. +cu29::prelude::copperlist - Rust

cu29::prelude

Module copperlist

Source
Expand description

CopperList is the main data structure used by Copper to communicate between tasks. It is a queue that can be used to store preallocated messages between tasks in memory order.

Structs§

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -35,6 +35,6 @@ 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<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.
§

impl<T> CopperListTuple for T
where T: Encode + Decode + Debug,

Source§

impl<T> CuMsgPayload for T
where - T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/cutask/trait.CuMsgPack.html b/cu29/prelude/cutask/trait.CuMsgPack.html index 0e9e22f8c..a9db10db9 100644 --- a/cu29/prelude/cutask/trait.CuMsgPack.html +++ b/cu29/prelude/cutask/trait.CuMsgPack.html @@ -1,4 +1,4 @@ -CuMsgPack in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait CuMsgPack

Source
pub trait CuMsgPack<'cl> { }

Implementations on Foreign Types§

Source§

impl<'cl> CuMsgPack<'cl> for ()

Source§

impl<'cl, T1, T2> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>)
where +CuMsgPack in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait CuMsgPack

Source
pub trait CuMsgPack<'cl> { }

Implementations on Foreign Types§

Source§

impl<'cl> CuMsgPack<'cl> for ()

Source§

impl<'cl, T1, T2> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>)
where T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl,

Source§

impl<'cl, T1, T2, T3> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>, &'cl CuMsg<T3>)
where T1: CuMsgPayload + 'cl, diff --git a/cu29/prelude/cutask/trait.CuMsgPayload.html b/cu29/prelude/cutask/trait.CuMsgPayload.html index e497282ea..e9e803353 100644 --- a/cu29/prelude/cutask/trait.CuMsgPayload.html +++ b/cu29/prelude/cutask/trait.CuMsgPayload.html @@ -1,4 +1,4 @@ -CuMsgPayload in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait CuMsgPayload

Source
pub trait CuMsgPayload:
+CuMsgPayload in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait CuMsgPayload

Source
pub trait CuMsgPayload:
     Sized
     + Default
     + Debug
diff --git a/cu29/prelude/cutask/trait.CuSinkTask.html b/cu29/prelude/cutask/trait.CuSinkTask.html
index eb8dd95b6..e07b4befb 100644
--- a/cu29/prelude/cutask/trait.CuSinkTask.html
+++ b/cu29/prelude/cutask/trait.CuSinkTask.html
@@ -1,4 +1,4 @@
-CuSinkTask in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait CuSinkTask

Source
pub trait CuSinkTask<'cl>: Freezable {
+CuSinkTask in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait CuSinkTask

Source
pub trait CuSinkTask<'cl>: Freezable {
     type Input: CuMsgPack<'cl>;
 
     // Required methods
diff --git a/cu29/prelude/cutask/trait.CuSrcTask.html b/cu29/prelude/cutask/trait.CuSrcTask.html
index 246ed8f7b..791362739 100644
--- a/cu29/prelude/cutask/trait.CuSrcTask.html
+++ b/cu29/prelude/cutask/trait.CuSrcTask.html
@@ -1,4 +1,4 @@
-CuSrcTask in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait CuSrcTask

Source
pub trait CuSrcTask<'cl>: Freezable {
+CuSrcTask in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait CuSrcTask

Source
pub trait CuSrcTask<'cl>: Freezable {
     type Output: CuMsgPack<'cl>;
 
     // Required methods
diff --git a/cu29/prelude/cutask/trait.CuTask.html b/cu29/prelude/cutask/trait.CuTask.html
index 84df634ac..c0f746baa 100644
--- a/cu29/prelude/cutask/trait.CuTask.html
+++ b/cu29/prelude/cutask/trait.CuTask.html
@@ -1,4 +1,4 @@
-CuTask in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait CuTask

Source
pub trait CuTask<'cl>: Freezable {
+CuTask in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait CuTask

Source
pub trait CuTask<'cl>: Freezable {
     type Input: CuMsgPack<'cl>;
     type Output: CuMsgPack<'cl>;
 
diff --git a/cu29/prelude/cutask/trait.Freezable.html b/cu29/prelude/cutask/trait.Freezable.html
index 5db00b8c9..27b1c9298 100644
--- a/cu29/prelude/cutask/trait.Freezable.html
+++ b/cu29/prelude/cutask/trait.Freezable.html
@@ -1,4 +1,4 @@
-Freezable in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait Freezable

Source
pub trait Freezable {
+Freezable in cu29::prelude::cutask - Rust
cu29::prelude::cutask

Trait Freezable

Source
pub trait Freezable {
     // Provided methods
     fn freeze<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
        where E: Encoder { ... }
diff --git a/cu29/prelude/enum.AllocatedSection.html b/cu29/prelude/enum.AllocatedSection.html
index ec9fe2e7e..3193f9d51 100644
--- a/cu29/prelude/enum.AllocatedSection.html
+++ b/cu29/prelude/enum.AllocatedSection.html
@@ -1,4 +1,4 @@
-AllocatedSection in cu29::prelude - Rust
cu29::prelude

Enum AllocatedSection

pub enum AllocatedSection {
+AllocatedSection in cu29::prelude - Rust
cu29::prelude

Enum AllocatedSection

pub enum AllocatedSection {
     NoMoreSpace,
     Section(SectionHandle),
 }

Variants§

§

NoMoreSpace

§

Section(SectionHandle)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where diff --git a/cu29/prelude/enum.CopperListState.html b/cu29/prelude/enum.CopperListState.html index 65b370ee9..82d2befca 100644 --- a/cu29/prelude/enum.CopperListState.html +++ b/cu29/prelude/enum.CopperListState.html @@ -1,4 +1,4 @@ -CopperListState in cu29::prelude - Rust
cu29::prelude

Enum CopperListState

Source
pub enum CopperListState {
+CopperListState in cu29::prelude - Rust
cu29::prelude

Enum CopperListState

Source
pub enum CopperListState {
     Free,
     Initialized,
     Processing,
@@ -9,16 +9,16 @@
     __D: BorrowDecoder<'__de>,

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for CopperListState

Source§

fn clone(&self) -> CopperListState

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 Debug for CopperListState

Source§

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

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

impl Decode for CopperListState

Source§

fn decode<__D>(decoder: &mut __D) -> Result<CopperListState, DecodeError>
where __D: Decoder,

Attempt to decode this type with the given Decode.
Source§

impl Display for CopperListState

Source§

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

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

impl Encode for CopperListState

Source§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where __E: Encoder,

Encode a given type.
Source§

impl PartialEq for CopperListState

Source§

fn eq(&self, other: &CopperListState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for CopperListState

Source§

fn serialize<__S>( +and should not be overridden without very good reason.

Source§

impl Serialize for CopperListState

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 Copy for CopperListState

Source§

impl StructuralPartialEq for CopperListState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for CopperListState

Source§

impl StructuralPartialEq for CopperListState

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 diff --git a/cu29/prelude/enum.CuExecutionUnit.html b/cu29/prelude/enum.CuExecutionUnit.html index 6a5b8a064..04f0bb2a8 100644 --- a/cu29/prelude/enum.CuExecutionUnit.html +++ b/cu29/prelude/enum.CuExecutionUnit.html @@ -1,4 +1,4 @@ -CuExecutionUnit in cu29::prelude - Rust

cu29::prelude

Enum CuExecutionUnit

Source
pub enum CuExecutionUnit {
+CuExecutionUnit in cu29::prelude - Rust
cu29::prelude

Enum CuExecutionUnit

Source
pub enum CuExecutionUnit {
     Step(CuExecutionStep),
     Loop(CuExecutionLoop),
 }
Expand description

This structure represents a step in the execution plan.

diff --git a/cu29/prelude/enum.CuTaskCallbackState.html b/cu29/prelude/enum.CuTaskCallbackState.html index 9e3344118..5274d3d68 100644 --- a/cu29/prelude/enum.CuTaskCallbackState.html +++ b/cu29/prelude/enum.CuTaskCallbackState.html @@ -1,4 +1,4 @@ -CuTaskCallbackState in cu29::prelude - Rust
cu29::prelude

Enum CuTaskCallbackState

Source
pub enum CuTaskCallbackState<'cl, I, O>
where +CuTaskCallbackState in cu29::prelude - Rust
cu29::prelude

Enum CuTaskCallbackState

Source
pub enum CuTaskCallbackState<'cl, I, O>
where I: CuMsgPack<'cl>, O: CuMsgPack<'cl>,
{ New(Option<ComponentConfig>), diff --git a/cu29/prelude/enum.CuTaskState.html b/cu29/prelude/enum.CuTaskState.html index 14f92aca9..fb4ee6f20 100644 --- a/cu29/prelude/enum.CuTaskState.html +++ b/cu29/prelude/enum.CuTaskState.html @@ -1,28 +1,28 @@ -CuTaskState in cu29::prelude - Rust
cu29::prelude

Enum CuTaskState

Source
pub enum CuTaskState {
+CuTaskState in cu29::prelude - Rust
cu29::prelude

Enum CuTaskState

Source
pub enum CuTaskState {
     Start,
     Preprocess,
     Process,
     Postprocess,
     Stop,
 }
Expand description

The state of a task.

-

Variants§

§

Start

§

Preprocess

§

Process

§

Postprocess

§

Stop

Trait Implementations§

Source§

impl Debug for CuTaskState

Source§

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

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

impl<'de> Deserialize<'de> for CuTaskState

Variants§

§

Start

§

Preprocess

§

Process

§

Postprocess

§

Stop

Trait Implementations§

Source§

impl Debug for CuTaskState

Source§

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

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

impl<'de> Deserialize<'de> for CuTaskState

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<CuTaskState, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for CuTaskState

Source§

fn serialize<__S>( +) -> Result<CuTaskState, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for CuTaskState

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/enum.CuTaskType.html b/cu29/prelude/enum.CuTaskType.html index 6dee88d09..ad7299013 100644 --- a/cu29/prelude/enum.CuTaskType.html +++ b/cu29/prelude/enum.CuTaskType.html @@ -1,4 +1,4 @@ -CuTaskType in cu29::prelude - Rust
cu29::prelude

Enum CuTaskType

Source
pub enum CuTaskType {
+CuTaskType in cu29::prelude - Rust
cu29::prelude

Enum CuTaskType

Source
pub enum CuTaskType {
     Source,
     Regular,
     Sink,
diff --git a/cu29/prelude/enum.Decision.html b/cu29/prelude/enum.Decision.html
index 8611b10ef..ece3deff3 100644
--- a/cu29/prelude/enum.Decision.html
+++ b/cu29/prelude/enum.Decision.html
@@ -1,4 +1,4 @@
-Decision in cu29::prelude - Rust
cu29::prelude

Enum Decision

Source
pub enum Decision {
+Decision in cu29::prelude - Rust
cu29::prelude

Enum Decision

Source
pub enum Decision {
     Abort,
     Ignore,
     Shutdown,
diff --git a/cu29/prelude/enum.SimOverride.html b/cu29/prelude/enum.SimOverride.html
index 267e257b9..faf63ed75 100644
--- a/cu29/prelude/enum.SimOverride.html
+++ b/cu29/prelude/enum.SimOverride.html
@@ -1,4 +1,4 @@
-SimOverride in cu29::prelude - Rust
cu29::prelude

Enum SimOverride

Source
pub enum SimOverride {
+SimOverride in cu29::prelude - Rust
cu29::prelude

Enum SimOverride

Source
pub enum SimOverride {
     ExecutedBySim,
     ExecuteByRuntime,
     Errored(String),
diff --git a/cu29/prelude/enum.Tov.html b/cu29/prelude/enum.Tov.html
index f29168bda..4752d5dfa 100644
--- a/cu29/prelude/enum.Tov.html
+++ b/cu29/prelude/enum.Tov.html
@@ -1,4 +1,4 @@
-Tov in cu29::prelude - Rust
cu29::prelude

Enum Tov

pub enum Tov {
+Tov in cu29::prelude - Rust
cu29::prelude

Enum Tov

pub enum Tov {
     None,
     Time(CuDuration),
     Range(CuTimeRange),
@@ -6,21 +6,21 @@
 For example a sub scan for a lidar, a set of images etc… can have a range of validity.

Variants§

Trait Implementations§

§

impl<'__de> BorrowDecode<'__de> for Tov

§

fn borrow_decode<__D>(decoder: &mut __D) -> Result<Tov, DecodeError>
where __D: BorrowDecoder<'__de>,

Attempt to decode this type with the given BorrowDecode.
§

impl Clone for Tov

§

fn clone(&self) -> Tov

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
§

impl Debug for Tov

§

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

Formats the value using the given formatter. Read more
§

impl Decode for Tov

§

fn decode<__D>(decoder: &mut __D) -> Result<Tov, DecodeError>
where - __D: Decoder,

Attempt to decode this type with the given Decode.
§

impl Default for Tov

§

fn default() -> Tov

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

impl<'de> Deserialize<'de> for Tov

§

fn deserialize<__D>( + __D: Decoder,

Attempt to decode this type with the given Decode.
§

impl Default for Tov

§

fn default() -> Tov

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

impl<'de> Deserialize<'de> for Tov

§

fn deserialize<__D>( __deserializer: __D, -) -> Result<Tov, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Encode for Tov

§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where +) -> Result<Tov, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Encode for Tov

§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where __E: Encoder,

Encode a given type.
§

impl From<CuDuration> for Tov

§

fn from(duration: CuDuration) -> Tov

Converts to this type from the input type.
§

impl From<Option<CuDuration>> for Tov

§

fn from(duration: Option<CuDuration>) -> Tov

Converts to this type from the input type.
§

impl PartialEq for Tov

§

fn eq(&self, other: &Tov) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
§

impl Serialize for Tov

§

fn serialize<__S>( +and should not be overridden without very good reason.

§

impl Serialize for Tov

§

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
§

impl StructuralPartialEq for Tov

Auto Trait Implementations§

§

impl Freeze for Tov

§

impl RefUnwindSafe for Tov

§

impl Send for Tov

§

impl Sync for Tov

§

impl Unpin for Tov

§

impl UnwindSafe for Tov

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Tov

Auto Trait Implementations§

§

impl Freeze for Tov

§

impl RefUnwindSafe for Tov

§

impl Send for Tov

§

impl Sync for Tov

§

impl Unpin for Tov

§

impl UnwindSafe for Tov

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -30,6 +30,6 @@ 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<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.
§

impl<T> CopperListTuple for T
where T: Encode + Decode + Debug,

Source§

impl<T> CuMsgPayload for T
where - T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/enum.UnifiedLogType.html b/cu29/prelude/enum.UnifiedLogType.html index d23a804a1..383c70d2c 100644 --- a/cu29/prelude/enum.UnifiedLogType.html +++ b/cu29/prelude/enum.UnifiedLogType.html @@ -1,4 +1,4 @@ -UnifiedLogType in cu29::prelude - Rust
cu29::prelude

Enum UnifiedLogType

pub enum UnifiedLogType {
+UnifiedLogType in cu29::prelude - Rust
cu29::prelude

Enum UnifiedLogType

pub enum UnifiedLogType {
     Empty,
     StructuredLogLine,
     CopperList,
diff --git a/cu29/prelude/enum.UnifiedLogger.html b/cu29/prelude/enum.UnifiedLogger.html
index 2124b7001..4dd5e7d0b 100644
--- a/cu29/prelude/enum.UnifiedLogger.html
+++ b/cu29/prelude/enum.UnifiedLogger.html
@@ -1,4 +1,4 @@
-UnifiedLogger in cu29::prelude - Rust
cu29::prelude

Enum UnifiedLogger

pub enum UnifiedLogger {
+UnifiedLogger in cu29::prelude - Rust
cu29::prelude

Enum UnifiedLogger

pub enum UnifiedLogger {
     Read(UnifiedLoggerRead),
     Write(UnifiedLoggerWrite),
 }
Expand description

Holder of the read or write side of the datalogger.

diff --git a/cu29/prelude/enum.Value.html b/cu29/prelude/enum.Value.html index 6d0c6ea80..99f1817a1 100644 --- a/cu29/prelude/enum.Value.html +++ b/cu29/prelude/enum.Value.html @@ -1,4 +1,4 @@ -Value in cu29::prelude - Rust
cu29::prelude

Enum Value

Source
pub enum Value {
+Value in cu29::prelude - Rust
cu29::prelude

Enum Value

Source
pub enum Value {
 
Show 20 variants Bool(bool), U8(u8), U16(u16), @@ -20,184 +20,184 @@ Bytes(Vec<u8>), CuTime(CuDuration),
}

Variants§

§

Bool(bool)

§

U8(u8)

§

U16(u16)

§

U32(u32)

§

U64(u64)

§

I8(i8)

§

I16(i16)

§

I32(i32)

§

I64(i64)

§

F32(f32)

§

F64(f64)

§

Char(char)

§

String(String)

§

Unit

§

Option(Option<Box<Value>>)

§

Newtype(Box<Value>)

§

Seq(Vec<Value>)

§

Map(BTreeMap<Value, Value>)

§

Bytes(Vec<u8>)

§

CuTime(CuDuration)

Implementations§

Source§

impl Value

Source

pub fn deserialize_into<'de, T>(self) -> Result<T, DeserializerError>
where - T: Deserialize<'de>,

Trait Implementations§

Source§

impl<'de> BorrowDecode<'de> for Value

Source§

fn borrow_decode<D>(decoder: &mut D) -> Result<Value, DecodeError>
where + T: Deserialize<'de>,

Trait Implementations§

Source§

impl<'de> BorrowDecode<'de> for Value

Source§

fn borrow_decode<D>(decoder: &mut D) -> Result<Value, DecodeError>
where D: BorrowDecoder<'de>,

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

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 Debug for Value

Source§

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

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

impl Decode for Value

Source§

fn decode<D>(decoder: &mut D) -> Result<Value, DecodeError>
where - D: Decoder,

Attempt to decode this type with the given Decode.
Source§

impl<'de> Deserialize<'de> for Value

Source§

fn deserialize<D>(d: D) -> Result<Value, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

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

impl<'de> Deserializer<'de> for Value

Source§

type Error = DeserializerError

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

fn deserialize_any<V>( + D: Decoder,

Attempt to decode this type with the given Decode.
Source§

impl<'de> Deserialize<'de> for Value

Source§

fn deserialize<D>(d: D) -> Result<Value, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,

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

impl<'de> Deserializer<'de> for Value

Source§

type Error = DeserializerError

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, <Value as Deserializer<'de>>::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_option<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_option<V>( self, visitor: V, -) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

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

fn deserialize_enum<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::Error>
where + V: Visitor<'de>,

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

fn deserialize_enum<V>( self, name: &'static str, variants: &'static [&'static str], visitor: V, -) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_newtype_struct<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_newtype_struct<V>( self, name: &'static str, visitor: V, -) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

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

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

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

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

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

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

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

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

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

fn deserialize_u16<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

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

fn deserialize_u32<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

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

fn deserialize_u64<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

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

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

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

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

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

fn deserialize_i16<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

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

fn deserialize_i32<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

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

fn deserialize_i64<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

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

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

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

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

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

fn deserialize_f64<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

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

fn deserialize_char<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

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

fn deserialize_str<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and does +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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>( +Deserializer. Read more

Source§

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

Hint that the Deserialize type is expecting a string value and would +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_unit<V>( +Deserializer. Read more

Source§

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

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

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

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

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

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

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

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

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

Hint that the Deserialize type is expecting a byte array and does not +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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>( +Deserializer. Read more

Source§

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

Hint that the Deserialize type is expecting a byte array and would +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_map<V>( +Deserializer. Read more

Source§

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

Hint that the Deserialize type is expecting a map of key-value pairs.
Source§

fn deserialize_unit_struct<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a map of key-value pairs.
Source§

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

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

fn deserialize_tuple_struct<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::Error>
where + V: Visitor<'de>,

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

fn deserialize_tuple_struct<V>( self, name: &'static str, len: usize, visitor: V, -) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_struct<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_struct<V>( self, name: &'static str, fields: &'static [&'static str], visitor: V, -) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a struct with a particular -name and fields.
Source§

fn deserialize_tuple<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a struct with a particular +name and fields.
Source§

fn deserialize_tuple<V>( self, len: usize, visitor: V, -) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_ignored_any<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_ignored_any<V>( self, visitor: V, -) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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 deserialize_identifier<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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 deserialize_identifier<V>( self, visitor: V, -) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_i128<V>( +) -> Result<<V as Visitor<'de>>::Value, <Value as Deserializer<'de>>::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_i128<V>( self, visitor: V, -) -> Result<<V as Visitor<'de>>::Value, Self::Error>
where - V: Visitor<'de>,

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

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

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

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

Hint that the Deserialize type is expecting an u128 value. 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 Display for Value

Source§

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

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

impl Encode for Value

Source§

fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
where +) -> Result<<V as Visitor<'de>>::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. 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 Display for Value

Source§

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

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

impl Encode for Value

Source§

fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
where E: Encoder,

Encode a given type.
Source§

impl Hash for Value

Source§

fn hash<H>(&self, hasher: &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
Source§

impl<'de> IntoDeserializer<'de, DeserializerError> for Value

Source§

type Deserializer = Value

The type of the deserializer being converted into.
Source§

fn into_deserializer(self) -> Value

Convert this value into a deserializer.
Source§

impl Ord for Value

Source§

fn cmp(&self, rhs: &Value) -> 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,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'de> IntoDeserializer<'de, DeserializerError> for Value

Source§

type Deserializer = Value

The type of the deserializer being converted into.
Source§

fn into_deserializer(self) -> Value

Convert this value into a deserializer.
Source§

impl Ord for Value

Source§

fn cmp(&self, rhs: &Value) -> 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 PartialEq for Value

Source§

fn eq(&self, rhs: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Value

Source§

fn partial_cmp(&self, rhs: &Value) -> Option<Ordering>

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

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Serialize for Value

Source§

fn serialize<S>( +the >= operator. Read more

Source§

impl Serialize for Value

Source§

fn serialize<S>( &self, s: 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 Eq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where + S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

§

impl<Q, K> Equivalent<K> for Q
where + T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, @@ -212,6 +212,6 @@ T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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.
§

impl<T> CopperListTuple for T
where - T: Encode + Decode + Debug,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Encode + Decode + Debug,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/fn.compute_runtime_plan.html b/cu29/prelude/fn.compute_runtime_plan.html index 159d7e234..fbd736549 100644 --- a/cu29/prelude/fn.compute_runtime_plan.html +++ b/cu29/prelude/fn.compute_runtime_plan.html @@ -1,4 +1,4 @@ -compute_runtime_plan in cu29::prelude - Rust
cu29::prelude

Function compute_runtime_plan

Source
pub fn compute_runtime_plan(
+compute_runtime_plan in cu29::prelude - Rust
cu29::prelude

Function compute_runtime_plan

Source
pub fn compute_runtime_plan(
     config: &CuConfig,
 ) -> Result<CuExecutionLoop, CuError>
Expand description

This is the main heuristics to compute an execution plan at compilation time. TODO: Make that heuristic plugable.

diff --git a/cu29/prelude/fn.default_log_index_dir.html b/cu29/prelude/fn.default_log_index_dir.html index 0458b6706..953eb5f72 100644 --- a/cu29/prelude/fn.default_log_index_dir.html +++ b/cu29/prelude/fn.default_log_index_dir.html @@ -1,2 +1,2 @@ -default_log_index_dir in cu29::prelude - Rust
cu29::prelude

Function default_log_index_dir

pub fn default_log_index_dir() -> PathBuf
Expand description

Convenience function to returns the default path for the log index directory.

+default_log_index_dir in cu29::prelude - Rust
cu29::prelude

Function default_log_index_dir

pub fn default_log_index_dir() -> PathBuf
Expand description

Convenience function to returns the default path for the log index directory.

\ No newline at end of file diff --git a/cu29/prelude/fn.find_task_type_for_id.html b/cu29/prelude/fn.find_task_type_for_id.html index 794f36527..6fd75ad80 100644 --- a/cu29/prelude/fn.find_task_type_for_id.html +++ b/cu29/prelude/fn.find_task_type_for_id.html @@ -1,4 +1,4 @@ -find_task_type_for_id in cu29::prelude - Rust
cu29::prelude

Function find_task_type_for_id

Source
pub fn find_task_type_for_id(
+find_task_type_for_id in cu29::prelude - Rust
cu29::prelude

Function find_task_type_for_id

Source
pub fn find_task_type_for_id(
     graph: &StableGraph<Node, Cnx>,
     node_id: u32,
 ) -> CuTaskType
\ No newline at end of file diff --git a/cu29/prelude/fn.format_logline.html b/cu29/prelude/fn.format_logline.html index 4ff1c7750..54a7af018 100644 --- a/cu29/prelude/fn.format_logline.html +++ b/cu29/prelude/fn.format_logline.html @@ -1,4 +1,4 @@ -format_logline in cu29::prelude - Rust
cu29::prelude

Function format_logline

pub fn format_logline(
+format_logline in cu29::prelude - Rust
cu29::prelude

Function format_logline

pub fn format_logline(
     time: CuDuration,
     format_str: &str,
     params: &[String],
diff --git a/cu29/prelude/fn.log.html b/cu29/prelude/fn.log.html
index e599c4f66..9ca326182 100644
--- a/cu29/prelude/fn.log.html
+++ b/cu29/prelude/fn.log.html
@@ -1,3 +1,3 @@
-log in cu29::prelude - Rust
cu29::prelude

Function log

pub fn log(entry: &mut CuLogEntry) -> Result<(), CuError>
Expand description

Function called from generated code to log data. +log in cu29::prelude - Rust

cu29::prelude

Function log

pub fn log(entry: &mut CuLogEntry) -> Result<(), CuError>
Expand description

Function called from generated code to log data. It moves entry by design, it will be absorbed in the queue.

\ No newline at end of file diff --git a/cu29/prelude/fn.log_debug_mode.html b/cu29/prelude/fn.log_debug_mode.html index 094fe2dbd..d0ee06de6 100644 --- a/cu29/prelude/fn.log_debug_mode.html +++ b/cu29/prelude/fn.log_debug_mode.html @@ -1,4 +1,4 @@ -log_debug_mode in cu29::prelude - Rust
cu29::prelude

Function log_debug_mode

pub fn log_debug_mode(
+log_debug_mode in cu29::prelude - Rust
cu29::prelude

Function log_debug_mode

pub fn log_debug_mode(
     entry: &mut CuLogEntry,
     format_str: &str,
     param_names: &[&str],
diff --git a/cu29/prelude/fn.read_configuration.html b/cu29/prelude/fn.read_configuration.html
index 8f94bc84c..510b8e16c 100644
--- a/cu29/prelude/fn.read_configuration.html
+++ b/cu29/prelude/fn.read_configuration.html
@@ -1,2 +1,2 @@
-read_configuration in cu29::prelude - Rust
cu29::prelude

Function read_configuration

Source
pub fn read_configuration(config_filename: &str) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

+read_configuration in cu29::prelude - Rust
cu29::prelude

Function read_configuration

Source
pub fn read_configuration(config_filename: &str) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

\ No newline at end of file diff --git a/cu29/prelude/fn.read_configuration_str.html b/cu29/prelude/fn.read_configuration_str.html index 669a4d470..5553c67f9 100644 --- a/cu29/prelude/fn.read_configuration_str.html +++ b/cu29/prelude/fn.read_configuration_str.html @@ -1,4 +1,4 @@ -read_configuration_str in cu29::prelude - Rust
cu29::prelude

Function read_configuration_str

Source
pub fn read_configuration_str(
+read_configuration_str in cu29::prelude - Rust
cu29::prelude

Function read_configuration_str

Source
pub fn read_configuration_str(
     config_content: String,
 ) -> Result<CuConfig, CuError>
Expand description

Read a copper configuration from a file.

\ No newline at end of file diff --git a/cu29/prelude/fn.read_interned_strings.html b/cu29/prelude/fn.read_interned_strings.html index cebe4cbbb..8a504bb21 100644 --- a/cu29/prelude/fn.read_interned_strings.html +++ b/cu29/prelude/fn.read_interned_strings.html @@ -1,2 +1,2 @@ -read_interned_strings in cu29::prelude - Rust
cu29::prelude

Function read_interned_strings

pub fn read_interned_strings(index: &Path) -> Result<Vec<String>, CuError>
Expand description

Rebuild the interned string index in memory.

+read_interned_strings in cu29::prelude - Rust
cu29::prelude

Function read_interned_strings

pub fn read_interned_strings(index: &Path) -> Result<Vec<String>, CuError>
Expand description

Rebuild the interned string index in memory.

\ No newline at end of file diff --git a/cu29/prelude/fn.rebuild_logline.html b/cu29/prelude/fn.rebuild_logline.html index 78e245604..5c2d9b192 100644 --- a/cu29/prelude/fn.rebuild_logline.html +++ b/cu29/prelude/fn.rebuild_logline.html @@ -1,4 +1,4 @@ -rebuild_logline in cu29::prelude - Rust
cu29::prelude

Function rebuild_logline

pub fn rebuild_logline(
+rebuild_logline in cu29::prelude - Rust
cu29::prelude

Function rebuild_logline

pub fn rebuild_logline(
     all_interned_strings: &[String],
     entry: &CuLogEntry,
 ) -> Result<String, CuError>
Expand description

Rebuild a log line from the interned strings and the CuLogEntry. diff --git a/cu29/prelude/fn.stream_write.html b/cu29/prelude/fn.stream_write.html index b2015d1c9..e561d12c4 100644 --- a/cu29/prelude/fn.stream_write.html +++ b/cu29/prelude/fn.stream_write.html @@ -1,4 +1,4 @@ -stream_write in cu29::prelude - Rust

cu29::prelude

Function stream_write

pub fn stream_write<E>(
+stream_write in cu29::prelude - Rust
cu29::prelude

Function stream_write

pub fn stream_write<E>(
     logger: Arc<Mutex<UnifiedLoggerWrite>>,
     entry_type: UnifiedLogType,
     minimum_allocation_amount: usize,
diff --git a/cu29/prelude/fn.to_value.html b/cu29/prelude/fn.to_value.html
index fa8e61db2..dfc6ff9a0 100644
--- a/cu29/prelude/fn.to_value.html
+++ b/cu29/prelude/fn.to_value.html
@@ -1,2 +1,2 @@
-to_value in cu29::prelude - Rust
cu29::prelude

Function to_value

Source
pub fn to_value<T>(value: T) -> Result<Value, SerializerError>
where - T: Serialize,
\ No newline at end of file +to_value in cu29::prelude - Rust
cu29::prelude

Function to_value

Source
pub fn to_value<T>(value: T) -> Result<Value, SerializerError>
where + T: Serialize,
\ No newline at end of file diff --git a/cu29/prelude/index.html b/cu29/prelude/index.html index 953b55a1e..14ac82fd7 100644 --- a/cu29/prelude/index.html +++ b/cu29/prelude/index.html @@ -1,4 +1,4 @@ -cu29::prelude - Rust
cu29

Module prelude

Source

Modules§

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/monitoring/enum.Decision.html b/cu29/prelude/monitoring/enum.Decision.html index 4ae6aa613..ca5d9de19 100644 --- a/cu29/prelude/monitoring/enum.Decision.html +++ b/cu29/prelude/monitoring/enum.Decision.html @@ -1,4 +1,4 @@ -Decision in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Enum Decision

Source
pub enum Decision {
+Decision in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Enum Decision

Source
pub enum Decision {
     Abort,
     Ignore,
     Shutdown,
diff --git a/cu29/prelude/monitoring/index.html b/cu29/prelude/monitoring/index.html
index 4032c9519..23d4eee24 100644
--- a/cu29/prelude/monitoring/index.html
+++ b/cu29/prelude/monitoring/index.html
@@ -1,4 +1,4 @@
-cu29::prelude::monitoring - Rust
cu29::prelude

Module monitoring

Source
Expand description

Some basic internal monitoring tooling Copper uses to monitor itself and the tasks it is running.

+cu29::prelude::monitoring - Rust
cu29::prelude

Module monitoring

Source
Expand description

Some basic internal monitoring tooling Copper uses to monitor itself and the tasks it is running.

Structs§

  • A simple allocator that counts the number of bytes allocated and deallocated.
  • A Specialized statistics object for CuDuration. It will also keep track of the jitter between the values.
  • Accumulative stat object that can give your some real time statistics.
  • A do nothing monitor if no monitor is provided. This is basically defining the default behavior of Copper in case of error.
  • A simple struct that counts the number of bytes allocated and deallocated in a scope.

Enums§

Statics§

Traits§

  • Trait to implement a monitoring task.
\ No newline at end of file diff --git a/cu29/prelude/monitoring/static.GLOBAL.html b/cu29/prelude/monitoring/static.GLOBAL.html index dea9fe343..e4a9ccaac 100644 --- a/cu29/prelude/monitoring/static.GLOBAL.html +++ b/cu29/prelude/monitoring/static.GLOBAL.html @@ -1 +1 @@ -GLOBAL in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Static GLOBAL

Source
pub static GLOBAL: CountingAllocator
\ No newline at end of file +GLOBAL in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Static GLOBAL

Source
pub static GLOBAL: CountingAllocator
\ No newline at end of file diff --git a/cu29/prelude/monitoring/struct.CountingAllocator.html b/cu29/prelude/monitoring/struct.CountingAllocator.html index 298bdcd12..a22959ca2 100644 --- a/cu29/prelude/monitoring/struct.CountingAllocator.html +++ b/cu29/prelude/monitoring/struct.CountingAllocator.html @@ -1,4 +1,4 @@ -CountingAllocator in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Struct CountingAllocator

Source
pub struct CountingAllocator { /* private fields */ }
Expand description

A simple allocator that counts the number of bytes allocated and deallocated.

+CountingAllocator in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Struct CountingAllocator

Source
pub struct CountingAllocator { /* private fields */ }
Expand description

A simple allocator that counts the number of bytes allocated and deallocated.

Implementations§

Trait Implementations§

Source§

impl Default for CountingAllocator

Source§

fn default() -> CountingAllocator

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

impl GlobalAlloc for CountingAllocator

Source§

unsafe fn alloc(&self, layout: Layout) -> *mut u8

Allocates memory as described by the given layout. Read more
Source§

unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout)

Deallocates the block of memory at the given ptr pointer with the given layout. Read more
1.28.0 · Source§

unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8

Behaves like alloc, but also ensures that the contents are set to zero before being returned. Read more
1.28.0 · Source§

unsafe fn realloc( &self, diff --git a/cu29/prelude/monitoring/struct.CuDurationStatistics.html b/cu29/prelude/monitoring/struct.CuDurationStatistics.html index 5ef10c195..2eadca67d 100644 --- a/cu29/prelude/monitoring/struct.CuDurationStatistics.html +++ b/cu29/prelude/monitoring/struct.CuDurationStatistics.html @@ -1,4 +1,4 @@ -CuDurationStatistics in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Struct CuDurationStatistics

Source
pub struct CuDurationStatistics { /* private fields */ }
Expand description

A Specialized statistics object for CuDuration. +CuDurationStatistics in cu29::prelude::monitoring - Rust

cu29::prelude::monitoring

Struct CuDurationStatistics

Source
pub struct CuDurationStatistics { /* private fields */ }
Expand description

A Specialized statistics object for CuDuration. It will also keep track of the jitter between the values.

Implementations§

Source§

impl CuDurationStatistics

Source

pub fn new(max: CuDuration) -> CuDurationStatistics

Source

pub fn min(&self) -> CuDuration

Source

pub fn max(&self) -> CuDuration

Source

pub fn mean(&self) -> CuDuration

Source

pub fn percentile(&self, percentile: f64) -> CuDuration

Source

pub fn stddev(&self) -> CuDuration

Source

pub fn len(&self) -> u64

Source

pub fn is_empty(&self) -> bool

Source

pub fn jitter_min(&self) -> CuDuration

Source

pub fn jitter_max(&self) -> CuDuration

Source

pub fn jitter_mean(&self) -> CuDuration

Source

pub fn jitter_stddev(&self) -> CuDuration

Source

pub fn jitter_percentile(&self, percentile: f64) -> CuDuration

Source

pub fn record(&mut self, value: CuDuration)

Source

pub fn reset(&mut self)

Trait Implementations§

Source§

impl Clone for CuDurationStatistics

Source§

fn clone(&self) -> CuDurationStatistics

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 Debug for CuDurationStatistics

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29/prelude/monitoring/struct.LiveStatistics.html b/cu29/prelude/monitoring/struct.LiveStatistics.html index 621d518ff..dc845b14e 100644 --- a/cu29/prelude/monitoring/struct.LiveStatistics.html +++ b/cu29/prelude/monitoring/struct.LiveStatistics.html @@ -1,4 +1,4 @@ -LiveStatistics in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Struct LiveStatistics

Source
pub struct LiveStatistics { /* private fields */ }
Expand description

Accumulative stat object that can give your some real time statistics.

+LiveStatistics in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Struct LiveStatistics

Source
pub struct LiveStatistics { /* private fields */ }
Expand description

Accumulative stat object that can give your some real time statistics.

Implementations§

Source§

impl LiveStatistics

Source

pub fn new_unbounded() -> LiveStatistics

Source

pub fn new_with_max(max: u64) -> LiveStatistics

Source

pub fn min(&self) -> u64

Source

pub fn max(&self) -> u64

Source

pub fn mean(&self) -> f64

Source

pub fn percentile(&self, percentile: f64) -> u64

Source

pub fn record(&mut self, value: u64)

Adds a value to the statistics.

Source

pub fn len(&self) -> u64

Source

pub fn is_empty(&self) -> bool

Source

pub fn reset(&mut self)

Trait Implementations§

Source§

impl Clone for LiveStatistics

Source§

fn clone(&self) -> LiveStatistics

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 Debug for LiveStatistics

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29/prelude/monitoring/struct.NoMonitor.html b/cu29/prelude/monitoring/struct.NoMonitor.html index ae8e6c879..6f5c70ff9 100644 --- a/cu29/prelude/monitoring/struct.NoMonitor.html +++ b/cu29/prelude/monitoring/struct.NoMonitor.html @@ -1,4 +1,4 @@ -NoMonitor in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Struct NoMonitor

Source
pub struct NoMonitor {}
Expand description

A do nothing monitor if no monitor is provided. +NoMonitor in cu29::prelude::monitoring - Rust

cu29::prelude::monitoring

Struct NoMonitor

Source
pub struct NoMonitor {}
Expand description

A do nothing monitor if no monitor is provided. This is basically defining the default behavior of Copper in case of error.

Trait Implementations§

Source§

impl CuMonitor for NoMonitor

Source§

fn new( _config: &CuConfig, diff --git a/cu29/prelude/monitoring/struct.ScopedAllocCounter.html b/cu29/prelude/monitoring/struct.ScopedAllocCounter.html index ad9dcdf90..cd177bbc1 100644 --- a/cu29/prelude/monitoring/struct.ScopedAllocCounter.html +++ b/cu29/prelude/monitoring/struct.ScopedAllocCounter.html @@ -1,4 +1,4 @@ -ScopedAllocCounter in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Struct ScopedAllocCounter

Source
pub struct ScopedAllocCounter { /* private fields */ }
Expand description

A simple struct that counts the number of bytes allocated and deallocated in a scope.

+ScopedAllocCounter in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Struct ScopedAllocCounter

Source
pub struct ScopedAllocCounter { /* private fields */ }
Expand description

A simple struct that counts the number of bytes allocated and deallocated in a scope.

Implementations§

Trait Implementations§

Source§

impl Default for ScopedAllocCounter

Source§

fn default() -> ScopedAllocCounter

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

impl Drop for ScopedAllocCounter

Build a difference between the number of bytes allocated and deallocated in the scope at drop time.

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29/prelude/monitoring/trait.CuMonitor.html b/cu29/prelude/monitoring/trait.CuMonitor.html index fb1d0bf2e..77104b19d 100644 --- a/cu29/prelude/monitoring/trait.CuMonitor.html +++ b/cu29/prelude/monitoring/trait.CuMonitor.html @@ -1,4 +1,4 @@ -CuMonitor in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Trait CuMonitor

Source
pub trait CuMonitor: Sized {
+CuMonitor in cu29::prelude::monitoring - Rust
cu29::prelude::monitoring

Trait CuMonitor

Source
pub trait CuMonitor: Sized {
     // Required methods
     fn new(
         config: &CuConfig,
diff --git a/cu29/prelude/payload/index.html b/cu29/prelude/payload/index.html
index ef4c3a12a..77425db6d 100644
--- a/cu29/prelude/payload/index.html
+++ b/cu29/prelude/payload/index.html
@@ -1 +1 @@
-cu29::prelude::payload - Rust
cu29::prelude

Module payload

Source

Structs§

  • Copper friendly wrapper for a fixed size array.
\ No newline at end of file +cu29::prelude::payload - Rust
cu29::prelude

Module payload

Source

Structs§

  • Copper friendly wrapper for a fixed size array.
\ No newline at end of file diff --git a/cu29/prelude/payload/struct.CuArray.html b/cu29/prelude/payload/struct.CuArray.html index 2c9ba5738..5dafde360 100644 --- a/cu29/prelude/payload/struct.CuArray.html +++ b/cu29/prelude/payload/struct.CuArray.html @@ -1,4 +1,4 @@ -CuArray in cu29::prelude::payload - Rust
cu29::prelude::payload

Struct CuArray

Source
pub struct CuArray<T, const N: usize> { /* private fields */ }
Expand description

Copper friendly wrapper for a fixed size array.

+CuArray in cu29::prelude::payload - Rust
cu29::prelude::payload

Struct CuArray

Source
pub struct CuArray<T, const N: usize> { /* private fields */ }
Expand description

Copper friendly wrapper for a fixed size array.

Implementations§

Source§

impl<T, const N: usize> CuArray<T, N>

Source

pub fn new() -> CuArray<T, N>

Source

pub fn fill_from_iter<I>(&mut self, iter: I)
where I: IntoIterator<Item = T>,

Source

pub fn len(&self) -> usize

Source

pub fn as_slice(&self) -> &[T]

Source

pub fn capacity(&self) -> usize

Trait Implementations§

Source§

impl<T, const N: usize> Clone for CuArray<T, N>
where T: Clone,

Source§

fn clone(&self) -> CuArray<T, N>

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, const N: usize> Debug for CuArray<T, N>
where diff --git a/cu29/prelude/simulation/enum.CuTaskCallbackState.html b/cu29/prelude/simulation/enum.CuTaskCallbackState.html index 248ee06c0..df0c7137f 100644 --- a/cu29/prelude/simulation/enum.CuTaskCallbackState.html +++ b/cu29/prelude/simulation/enum.CuTaskCallbackState.html @@ -1,4 +1,4 @@ -CuTaskCallbackState in cu29::prelude::simulation - Rust
cu29::prelude::simulation

Enum CuTaskCallbackState

Source
pub enum CuTaskCallbackState<'cl, I, O>
where +CuTaskCallbackState in cu29::prelude::simulation - Rust
cu29::prelude::simulation

Enum CuTaskCallbackState

Source
pub enum CuTaskCallbackState<'cl, I, O>
where I: CuMsgPack<'cl>, O: CuMsgPack<'cl>,
{ New(Option<ComponentConfig>), diff --git a/cu29/prelude/simulation/enum.SimOverride.html b/cu29/prelude/simulation/enum.SimOverride.html index fd79afca5..e158d3756 100644 --- a/cu29/prelude/simulation/enum.SimOverride.html +++ b/cu29/prelude/simulation/enum.SimOverride.html @@ -1,4 +1,4 @@ -SimOverride in cu29::prelude::simulation - Rust
cu29::prelude::simulation

Enum SimOverride

Source
pub enum SimOverride {
+SimOverride in cu29::prelude::simulation - Rust
cu29::prelude::simulation

Enum SimOverride

Source
pub enum SimOverride {
     ExecutedBySim,
     ExecuteByRuntime,
     Errored(String),
diff --git a/cu29/prelude/simulation/index.html b/cu29/prelude/simulation/index.html
index 59c309408..4cf524b34 100644
--- a/cu29/prelude/simulation/index.html
+++ b/cu29/prelude/simulation/index.html
@@ -1,4 +1,4 @@
-cu29::prelude::simulation - Rust
cu29::prelude

Module simulation

Source
Expand description

§cu29::simulation Module

+cu29::prelude::simulation - Rust
cu29::prelude

Module simulation

Source
Expand description

§cu29::simulation Module

The cu29::simulation module provides an interface to simulate tasks in Copper-based systems. It offers structures, traits, and enums that enable hooking into the lifecycle of tasks, adapting their behavior, and integrating them with simulated hardware environments.

diff --git a/cu29/prelude/simulation/struct.CuSimSinkTask.html b/cu29/prelude/simulation/struct.CuSimSinkTask.html index f86022b2e..bfa32769e 100644 --- a/cu29/prelude/simulation/struct.CuSimSinkTask.html +++ b/cu29/prelude/simulation/struct.CuSimSinkTask.html @@ -1,4 +1,4 @@ -CuSimSinkTask in cu29::prelude::simulation - Rust
cu29::prelude::simulation

Struct CuSimSinkTask

Source
pub struct CuSimSinkTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a sink task for the simulations. +CuSimSinkTask in cu29::prelude::simulation - Rust

cu29::prelude::simulation

Struct CuSimSinkTask

Source
pub struct CuSimSinkTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a sink task for the simulations. It basically does nothing in place of a real driver so it won’t try to initialize any hardware.

Trait Implementations§

Source§

impl<'cl, T> CuSinkTask<'cl> for CuSimSinkTask<T>
where T: CuMsgPayload + 'cl,

Source§

type Input = &'cl CuMsg<T>

Source§

fn new(_config: Option<&ComponentConfig>) -> Result<CuSimSinkTask<T>, CuError>
where diff --git a/cu29/prelude/simulation/struct.CuSimSrcTask.html b/cu29/prelude/simulation/struct.CuSimSrcTask.html index 7ec6b90ae..921dbc55d 100644 --- a/cu29/prelude/simulation/struct.CuSimSrcTask.html +++ b/cu29/prelude/simulation/struct.CuSimSrcTask.html @@ -1,4 +1,4 @@ -CuSimSrcTask in cu29::prelude::simulation - Rust
cu29::prelude::simulation

Struct CuSimSrcTask

Source
pub struct CuSimSrcTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a source task for the simulations. +CuSimSrcTask in cu29::prelude::simulation - Rust

cu29::prelude::simulation

Struct CuSimSrcTask

Source
pub struct CuSimSrcTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a source task for the simulations. It basically does nothing in place of a real driver so it won’t try to initialize any hardware.

Trait Implementations§

Source§

impl<'cl, T> CuSrcTask<'cl> for CuSimSrcTask<T>
where T: CuMsgPayload + 'cl,

Source§

type Output = &'cl mut CuMsg<T>

Source§

fn new(_config: Option<&ComponentConfig>) -> Result<CuSimSrcTask<T>, CuError>
where diff --git a/cu29/prelude/static.GLOBAL.html b/cu29/prelude/static.GLOBAL.html index 71e283676..abb834258 100644 --- a/cu29/prelude/static.GLOBAL.html +++ b/cu29/prelude/static.GLOBAL.html @@ -1 +1 @@ -GLOBAL in cu29::prelude - Rust
cu29::prelude

Static GLOBAL

Source
pub static GLOBAL: CountingAllocator
\ No newline at end of file +GLOBAL in cu29::prelude - Rust
cu29::prelude

Static GLOBAL

Source
pub static GLOBAL: CountingAllocator
\ No newline at end of file diff --git a/cu29/prelude/struct.Cnx.html b/cu29/prelude/struct.Cnx.html index 3f7b30061..0f2f9bb2a 100644 --- a/cu29/prelude/struct.Cnx.html +++ b/cu29/prelude/struct.Cnx.html @@ -1,4 +1,4 @@ -Cnx in cu29::prelude - Rust
cu29::prelude

Struct Cnx

Source
pub struct Cnx {
+Cnx in cu29::prelude - Rust
cu29::prelude

Struct Cnx

Source
pub struct Cnx {
     pub msg: String,
     pub batch: Option<u32>,
     pub store: Option<bool>,
@@ -9,19 +9,19 @@
 If None, Copper will just send 1 message at a time.
 If Some(n), Copper will batch n messages before sending the buffer.

§store: Option<bool>

Tells Copper if it needs to log the messages.

-

Trait Implementations§

Source§

impl Clone for Cnx

Source§

fn clone(&self) -> Cnx

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 Debug for Cnx

Source§

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

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

impl<'de> Deserialize<'de> for Cnx

Trait Implementations§

Source§

impl Clone for Cnx

Source§

fn clone(&self) -> Cnx

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 Debug for Cnx

Source§

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

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

impl<'de> Deserialize<'de> for Cnx

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<Cnx, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for Cnx

Source§

fn serialize<__S>( +) -> Result<Cnx, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for Cnx

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

Auto Trait Implementations§

§

impl Freeze for Cnx

§

impl RefUnwindSafe for Cnx

§

impl Send for Cnx

§

impl Sync for Cnx

§

impl Unpin for Cnx

§

impl UnwindSafe for Cnx

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Cnx

§

impl RefUnwindSafe for Cnx

§

impl Send for Cnx

§

impl Sync for Cnx

§

impl Unpin for Cnx

§

impl UnwindSafe for Cnx

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -29,6 +29,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.ComponentConfig.html b/cu29/prelude/struct.ComponentConfig.html index 523729cf6..45513d814 100644 --- a/cu29/prelude/struct.ComponentConfig.html +++ b/cu29/prelude/struct.ComponentConfig.html @@ -1,21 +1,21 @@ -ComponentConfig in cu29::prelude - Rust
cu29::prelude

Struct ComponentConfig

Source
pub struct ComponentConfig(pub HashMap<String, Value>);
Expand description

This is the configuration of a component (like a task config or a monitoring config):w +ComponentConfig in cu29::prelude - Rust

cu29::prelude

Struct ComponentConfig

Source
pub struct ComponentConfig(pub HashMap<String, Value>);
Expand description

This is the configuration of a component (like a task config or a monitoring config):w It is a map of key-value pairs. It is given to the new method of the task implementation.

Tuple Fields§

§0: HashMap<String, Value>

Implementations§

Source§

impl ComponentConfig

Source

pub fn new() -> ComponentConfig

Source

pub fn get<T>(&self, key: &str) -> Option<T>
where T: From<Value>,

Source

pub fn set<T>(&mut self, key: &str, value: T)
where - T: Into<Value>,

Trait Implementations§

Source§

impl Clone for ComponentConfig

Source§

fn clone(&self) -> ComponentConfig

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 Debug for ComponentConfig

Source§

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

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

impl Default for ComponentConfig

Source§

fn default() -> ComponentConfig

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

impl<'de> Deserialize<'de> for ComponentConfig

Trait Implementations§

Source§

impl Clone for ComponentConfig

Source§

fn clone(&self) -> ComponentConfig

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 Debug for ComponentConfig

Source§

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

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

impl Default for ComponentConfig

Source§

fn default() -> ComponentConfig

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

impl<'de> Deserialize<'de> for ComponentConfig

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<ComponentConfig, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for ComponentConfig

Source§

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

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

impl Serialize for ComponentConfig

Source§

fn serialize<__S>( +) -> Result<ComponentConfig, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for ComponentConfig

Source§

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

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

impl Serialize for ComponentConfig

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -25,6 +25,6 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.CopperLiskMask.html b/cu29/prelude/struct.CopperLiskMask.html index 48faa0516..40efa0591 100644 --- a/cu29/prelude/struct.CopperLiskMask.html +++ b/cu29/prelude/struct.CopperLiskMask.html @@ -1,4 +1,4 @@ -CopperLiskMask in cu29::prelude - Rust
cu29::prelude

Struct CopperLiskMask

Source
pub struct CopperLiskMask { /* private fields */ }
Expand description

Not implemented yet. +CopperLiskMask in cu29::prelude - Rust

cu29::prelude

Struct CopperLiskMask

Source
pub struct CopperLiskMask { /* private fields */ }
Expand description

Not implemented yet. This mask will be used to for example filter out necessary regions of a copper list between remote systems.

Trait Implementations§

Source§

impl<'__de> BorrowDecode<'__de> for CopperLiskMask

Source§

fn borrow_decode<__D>(decoder: &mut __D) -> Result<CopperLiskMask, DecodeError>
where __D: BorrowDecoder<'__de>,

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for CopperLiskMask

Source§

fn clone(&self) -> CopperLiskMask

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 Debug for CopperLiskMask

Source§

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

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

impl Decode for CopperLiskMask

Source§

fn decode<__D>(decoder: &mut __D) -> Result<CopperLiskMask, DecodeError>
where diff --git a/cu29/prelude/struct.CopperList.html b/cu29/prelude/struct.CopperList.html index 9cebbb50a..a2d426b8b 100644 --- a/cu29/prelude/struct.CopperList.html +++ b/cu29/prelude/struct.CopperList.html @@ -1,4 +1,4 @@ -CopperList in cu29::prelude - Rust
cu29::prelude

Struct CopperList

Source
pub struct CopperList<P>
where +CopperList in cu29::prelude - Rust
cu29::prelude

Struct CopperList

Source
pub struct CopperList<P>
where P: CopperListTuple,
{ pub id: u32, pub msgs: P, diff --git a/cu29/prelude/struct.CountingAllocator.html b/cu29/prelude/struct.CountingAllocator.html index 572f1aba9..cddc7ba79 100644 --- a/cu29/prelude/struct.CountingAllocator.html +++ b/cu29/prelude/struct.CountingAllocator.html @@ -1,4 +1,4 @@ -CountingAllocator in cu29::prelude - Rust
cu29::prelude

Struct CountingAllocator

Source
pub struct CountingAllocator { /* private fields */ }
Expand description

A simple allocator that counts the number of bytes allocated and deallocated.

+CountingAllocator in cu29::prelude - Rust
cu29::prelude

Struct CountingAllocator

Source
pub struct CountingAllocator { /* private fields */ }
Expand description

A simple allocator that counts the number of bytes allocated and deallocated.

Implementations§

Trait Implementations§

Source§

impl Default for CountingAllocator

Source§

fn default() -> CountingAllocator

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

impl GlobalAlloc for CountingAllocator

Source§

unsafe fn alloc(&self, layout: Layout) -> *mut u8

Allocates memory as described by the given layout. Read more
Source§

unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout)

Deallocates the block of memory at the given ptr pointer with the given layout. Read more
1.28.0 · Source§

unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8

Behaves like alloc, but also ensures that the contents are set to zero before being returned. Read more
1.28.0 · Source§

unsafe fn realloc( &self, diff --git a/cu29/prelude/struct.CuArray.html b/cu29/prelude/struct.CuArray.html index 7fa1204e9..0e6fe2e42 100644 --- a/cu29/prelude/struct.CuArray.html +++ b/cu29/prelude/struct.CuArray.html @@ -1,4 +1,4 @@ -CuArray in cu29::prelude - Rust
cu29::prelude

Struct CuArray

Source
pub struct CuArray<T, const N: usize> { /* private fields */ }
Expand description

Copper friendly wrapper for a fixed size array.

+CuArray in cu29::prelude - Rust
cu29::prelude

Struct CuArray

Source
pub struct CuArray<T, const N: usize> { /* private fields */ }
Expand description

Copper friendly wrapper for a fixed size array.

Implementations§

Source§

impl<T, const N: usize> CuArray<T, N>

Source

pub fn new() -> CuArray<T, N>

Source

pub fn fill_from_iter<I>(&mut self, iter: I)
where I: IntoIterator<Item = T>,

Source

pub fn len(&self) -> usize

Source

pub fn as_slice(&self) -> &[T]

Source

pub fn capacity(&self) -> usize

Trait Implementations§

Source§

impl<T, const N: usize> Clone for CuArray<T, N>
where T: Clone,

Source§

fn clone(&self) -> CuArray<T, N>

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, const N: usize> Debug for CuArray<T, N>
where diff --git a/cu29/prelude/struct.CuCompactString.html b/cu29/prelude/struct.CuCompactString.html index bc6dbb4cb..935518f7f 100644 --- a/cu29/prelude/struct.CuCompactString.html +++ b/cu29/prelude/struct.CuCompactString.html @@ -1,20 +1,20 @@ -CuCompactString in cu29::prelude - Rust
cu29::prelude

Struct CuCompactString

Source
pub struct CuCompactString(pub CompactString);

Tuple Fields§

§0: CompactString

Trait Implementations§

Source§

impl<'de> BorrowDecode<'de> for CuCompactString

Source§

fn borrow_decode<D>(decoder: &mut D) -> Result<CuCompactString, DecodeError>
where +CuCompactString in cu29::prelude - Rust
cu29::prelude

Struct CuCompactString

Source
pub struct CuCompactString(pub CompactString);

Tuple Fields§

§0: CompactString

Trait Implementations§

Source§

impl<'de> BorrowDecode<'de> for CuCompactString

Source§

fn borrow_decode<D>(decoder: &mut D) -> Result<CuCompactString, DecodeError>
where D: BorrowDecoder<'de>,

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for CuCompactString

Source§

fn clone(&self) -> CuCompactString

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 Debug for CuCompactString

Source§

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

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

impl Decode for CuCompactString

Source§

fn decode<D>(decoder: &mut D) -> Result<CuCompactString, DecodeError>
where - D: Decoder,

Attempt to decode this type with the given Decode.
Source§

impl Default for CuCompactString

Source§

fn default() -> CuCompactString

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

impl<'de> Deserialize<'de> for CuCompactString

Attempt to decode this type with the given Decode.
Source§

impl Default for CuCompactString

Source§

fn default() -> CuCompactString

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

impl<'de> Deserialize<'de> for CuCompactString

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<CuCompactString, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Encode for CuCompactString

Source§

fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
where +) -> Result<CuCompactString, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Encode for CuCompactString

Source§

fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
where E: Encoder,

Encode a given type.
Source§

impl PartialEq for CuCompactString

Source§

fn eq(&self, other: &CuCompactString) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for CuCompactString

Source§

fn serialize<__S>( +and should not be overridden without very good reason.

Source§

impl Serialize for CuCompactString

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 Eq for CuCompactString

Source§

impl StructuralPartialEq for CuCompactString

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for CuCompactString

Source§

impl StructuralPartialEq for CuCompactString

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

§

impl<Q, K> Equivalent<K> for Q
where + T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, @@ -28,6 +28,6 @@ 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<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.
§

impl<T> CopperListTuple for T
where T: Encode + Decode + Debug,

Source§

impl<T> CuMsgPayload for T
where - T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.CuConfig.html b/cu29/prelude/struct.CuConfig.html index f5ced4f66..768ec41dd 100644 --- a/cu29/prelude/struct.CuConfig.html +++ b/cu29/prelude/struct.CuConfig.html @@ -1,4 +1,4 @@ -CuConfig in cu29::prelude - Rust
cu29::prelude

Struct CuConfig

Source
pub struct CuConfig {
+CuConfig in cu29::prelude - Rust
cu29::prelude

Struct CuConfig

Source
pub struct CuConfig {
     pub graph: StableGraph<Node, Cnx>,
     /* private fields */
 }
Expand description

CuConfig is the programmatic representation of the configuration graph. @@ -26,21 +26,21 @@

Source

pub fn connect(&mut self, source: u32, target: u32, msg_type: &str)

Adds an edge between two nodes/tasks in the configuration graph. msg_type is the type of message exchanged between the two nodes/tasks.

Source

pub fn serialize_ron(&self) -> String

Source

pub fn deserialize_ron(ron: &str) -> CuConfig

Source

pub fn render(&self, output: &mut dyn Write)

Render the configuration graph in the dot format.

-
Source

pub fn get_all_instances_configs(&self) -> Vec<Option<&ComponentConfig>>

Source

pub fn get_monitor_config(&self) -> Option<&MonitorConfig>

Trait Implementations§

Source§

impl Clone for CuConfig

Source§

fn clone(&self) -> CuConfig

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 Debug for CuConfig

Source§

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

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

impl Default for CuConfig

Source§

fn default() -> CuConfig

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

impl<'de> Deserialize<'de> for CuConfig

Source

pub fn get_all_instances_configs(&self) -> Vec<Option<&ComponentConfig>>

Source

pub fn get_monitor_config(&self) -> Option<&MonitorConfig>

Trait Implementations§

Source§

impl Clone for CuConfig

Source§

fn clone(&self) -> CuConfig

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 Debug for CuConfig

Source§

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

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

impl Default for CuConfig

Source§

fn default() -> CuConfig

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

impl<'de> Deserialize<'de> for CuConfig

Source§

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

This is a custom serialization to make this implementation independent of petgraph.

-
Source§

impl Serialize for CuConfig

Source§

fn serialize<S>( +) -> Result<CuConfig, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,

This is a custom serialization to make this implementation independent of petgraph.

+
Source§

impl Serialize for CuConfig

Source§

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

This is a custom serialization to make this implementation independent of petgraph.

+) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where + S: Serializer,

This is a custom serialization to make this implementation independent of petgraph.

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -48,6 +48,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.CuDuration.html b/cu29/prelude/struct.CuDuration.html index 915acb680..07247a782 100644 --- a/cu29/prelude/struct.CuDuration.html +++ b/cu29/prelude/struct.CuDuration.html @@ -1,11 +1,11 @@ -CuDuration in cu29::prelude - Rust
cu29::prelude

Struct CuDuration

pub struct CuDuration(pub u64);
Expand description

For Robot times, the underlying type is a u64 representing nanoseconds. +CuDuration in cu29::prelude - Rust

cu29::prelude

Struct CuDuration

pub struct CuDuration(pub u64);
Expand description

For Robot times, the underlying type is a u64 representing nanoseconds. It is always positive to simplify the reasoning on the user side.

Tuple Fields§

§0: u64

Implementations§

§

impl CuDuration

pub const MIN: CuDuration = _

pub const MAX: CuDuration = _

pub fn max(&self, p0: CuDuration) -> CuDuration

pub fn min(&self, p0: CuDuration) -> CuDuration

Trait Implementations§

§

impl Add for CuDuration

§

type Output = CuDuration

The resulting type after applying the + operator.
§

fn add(self, rhs: CuDuration) -> <CuDuration as Add>::Output

Performs the + operation. Read more
§

impl AddAssign for CuDuration

§

fn add_assign(&mut self, rhs: CuDuration)

Performs the += operation. Read more
§

impl<'de> BorrowDecode<'de> for CuDuration

§

fn borrow_decode<D>(decoder: &mut D) -> Result<CuDuration, DecodeError>
where D: BorrowDecoder<'de>,

Attempt to decode this type with the given BorrowDecode.
§

impl Clone for CuDuration

§

fn clone(&self) -> CuDuration

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
§

impl Debug for CuDuration

§

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

Formats the value using the given formatter. Read more
§

impl Decode for CuDuration

§

fn decode<D>(decoder: &mut D) -> Result<CuDuration, DecodeError>
where - D: Decoder,

Attempt to decode this type with the given Decode.
§

impl Default for CuDuration

§

fn default() -> CuDuration

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

impl<'de> Deserialize<'de> for CuDuration

§

fn deserialize<__D>( + D: Decoder,

Attempt to decode this type with the given Decode.
§

impl Default for CuDuration

§

fn default() -> CuDuration

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

impl<'de> Deserialize<'de> for CuDuration

§

fn deserialize<__D>( __deserializer: __D, -) -> Result<CuDuration, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for CuDuration

§

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

Formats the value using the given formatter. Read more
§

impl<T> Div<T> for CuDuration
where +) -> Result<CuDuration, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for CuDuration

§

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

Formats the value using the given formatter. Read more
§

impl<T> Div<T> for CuDuration
where T: Into<u64>,

§

type Output = CuDuration

The resulting type after applying the / operator.
§

fn div(self, rhs: T) -> CuDuration

Performs the / operation. Read more
§

impl Encode for CuDuration

§

fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
where E: Encoder,

Encode a given type.
§

impl From<CuDuration> for OptionCuTime

§

fn from(val: CuDuration) -> OptionCuTime

Converts to this type from the input type.
§

impl From<CuDuration> for Tov

§

fn from(duration: CuDuration) -> Tov

Converts to this type from the input type.
§

impl From<Duration> for CuDuration

bridge the API with standard Durations.

§

fn from(duration: Duration) -> CuDuration

Converts to this type from the input type.
§

impl From<u64> for CuDuration

§

fn from(duration: u64) -> CuDuration

Converts to this type from the input type.
§

impl<T> Mul<T> for CuDuration
where @@ -16,18 +16,18 @@ and should not be overridden without very good reason.

§

impl PartialOrd for CuDuration

§

fn partial_cmp(&self, other: &CuDuration) -> Option<Ordering>

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

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
§

impl Serialize for CuDuration

§

fn serialize<__S>( +the >= operator. Read more

§

impl Serialize for CuDuration

§

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
§

impl Sub for CuDuration

§

type Output = CuDuration

The resulting type after applying the - operator.
§

fn sub(self, rhs: CuDuration) -> <CuDuration as Sub>::Output

Performs the - operation. Read more
§

impl Copy for CuDuration

§

impl Eq for CuDuration

§

impl StructuralPartialEq for CuDuration

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Sub for CuDuration

§

type Output = CuDuration

The resulting type after applying the - operator.
§

fn sub(self, rhs: CuDuration) -> <CuDuration as Sub>::Output

Performs the - operation. Read more
§

impl Copy for CuDuration

§

impl Eq for CuDuration

§

impl StructuralPartialEq for CuDuration

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

§

impl<Q, K> Equivalent<K> for Q
where + T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, @@ -43,7 +43,7 @@ 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<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.
§

impl<T> CopperListTuple for T
where T: Encode + Decode + Debug,

Source§

impl<T> CuMsgPayload for T
where - T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

Source§

impl<M> Measure for M
where M: Debug + PartialOrd + Add<Output = M> + Default + Clone,

\ No newline at end of file diff --git a/cu29/prelude/struct.CuDurationStatistics.html b/cu29/prelude/struct.CuDurationStatistics.html index 5664c3907..937aadace 100644 --- a/cu29/prelude/struct.CuDurationStatistics.html +++ b/cu29/prelude/struct.CuDurationStatistics.html @@ -1,4 +1,4 @@ -CuDurationStatistics in cu29::prelude - Rust
cu29::prelude

Struct CuDurationStatistics

Source
pub struct CuDurationStatistics { /* private fields */ }
Expand description

A Specialized statistics object for CuDuration. +CuDurationStatistics in cu29::prelude - Rust

cu29::prelude

Struct CuDurationStatistics

Source
pub struct CuDurationStatistics { /* private fields */ }
Expand description

A Specialized statistics object for CuDuration. It will also keep track of the jitter between the values.

Implementations§

Source§

impl CuDurationStatistics

Source

pub fn new(max: CuDuration) -> CuDurationStatistics

Source

pub fn min(&self) -> CuDuration

Source

pub fn max(&self) -> CuDuration

Source

pub fn mean(&self) -> CuDuration

Source

pub fn percentile(&self, percentile: f64) -> CuDuration

Source

pub fn stddev(&self) -> CuDuration

Source

pub fn len(&self) -> u64

Source

pub fn is_empty(&self) -> bool

Source

pub fn jitter_min(&self) -> CuDuration

Source

pub fn jitter_max(&self) -> CuDuration

Source

pub fn jitter_mean(&self) -> CuDuration

Source

pub fn jitter_stddev(&self) -> CuDuration

Source

pub fn jitter_percentile(&self, percentile: f64) -> CuDuration

Source

pub fn record(&mut self, value: CuDuration)

Source

pub fn reset(&mut self)

Trait Implementations§

Source§

impl Clone for CuDurationStatistics

Source§

fn clone(&self) -> CuDurationStatistics

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 Debug for CuDurationStatistics

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29/prelude/struct.CuError.html b/cu29/prelude/struct.CuError.html index 5cbf000aa..34d03ac3c 100644 --- a/cu29/prelude/struct.CuError.html +++ b/cu29/prelude/struct.CuError.html @@ -1,17 +1,17 @@ -CuError in cu29::prelude - Rust
cu29::prelude

Struct CuError

pub struct CuError { /* private fields */ }
Expand description

Common copper Error type.

-

Implementations§

§

impl CuError

pub fn new_with_cause(message: &str, cause: impl Error) -> CuError

pub fn add_cause(self, context: &str) -> CuError

Trait Implementations§

§

impl Clone for CuError

§

fn clone(&self) -> CuError

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
§

impl Debug for CuError

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for CuError

§

fn deserialize<__D>( +CuError in cu29::prelude - Rust
cu29::prelude

Struct CuError

pub struct CuError { /* private fields */ }
Expand description

Common copper Error type.

+

Implementations§

§

impl CuError

pub fn new_with_cause(message: &str, cause: impl Error) -> CuError

pub fn add_cause(self, context: &str) -> CuError

Trait Implementations§

§

impl Clone for CuError

§

fn clone(&self) -> CuError

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
§

impl Debug for CuError

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for CuError

§

fn deserialize<__D>( __deserializer: __D, -) -> Result<CuError, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for CuError

§

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

Formats the value using the given formatter. Read more
§

impl Error for CuError

1.30.0 · Source§

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

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

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

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

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

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
§

impl From<&str> for CuError

§

fn from(s: &str) -> CuError

Converts to this type from the input type.
§

impl From<String> for CuError

§

fn from(s: String) -> CuError

Converts to this type from the input type.
§

impl Serialize for CuError

§

fn serialize<__S>( +) -> Result<CuError, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for CuError

§

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

Formats the value using the given formatter. Read more
§

impl Error for CuError

1.30.0 · Source§

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

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

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

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

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

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
§

impl From<&str> for CuError

§

fn from(s: &str) -> CuError

Converts to this type from the input type.
§

impl From<String> for CuError

§

fn from(s: String) -> CuError

Converts to this type from the input type.
§

impl Serialize for CuError

§

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -21,6 +21,6 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.CuExecutionLoop.html b/cu29/prelude/struct.CuExecutionLoop.html index 8af3a859a..1b474eca2 100644 --- a/cu29/prelude/struct.CuExecutionLoop.html +++ b/cu29/prelude/struct.CuExecutionLoop.html @@ -1,4 +1,4 @@ -CuExecutionLoop in cu29::prelude - Rust
cu29::prelude

Struct CuExecutionLoop

Source
pub struct CuExecutionLoop {
+CuExecutionLoop in cu29::prelude - Rust
cu29::prelude

Struct CuExecutionLoop

Source
pub struct CuExecutionLoop {
     pub steps: Vec<CuExecutionUnit>,
     pub loop_count: Option<u32>,
 }
Expand description

This structure represents a loop in the execution plan. diff --git a/cu29/prelude/struct.CuExecutionStep.html b/cu29/prelude/struct.CuExecutionStep.html index 383002244..8c23bbccd 100644 --- a/cu29/prelude/struct.CuExecutionStep.html +++ b/cu29/prelude/struct.CuExecutionStep.html @@ -1,4 +1,4 @@ -CuExecutionStep in cu29::prelude - Rust

cu29::prelude

Struct CuExecutionStep

Source
pub struct CuExecutionStep {
+CuExecutionStep in cu29::prelude - Rust
cu29::prelude

Struct CuExecutionStep

Source
pub struct CuExecutionStep {
     pub node_id: u32,
     pub node: Node,
     pub task_type: CuTaskType,
diff --git a/cu29/prelude/struct.CuListsManager.html b/cu29/prelude/struct.CuListsManager.html
index 2c20be299..669cf317b 100644
--- a/cu29/prelude/struct.CuListsManager.html
+++ b/cu29/prelude/struct.CuListsManager.html
@@ -1,4 +1,4 @@
-CuListsManager in cu29::prelude - Rust
cu29::prelude

Struct CuListsManager

Source
pub struct CuListsManager<P, const N: usize>
where +CuListsManager in cu29::prelude - Rust
cu29::prelude

Struct CuListsManager

Source
pub struct CuListsManager<P, const N: usize>
where P: CopperListTuple,
{ /* private fields */ }
Expand description

This structure maintains the entire memory needed by Copper for one loop for the inter tasks communication within a process. P or Payload is typically a Tuple of various types of messages that are exchanged between tasks. N is the maximum number of in flight Copper List the runtime can support.

diff --git a/cu29/prelude/struct.CuLogEntry.html b/cu29/prelude/struct.CuLogEntry.html index 6b94e295d..8713406cc 100644 --- a/cu29/prelude/struct.CuLogEntry.html +++ b/cu29/prelude/struct.CuLogEntry.html @@ -1,4 +1,4 @@ -CuLogEntry in cu29::prelude - Rust
cu29::prelude

Struct CuLogEntry

pub struct CuLogEntry {
+CuLogEntry in cu29::prelude - Rust
cu29::prelude

Struct CuLogEntry

pub struct CuLogEntry {
     pub time: CuDuration,
     pub msg_index: u32,
     pub paramname_indexes: SmallVec<[u32; 10]>,
@@ -8,20 +8,20 @@
 

pub fn add_param(&mut self, paramname_index: u32, param: Value)

Add a parameter to the log entry. paramname_index is the interned index of the parameter name.

Trait Implementations§

§

impl Debug for CuLogEntry

§

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

Formats the value using the given formatter. Read more
§

impl Decode for CuLogEntry

§

fn decode<D>(decoder: &mut D) -> Result<CuLogEntry, DecodeError>
where - D: Decoder,

Attempt to decode this type with the given Decode.
§

impl<'de> Deserialize<'de> for CuLogEntry

§

fn deserialize<__D>( + D: Decoder,

Attempt to decode this type with the given Decode.
§

impl<'de> Deserialize<'de> for CuLogEntry

§

fn deserialize<__D>( __deserializer: __D, -) -> Result<CuLogEntry, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for CuLogEntry

§

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

Formats the value using the given formatter. Read more
§

impl Encode for CuLogEntry

§

fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
where +) -> Result<CuLogEntry, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for CuLogEntry

§

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

Formats the value using the given formatter. Read more
§

impl Encode for CuLogEntry

§

fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
where E: Encoder,

Encode a given type.
§

impl PartialEq for CuLogEntry

§

fn eq(&self, other: &CuLogEntry) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
§

impl Serialize for CuLogEntry

§

fn serialize<__S>( +and should not be overridden without very good reason.

§

impl Serialize for CuLogEntry

§

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
§

impl WriteStream<CuLogEntry> for SimpleFileWriter

§

fn log(&mut self, obj: &CuLogEntry) -> Result<(), CuError>

§

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

§

impl StructuralPartialEq for CuLogEntry

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl WriteStream<CuLogEntry> for SimpleFileWriter

§

fn log(&mut self, obj: &CuLogEntry) -> Result<(), CuError>

§

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

§

impl StructuralPartialEq for CuLogEntry

Auto Trait Implementations§

Blanket Implementations§

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

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -31,6 +31,6 @@ T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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.
§

impl<T> CopperListTuple for T
where - T: Encode + Decode + Debug,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Encode + Decode + Debug,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.CuMsg.html b/cu29/prelude/struct.CuMsg.html index f84a1e4bb..6f57e72c3 100644 --- a/cu29/prelude/struct.CuMsg.html +++ b/cu29/prelude/struct.CuMsg.html @@ -1,4 +1,4 @@ -CuMsg in cu29::prelude - Rust
cu29::prelude

Struct CuMsg

Source
pub struct CuMsg<T>
where +CuMsg in cu29::prelude - Rust
cu29::prelude

Struct CuMsg

Source
pub struct CuMsg<T>
where T: CuMsgPayload,
{ pub metadata: CuMsgMetadata, /* private fields */ diff --git a/cu29/prelude/struct.CuMsgMetadata.html b/cu29/prelude/struct.CuMsgMetadata.html index 7f6141ff8..01f035045 100644 --- a/cu29/prelude/struct.CuMsgMetadata.html +++ b/cu29/prelude/struct.CuMsgMetadata.html @@ -1,4 +1,4 @@ -CuMsgMetadata in cu29::prelude - Rust
cu29::prelude

Struct CuMsgMetadata

Source
pub struct CuMsgMetadata {
+CuMsgMetadata in cu29::prelude - Rust
cu29::prelude

Struct CuMsgMetadata

Source
pub struct CuMsgMetadata {
     pub process_time: PartialCuTimeRange,
     pub tov: Tov,
     pub status_txt: CuCompactString,
@@ -10,20 +10,20 @@
 This is usefull for to display on the field when the tasks are operating correctly.

Implementations§

Source§

impl CuMsgMetadata

Source

pub fn set_status(&mut self, status: impl ToCompactString)

Trait Implementations§

Source§

impl<'__de> BorrowDecode<'__de> for CuMsgMetadata

Source§

fn borrow_decode<__D>(decoder: &mut __D) -> Result<CuMsgMetadata, DecodeError>
where __D: BorrowDecoder<'__de>,

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for CuMsgMetadata

Source§

fn clone(&self) -> CuMsgMetadata

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 Debug for CuMsgMetadata

Source§

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

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

impl Decode for CuMsgMetadata

Source§

fn decode<__D>(decoder: &mut __D) -> Result<CuMsgMetadata, DecodeError>
where - __D: Decoder,

Attempt to decode this type with the given Decode.
Source§

impl Default for CuMsgMetadata

Source§

fn default() -> CuMsgMetadata

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

impl<'de> Deserialize<'de> for CuMsgMetadata

Source§

fn deserialize<__D>( + __D: Decoder,

Attempt to decode this type with the given Decode.
Source§

impl Default for CuMsgMetadata

Source§

fn default() -> CuMsgMetadata

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

impl<'de> Deserialize<'de> for CuMsgMetadata

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<CuMsgMetadata, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for CuMsgMetadata

Source§

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

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

impl Encode for CuMsgMetadata

Source§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where - __E: Encoder,

Encode a given type.
Source§

impl Serialize for CuMsgMetadata

Source§

fn serialize<__S>( +) -> Result<CuMsgMetadata, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for CuMsgMetadata

Source§

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

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

impl Encode for CuMsgMetadata

Source§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where + __E: Encoder,

Encode a given type.
Source§

impl Serialize for CuMsgMetadata

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -35,6 +35,6 @@ 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<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.
§

impl<T> CopperListTuple for T
where T: Encode + Decode + Debug,

Source§

impl<T> CuMsgPayload for T
where - T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.CuRuntime.html b/cu29/prelude/struct.CuRuntime.html index 7af7889fd..eb05cbdef 100644 --- a/cu29/prelude/struct.CuRuntime.html +++ b/cu29/prelude/struct.CuRuntime.html @@ -1,4 +1,4 @@ -CuRuntime in cu29::prelude - Rust
cu29::prelude

Struct CuRuntime

Source
pub struct CuRuntime<CT, P, M, const NBCL: usize>
where +CuRuntime in cu29::prelude - Rust
cu29::prelude

Struct CuRuntime

Source
pub struct CuRuntime<CT, P, M, const NBCL: usize>{
     pub tasks: CT,
diff --git a/cu29/prelude/struct.CuSimSinkTask.html b/cu29/prelude/struct.CuSimSinkTask.html
index 2c16cad9e..f0a041f68 100644
--- a/cu29/prelude/struct.CuSimSinkTask.html
+++ b/cu29/prelude/struct.CuSimSinkTask.html
@@ -1,4 +1,4 @@
-CuSimSinkTask in cu29::prelude - Rust
cu29::prelude

Struct CuSimSinkTask

Source
pub struct CuSimSinkTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a sink task for the simulations. +CuSimSinkTask in cu29::prelude - Rust

cu29::prelude

Struct CuSimSinkTask

Source
pub struct CuSimSinkTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a sink task for the simulations. It basically does nothing in place of a real driver so it won’t try to initialize any hardware.

Trait Implementations§

Source§

impl<'cl, T> CuSinkTask<'cl> for CuSimSinkTask<T>
where T: CuMsgPayload + 'cl,

Source§

type Input = &'cl CuMsg<T>

Source§

fn new(_config: Option<&ComponentConfig>) -> Result<CuSimSinkTask<T>, CuError>
where diff --git a/cu29/prelude/struct.CuSimSrcTask.html b/cu29/prelude/struct.CuSimSrcTask.html index 889f08fb2..c6c0251f1 100644 --- a/cu29/prelude/struct.CuSimSrcTask.html +++ b/cu29/prelude/struct.CuSimSrcTask.html @@ -1,4 +1,4 @@ -CuSimSrcTask in cu29::prelude - Rust
cu29::prelude

Struct CuSimSrcTask

Source
pub struct CuSimSrcTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a source task for the simulations. +CuSimSrcTask in cu29::prelude - Rust

cu29::prelude

Struct CuSimSrcTask

Source
pub struct CuSimSrcTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a source task for the simulations. It basically does nothing in place of a real driver so it won’t try to initialize any hardware.

Trait Implementations§

Source§

impl<'cl, T> CuSrcTask<'cl> for CuSimSrcTask<T>
where T: CuMsgPayload + 'cl,

Source§

type Output = &'cl mut CuMsg<T>

Source§

fn new(_config: Option<&ComponentConfig>) -> Result<CuSimSrcTask<T>, CuError>
where diff --git a/cu29/prelude/struct.CuTimeRange.html b/cu29/prelude/struct.CuTimeRange.html index dae65111d..3297ea663 100644 --- a/cu29/prelude/struct.CuTimeRange.html +++ b/cu29/prelude/struct.CuTimeRange.html @@ -1,26 +1,26 @@ -CuTimeRange in cu29::prelude - Rust
cu29::prelude

Struct CuTimeRange

pub struct CuTimeRange {
+CuTimeRange in cu29::prelude - Rust
cu29::prelude

Struct CuTimeRange

pub struct CuTimeRange {
     pub start: CuDuration,
     pub end: CuDuration,
 }
Expand description

Represents a time range.

Fields§

§start: CuDuration§end: CuDuration

Trait Implementations§

§

impl<'__de> BorrowDecode<'__de> for CuTimeRange

§

fn borrow_decode<__D>(decoder: &mut __D) -> Result<CuTimeRange, DecodeError>
where __D: BorrowDecoder<'__de>,

Attempt to decode this type with the given BorrowDecode.
§

impl Clone for CuTimeRange

§

fn clone(&self) -> CuTimeRange

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
§

impl Debug for CuTimeRange

§

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

Formats the value using the given formatter. Read more
§

impl Decode for CuTimeRange

§

fn decode<__D>(decoder: &mut __D) -> Result<CuTimeRange, DecodeError>
where - __D: Decoder,

Attempt to decode this type with the given Decode.
§

impl<'de> Deserialize<'de> for CuTimeRange

§

fn deserialize<__D>( + __D: Decoder,

Attempt to decode this type with the given Decode.
§

impl<'de> Deserialize<'de> for CuTimeRange

§

fn deserialize<__D>( __deserializer: __D, -) -> Result<CuTimeRange, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Encode for CuTimeRange

§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where +) -> Result<CuTimeRange, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Encode for CuTimeRange

§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where __E: Encoder,

Encode a given type.
§

impl From<&[CuDuration]> for CuTimeRange

Builds a time range from a slice of CuTime. This is an O(n) operation.

§

fn from(slice: &[CuDuration]) -> CuTimeRange

Converts to this type from the input type.
§

impl PartialEq for CuTimeRange

§

fn eq(&self, other: &CuTimeRange) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
§

impl Serialize for CuTimeRange

§

fn serialize<__S>( +and should not be overridden without very good reason.

§

impl Serialize for CuTimeRange

§

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
§

impl Copy for CuTimeRange

§

impl StructuralPartialEq for CuTimeRange

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Copy for CuTimeRange

§

impl StructuralPartialEq for CuTimeRange

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -29,6 +29,6 @@ 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> 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<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.
§

impl<T> CopperListTuple for T
where - T: Encode + Decode + Debug,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Encode + Decode + Debug,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.Instant.html b/cu29/prelude/struct.Instant.html index 273dee952..df5ca74b2 100644 --- a/cu29/prelude/struct.Instant.html +++ b/cu29/prelude/struct.Instant.html @@ -1,4 +1,4 @@ -Instant in cu29::prelude - Rust
cu29::prelude

Struct Instant

pub struct Instant(/* private fields */);
Expand description

A point-in-time wall-clock measurement.

+Instant in cu29::prelude - Rust
cu29::prelude

Struct Instant

pub struct Instant(/* private fields */);
Expand description

A point-in-time wall-clock measurement.

Mimics most of the functionality of std::time::Instant but provides an additional method for using the “recent time” feature of quanta.

§Monotonicity

diff --git a/cu29/prelude/struct.LiveStatistics.html b/cu29/prelude/struct.LiveStatistics.html index 0c0e7f3d0..033486e26 100644 --- a/cu29/prelude/struct.LiveStatistics.html +++ b/cu29/prelude/struct.LiveStatistics.html @@ -1,4 +1,4 @@ -LiveStatistics in cu29::prelude - Rust
cu29::prelude

Struct LiveStatistics

Source
pub struct LiveStatistics { /* private fields */ }
Expand description

Accumulative stat object that can give your some real time statistics.

+LiveStatistics in cu29::prelude - Rust
cu29::prelude

Struct LiveStatistics

Source
pub struct LiveStatistics { /* private fields */ }
Expand description

Accumulative stat object that can give your some real time statistics.

Implementations§

Source§

impl LiveStatistics

Source

pub fn new_unbounded() -> LiveStatistics

Source

pub fn new_with_max(max: u64) -> LiveStatistics

Source

pub fn min(&self) -> u64

Source

pub fn max(&self) -> u64

Source

pub fn mean(&self) -> f64

Source

pub fn percentile(&self, percentile: f64) -> u64

Source

pub fn record(&mut self, value: u64)

Adds a value to the statistics.

Source

pub fn len(&self) -> u64

Source

pub fn is_empty(&self) -> bool

Source

pub fn reset(&mut self)

Trait Implementations§

Source§

impl Clone for LiveStatistics

Source§

fn clone(&self) -> LiveStatistics

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 Debug for LiveStatistics

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29/prelude/struct.LoggerRuntime.html b/cu29/prelude/struct.LoggerRuntime.html index 157cde88f..d13f3d119 100644 --- a/cu29/prelude/struct.LoggerRuntime.html +++ b/cu29/prelude/struct.LoggerRuntime.html @@ -1,4 +1,4 @@ -LoggerRuntime in cu29::prelude - Rust
cu29::prelude

Struct LoggerRuntime

pub struct LoggerRuntime {}
Expand description

The lifetime of this struct is the lifetime of the logger.

+LoggerRuntime in cu29::prelude - Rust
cu29::prelude

Struct LoggerRuntime

pub struct LoggerRuntime {}
Expand description

The lifetime of this struct is the lifetime of the logger.

Implementations§

§

impl LoggerRuntime

pub fn init( clock: RobotClock, destination: impl WriteStream<CuLogEntry> + 'static, diff --git a/cu29/prelude/struct.MonitorConfig.html b/cu29/prelude/struct.MonitorConfig.html index f98513b06..068702f71 100644 --- a/cu29/prelude/struct.MonitorConfig.html +++ b/cu29/prelude/struct.MonitorConfig.html @@ -1,16 +1,16 @@ -MonitorConfig in cu29::prelude - Rust
cu29::prelude

Struct MonitorConfig

Source
pub struct MonitorConfig { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Clone for MonitorConfig

Source§

fn clone(&self) -> MonitorConfig

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 Debug for MonitorConfig

Source§

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

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

impl Default for MonitorConfig

Source§

fn default() -> MonitorConfig

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

impl<'de> Deserialize<'de> for MonitorConfig

Source§

fn deserialize<__D>( +MonitorConfig in cu29::prelude - Rust
cu29::prelude

Struct MonitorConfig

Source
pub struct MonitorConfig { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Clone for MonitorConfig

Source§

fn clone(&self) -> MonitorConfig

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 Debug for MonitorConfig

Source§

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

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

impl Default for MonitorConfig

Source§

fn default() -> MonitorConfig

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

impl<'de> Deserialize<'de> for MonitorConfig

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<MonitorConfig, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for MonitorConfig

Source§

fn serialize<__S>( +) -> Result<MonitorConfig, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for MonitorConfig

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -18,6 +18,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.NoMonitor.html b/cu29/prelude/struct.NoMonitor.html index 0afa48b58..5bbadfd36 100644 --- a/cu29/prelude/struct.NoMonitor.html +++ b/cu29/prelude/struct.NoMonitor.html @@ -1,4 +1,4 @@ -NoMonitor in cu29::prelude - Rust
cu29::prelude

Struct NoMonitor

Source
pub struct NoMonitor {}
Expand description

A do nothing monitor if no monitor is provided. +NoMonitor in cu29::prelude - Rust

cu29::prelude

Struct NoMonitor

Source
pub struct NoMonitor {}
Expand description

A do nothing monitor if no monitor is provided. This is basically defining the default behavior of Copper in case of error.

Trait Implementations§

Source§

impl CuMonitor for NoMonitor

Source§

fn new( _config: &CuConfig, diff --git a/cu29/prelude/struct.Node.html b/cu29/prelude/struct.Node.html index f818dfbba..27a19da28 100644 --- a/cu29/prelude/struct.Node.html +++ b/cu29/prelude/struct.Node.html @@ -1,20 +1,20 @@ -Node in cu29::prelude - Rust
cu29::prelude

Struct Node

Source
pub struct Node { /* private fields */ }
Expand description

A node in the configuration graph. +Node in cu29::prelude - Rust

cu29::prelude

Struct Node

Source
pub struct Node { /* private fields */ }
Expand description

A node in the configuration graph. A node represents a Task in the system Graph.

Implementations§

Source§

impl Node

Source

pub fn new(id: &str, ptype: &str) -> Node

Source

pub fn get_id(&self) -> String

Source

pub fn set_type(self, name: Option<String>) -> Node

Source

pub fn get_type(&self) -> &str

Source

pub fn get_instance_config(&self) -> Option<&ComponentConfig>

Source

pub fn get_param<T>(&self, key: &str) -> Option<T>
where T: From<Value>,

Source

pub fn set_param<T>(&mut self, key: &str, value: T)
where - T: Into<Value>,

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Node

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 Debug for Node

Source§

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

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

impl<'de> Deserialize<'de> for Node

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Node

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 Debug for Node

Source§

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

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

impl<'de> Deserialize<'de> for Node

Source§

fn deserialize<__D>( __deserializer: __D, -) -> Result<Node, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for Node

Source§

fn serialize<__S>( +) -> Result<Node, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for Node

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

Auto Trait Implementations§

§

impl Freeze for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -22,6 +22,6 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.NullLog.html b/cu29/prelude/struct.NullLog.html index 6255d3175..d8cd49533 100644 --- a/cu29/prelude/struct.NullLog.html +++ b/cu29/prelude/struct.NullLog.html @@ -1,4 +1,4 @@ -NullLog in cu29::prelude - Rust
cu29::prelude

Struct NullLog

pub struct NullLog {}

Trait Implementations§

§

impl Log for NullLog

§

fn enabled(&self, _metadata: &Metadata<'_>) -> bool

Determines if a log message with the specified metadata would be +NullLog in cu29::prelude - Rust
cu29::prelude

Struct NullLog

pub struct NullLog {}

Trait Implementations§

§

impl Log for NullLog

§

fn enabled(&self, _metadata: &Metadata<'_>) -> bool

Determines if a log message with the specified metadata would be logged. Read more
§

fn log(&self, _record: &Record<'_>)

Logs the Record. Read more
§

fn flush(&self)

Flushes any buffered records. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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 diff --git a/cu29/prelude/struct.OptionCuTime.html b/cu29/prelude/struct.OptionCuTime.html index 6346f051c..49bff9df5 100644 --- a/cu29/prelude/struct.OptionCuTime.html +++ b/cu29/prelude/struct.OptionCuTime.html @@ -1,21 +1,21 @@ -OptionCuTime in cu29::prelude - Rust
cu29::prelude

Struct OptionCuTime

pub struct OptionCuTime(/* private fields */);
Expand description

Homebrewed Option<CuDuration> to avoid using 128bits just to represent an Option.

+OptionCuTime in cu29::prelude - Rust
cu29::prelude

Struct OptionCuTime

pub struct OptionCuTime(/* private fields */);
Expand description

Homebrewed Option<CuDuration> to avoid using 128bits just to represent an Option.

Implementations§

§

impl OptionCuTime

pub fn is_none(&self) -> bool

pub fn none() -> OptionCuTime

pub fn unwrap(self) -> CuDuration

Trait Implementations§

§

impl<'__de> BorrowDecode<'__de> for OptionCuTime

§

fn borrow_decode<__D>(decoder: &mut __D) -> Result<OptionCuTime, DecodeError>
where __D: BorrowDecoder<'__de>,

Attempt to decode this type with the given BorrowDecode.
§

impl Clone for OptionCuTime

§

fn clone(&self) -> OptionCuTime

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
§

impl Debug for OptionCuTime

§

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

Formats the value using the given formatter. Read more
§

impl Decode for OptionCuTime

§

fn decode<__D>(decoder: &mut __D) -> Result<OptionCuTime, DecodeError>
where - __D: Decoder,

Attempt to decode this type with the given Decode.
§

impl Default for OptionCuTime

§

fn default() -> OptionCuTime

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

impl<'de> Deserialize<'de> for OptionCuTime

§

fn deserialize<__D>( + __D: Decoder,

Attempt to decode this type with the given Decode.
§

impl Default for OptionCuTime

§

fn default() -> OptionCuTime

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

impl<'de> Deserialize<'de> for OptionCuTime

§

fn deserialize<__D>( __deserializer: __D, -) -> Result<OptionCuTime, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for OptionCuTime

§

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

Formats the value using the given formatter. Read more
§

impl Encode for OptionCuTime

§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where +) -> Result<OptionCuTime, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for OptionCuTime

§

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

Formats the value using the given formatter. Read more
§

impl Encode for OptionCuTime

§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where __E: Encoder,

Encode a given type.
§

impl From<CuDuration> for OptionCuTime

§

fn from(val: CuDuration) -> OptionCuTime

Converts to this type from the input type.
§

impl From<Option<CuDuration>> for OptionCuTime

§

fn from(duration: Option<CuDuration>) -> OptionCuTime

Converts to this type from the input type.
§

impl PartialEq for OptionCuTime

§

fn eq(&self, other: &OptionCuTime) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
§

impl Serialize for OptionCuTime

§

fn serialize<__S>( +and should not be overridden without very good reason.

§

impl Serialize for OptionCuTime

§

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
§

impl Copy for OptionCuTime

§

impl StructuralPartialEq for OptionCuTime

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for OptionCuTime

§

impl StructuralPartialEq for OptionCuTime

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -27,6 +27,6 @@ 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<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.
§

impl<T> CopperListTuple for T
where T: Encode + Decode + Debug,

Source§

impl<T> CuMsgPayload for T
where - T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.OwningIoWriter.html b/cu29/prelude/struct.OwningIoWriter.html index f9f86927c..20138dd9c 100644 --- a/cu29/prelude/struct.OwningIoWriter.html +++ b/cu29/prelude/struct.OwningIoWriter.html @@ -1,4 +1,4 @@ -OwningIoWriter in cu29::prelude - Rust
cu29::prelude

Struct OwningIoWriter

pub struct OwningIoWriter<W>
where +OwningIoWriter in cu29::prelude - Rust
cu29::prelude

Struct OwningIoWriter

pub struct OwningIoWriter<W>
where W: Write,
{ /* private fields */ }

Implementations§

§

impl<W> OwningIoWriter<W>
where W: Write,

pub fn new(writer: W) -> OwningIoWriter<W>

pub fn bytes_written(&self) -> usize

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

Trait Implementations§

§

impl<W> Writer for OwningIoWriter<W>
where W: Write,

§

fn write(&mut self, bytes: &[u8]) -> Result<(), EncodeError>

Write bytes to the underlying writer. Exactly bytes.len() bytes must be written, or else an error should be returned.

Auto Trait Implementations§

§

impl<W> Freeze for OwningIoWriter<W>
where diff --git a/cu29/prelude/struct.PartialCuTimeRange.html b/cu29/prelude/struct.PartialCuTimeRange.html index 4c438a6db..ccd96ae0a 100644 --- a/cu29/prelude/struct.PartialCuTimeRange.html +++ b/cu29/prelude/struct.PartialCuTimeRange.html @@ -1,4 +1,4 @@ -PartialCuTimeRange in cu29::prelude - Rust
cu29::prelude

Struct PartialCuTimeRange

pub struct PartialCuTimeRange {
+PartialCuTimeRange in cu29::prelude - Rust
cu29::prelude

Struct PartialCuTimeRange

pub struct PartialCuTimeRange {
     pub start: OptionCuTime,
     pub end: OptionCuTime,
 }
Expand description

Represents a time range with possible undefined start or end or both.

@@ -6,20 +6,20 @@ decoder: &mut __D, ) -> Result<PartialCuTimeRange, DecodeError>
where __D: BorrowDecoder<'__de>,

Attempt to decode this type with the given BorrowDecode.
§

impl Clone for PartialCuTimeRange

§

fn clone(&self) -> PartialCuTimeRange

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
§

impl Debug for PartialCuTimeRange

§

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

Formats the value using the given formatter. Read more
§

impl Decode for PartialCuTimeRange

§

fn decode<__D>(decoder: &mut __D) -> Result<PartialCuTimeRange, DecodeError>
where - __D: Decoder,

Attempt to decode this type with the given Decode.
§

impl Default for PartialCuTimeRange

§

fn default() -> PartialCuTimeRange

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

impl<'de> Deserialize<'de> for PartialCuTimeRange

§

fn deserialize<__D>( + __D: Decoder,

Attempt to decode this type with the given Decode.
§

impl Default for PartialCuTimeRange

§

fn default() -> PartialCuTimeRange

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

impl<'de> Deserialize<'de> for PartialCuTimeRange

§

fn deserialize<__D>( __deserializer: __D, -) -> Result<PartialCuTimeRange, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Encode for PartialCuTimeRange

§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where - __E: Encoder,

Encode a given type.
§

impl Serialize for PartialCuTimeRange

§

fn serialize<__S>( +) -> Result<PartialCuTimeRange, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Encode for PartialCuTimeRange

§

fn encode<__E>(&self, encoder: &mut __E) -> Result<(), EncodeError>
where + __E: Encoder,

Encode a given type.
§

impl Serialize for PartialCuTimeRange

§

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
§

impl Copy for PartialCuTimeRange

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for PartialCuTimeRange

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,
§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -29,6 +29,6 @@ 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<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.
§

impl<T> CopperListTuple for T
where T: Encode + Decode + Debug,

Source§

impl<T> CuMsgPayload for T
where - T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where + T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/prelude/struct.RobotClock.html b/cu29/prelude/struct.RobotClock.html index 804be7a75..f1170ac29 100644 --- a/cu29/prelude/struct.RobotClock.html +++ b/cu29/prelude/struct.RobotClock.html @@ -1,4 +1,4 @@ -RobotClock in cu29::prelude - Rust
cu29::prelude

Struct RobotClock

pub struct RobotClock { /* private fields */ }
Expand description

A running Robot clock. +RobotClock in cu29::prelude - Rust

cu29::prelude

Struct RobotClock

pub struct RobotClock { /* private fields */ }
Expand description

A running Robot clock. The clock is a monotonic clock that starts at an arbitrary reference time. It is clone resilient, ie a clone will be the same clock, even when mocked.

Implementations§

§

impl RobotClock

pub fn new() -> RobotClock

Creates a RobotClock using now as its reference time. diff --git a/cu29/prelude/struct.RobotClockMock.html b/cu29/prelude/struct.RobotClockMock.html index 6ab206e5c..4e0f9f8b4 100644 --- a/cu29/prelude/struct.RobotClockMock.html +++ b/cu29/prelude/struct.RobotClockMock.html @@ -1,4 +1,4 @@ -RobotClockMock in cu29::prelude - Rust

cu29::prelude

Struct RobotClockMock

pub struct RobotClockMock(/* private fields */);
Expand description

A mock clock that can be controlled by the user.

+RobotClockMock in cu29::prelude - Rust
cu29::prelude

Struct RobotClockMock

pub struct RobotClockMock(/* private fields */);
Expand description

A mock clock that can be controlled by the user.

Implementations§

§

impl RobotClockMock

pub fn increment(&self, amount: Duration)

pub fn decrement(&self, amount: Duration)

Decrements the time by the given amount. Be careful this brakes the monotonicity of the clock.

pub fn value(&self) -> u64

Gets the current value of time.

diff --git a/cu29/prelude/struct.ScopedAllocCounter.html b/cu29/prelude/struct.ScopedAllocCounter.html index 3396d7e10..ebe553a42 100644 --- a/cu29/prelude/struct.ScopedAllocCounter.html +++ b/cu29/prelude/struct.ScopedAllocCounter.html @@ -1,4 +1,4 @@ -ScopedAllocCounter in cu29::prelude - Rust
cu29::prelude

Struct ScopedAllocCounter

Source
pub struct ScopedAllocCounter { /* private fields */ }
Expand description

A simple struct that counts the number of bytes allocated and deallocated in a scope.

+ScopedAllocCounter in cu29::prelude - Rust
cu29::prelude

Struct ScopedAllocCounter

Source
pub struct ScopedAllocCounter { /* private fields */ }
Expand description

A simple struct that counts the number of bytes allocated and deallocated in a scope.

Implementations§

Trait Implementations§

Source§

impl Default for ScopedAllocCounter

Source§

fn default() -> ScopedAllocCounter

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

impl Drop for ScopedAllocCounter

Build a difference between the number of bytes allocated and deallocated in the scope at drop time.

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29/prelude/struct.SectionHandle.html b/cu29/prelude/struct.SectionHandle.html index 7bb832e02..703121df0 100644 --- a/cu29/prelude/struct.SectionHandle.html +++ b/cu29/prelude/struct.SectionHandle.html @@ -1,4 +1,4 @@ -SectionHandle in cu29::prelude - Rust
cu29::prelude

Struct SectionHandle

pub struct SectionHandle { /* private fields */ }
Expand description

A SectionHandle is a handle to a section in the datalogger. +SectionHandle in cu29::prelude - Rust

cu29::prelude

Struct SectionHandle

pub struct SectionHandle { /* private fields */ }
Expand description

A SectionHandle is a handle to a section in the datalogger. It allows to track the lifecycle of a section of the datalogger.

Implementations§

§

impl SectionHandle

pub fn create( section_header: SectionHeader, diff --git a/cu29/prelude/struct.SectionHeader.html b/cu29/prelude/struct.SectionHeader.html index e4bbbc556..aef72761b 100644 --- a/cu29/prelude/struct.SectionHeader.html +++ b/cu29/prelude/struct.SectionHeader.html @@ -1,4 +1,4 @@ -SectionHeader in cu29::prelude - Rust
cu29::prelude

Struct SectionHeader

pub struct SectionHeader { /* private fields */ }
Expand description

Each concurrent sublogger is tracked through a section header. +SectionHeader in cu29::prelude - Rust

cu29::prelude

Struct SectionHeader

pub struct SectionHeader { /* private fields */ }
Expand description

Each concurrent sublogger is tracked through a section header. They form a linked list of sections. The entry type is used to identify the type of data in the section.

Trait Implementations§

§

impl<'__de> BorrowDecode<'__de> for SectionHeader

§

fn borrow_decode<__D>(decoder: &mut __D) -> Result<SectionHeader, DecodeError>
where diff --git a/cu29/prelude/struct.SimpleFileWriter.html b/cu29/prelude/struct.SimpleFileWriter.html index 83ed63686..df4009bbb 100644 --- a/cu29/prelude/struct.SimpleFileWriter.html +++ b/cu29/prelude/struct.SimpleFileWriter.html @@ -1,4 +1,4 @@ -SimpleFileWriter in cu29::prelude - Rust
cu29::prelude

Struct SimpleFileWriter

pub struct SimpleFileWriter { /* private fields */ }
Expand description

This allows this crate to be used outside of Copper (ie. decoupling it from the unifiedlog.

+SimpleFileWriter in cu29::prelude - Rust
cu29::prelude

Struct SimpleFileWriter

pub struct SimpleFileWriter { /* private fields */ }
Expand description

This allows this crate to be used outside of Copper (ie. decoupling it from the unifiedlog.

Implementations§

Trait Implementations§

§

impl Debug for SimpleFileWriter

§

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

Formats the value using the given formatter. Read more
§

impl WriteStream<CuLogEntry> for SimpleFileWriter

§

fn log(&mut self, obj: &CuLogEntry) -> Result<(), CuError>

§

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

Auto Trait Implementations§

Blanket Implementations§

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> 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 diff --git a/cu29/prelude/struct.UnifiedLoggerBuilder.html b/cu29/prelude/struct.UnifiedLoggerBuilder.html index 66b7b5f4c..68e64c1fd 100644 --- a/cu29/prelude/struct.UnifiedLoggerBuilder.html +++ b/cu29/prelude/struct.UnifiedLoggerBuilder.html @@ -1,4 +1,4 @@ -UnifiedLoggerBuilder in cu29::prelude - Rust
cu29::prelude

Struct UnifiedLoggerBuilder

pub struct UnifiedLoggerBuilder { /* private fields */ }
Expand description

Use this builder to create a new DataLogger.

+UnifiedLoggerBuilder in cu29::prelude - Rust
cu29::prelude

Struct UnifiedLoggerBuilder

pub struct UnifiedLoggerBuilder { /* private fields */ }
Expand description

Use this builder to create a new DataLogger.

Implementations§

§

impl UnifiedLoggerBuilder

pub fn new() -> UnifiedLoggerBuilder

pub fn file_base_name(self, file_path: &Path) -> UnifiedLoggerBuilder

If “something/toto.copper” is given, it will find or create “something/toto_0.copper”, “something/toto_1.copper” etc.

pub fn preallocated_size(self, preallocated_size: usize) -> UnifiedLoggerBuilder

pub fn write(self, write: bool) -> UnifiedLoggerBuilder

pub fn create(self, create: bool) -> UnifiedLoggerBuilder

pub fn build(self) -> Result<UnifiedLogger, Error>

Trait Implementations§

§

impl Default for UnifiedLoggerBuilder

§

fn default() -> UnifiedLoggerBuilder

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

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29/prelude/struct.UnifiedLoggerIOReader.html b/cu29/prelude/struct.UnifiedLoggerIOReader.html index 3b62a23cb..8a9b995af 100644 --- a/cu29/prelude/struct.UnifiedLoggerIOReader.html +++ b/cu29/prelude/struct.UnifiedLoggerIOReader.html @@ -1,4 +1,4 @@ -UnifiedLoggerIOReader in cu29::prelude - Rust
cu29::prelude

Struct UnifiedLoggerIOReader

pub struct UnifiedLoggerIOReader { /* private fields */ }
Expand description

This a convience wrapper around the UnifiedLoggerRead to implement the Read trait.

+UnifiedLoggerIOReader in cu29::prelude - Rust
cu29::prelude

Struct UnifiedLoggerIOReader

pub struct UnifiedLoggerIOReader { /* private fields */ }
Expand description

This a convience wrapper around the UnifiedLoggerRead to implement the Read trait.

Implementations§

§

impl UnifiedLoggerIOReader

pub fn new( logger: UnifiedLoggerRead, log_type: UnifiedLogType, diff --git a/cu29/prelude/struct.UnifiedLoggerRead.html b/cu29/prelude/struct.UnifiedLoggerRead.html index 6eaff061e..ffb88448a 100644 --- a/cu29/prelude/struct.UnifiedLoggerRead.html +++ b/cu29/prelude/struct.UnifiedLoggerRead.html @@ -1,4 +1,4 @@ -UnifiedLoggerRead in cu29::prelude - Rust
cu29::prelude

Struct UnifiedLoggerRead

pub struct UnifiedLoggerRead { /* private fields */ }
Expand description

A read side of the datalogger.

+UnifiedLoggerRead in cu29::prelude - Rust
cu29::prelude

Struct UnifiedLoggerRead

pub struct UnifiedLoggerRead { /* private fields */ }
Expand description

A read side of the datalogger.

Implementations§

§

impl UnifiedLoggerRead

pub fn new(base_file_path: &Path) -> Result<UnifiedLoggerRead, Error>

pub fn read_next_section_type( &mut self, datalogtype: UnifiedLogType, diff --git a/cu29/prelude/struct.UnifiedLoggerWrite.html b/cu29/prelude/struct.UnifiedLoggerWrite.html index 9045f2d8e..df0ae1c2c 100644 --- a/cu29/prelude/struct.UnifiedLoggerWrite.html +++ b/cu29/prelude/struct.UnifiedLoggerWrite.html @@ -1,4 +1,4 @@ -UnifiedLoggerWrite in cu29::prelude - Rust
cu29::prelude

Struct UnifiedLoggerWrite

pub struct UnifiedLoggerWrite { /* private fields */ }
Expand description

A write side of the datalogger.

+UnifiedLoggerWrite in cu29::prelude - Rust
cu29::prelude

Struct UnifiedLoggerWrite

pub struct UnifiedLoggerWrite { /* private fields */ }
Expand description

A write side of the datalogger.

Implementations§

§

impl UnifiedLoggerWrite

pub fn flush_section(&mut self, section: &mut SectionHandle)

Trait Implementations§

§

impl Drop for UnifiedLoggerWrite

§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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 diff --git a/cu29/prelude/trait.ClockProvider.html b/cu29/prelude/trait.ClockProvider.html index 07f3f2302..c252c57d4 100644 --- a/cu29/prelude/trait.ClockProvider.html +++ b/cu29/prelude/trait.ClockProvider.html @@ -1,4 +1,4 @@ -ClockProvider in cu29::prelude - Rust
cu29::prelude

Trait ClockProvider

pub trait ClockProvider {
+ClockProvider in cu29::prelude - Rust
cu29::prelude

Trait ClockProvider

pub trait ClockProvider {
     // Required method
     fn get_clock(&self) -> RobotClock;
 }
Expand description

A trait to provide a clock to the runtime.

diff --git a/cu29/prelude/trait.CopperListTuple.html b/cu29/prelude/trait.CopperListTuple.html index 7dc06c9a0..e72ff10b0 100644 --- a/cu29/prelude/trait.CopperListTuple.html +++ b/cu29/prelude/trait.CopperListTuple.html @@ -1,4 +1,4 @@ -CopperListTuple in cu29::prelude - Rust
cu29::prelude

Trait CopperListTuple

pub trait CopperListTuple:
+CopperListTuple in cu29::prelude - Rust
cu29::prelude

Trait CopperListTuple

pub trait CopperListTuple:
     Sized
     + Encode
     + Decode
diff --git a/cu29/prelude/trait.CuMonitor.html b/cu29/prelude/trait.CuMonitor.html
index 7f946e34b..50818fb93 100644
--- a/cu29/prelude/trait.CuMonitor.html
+++ b/cu29/prelude/trait.CuMonitor.html
@@ -1,4 +1,4 @@
-CuMonitor in cu29::prelude - Rust
cu29::prelude

Trait CuMonitor

Source
pub trait CuMonitor: Sized {
+CuMonitor in cu29::prelude - Rust
cu29::prelude

Trait CuMonitor

Source
pub trait CuMonitor: Sized {
     // Required methods
     fn new(
         config: &CuConfig,
diff --git a/cu29/prelude/trait.CuMsgPack.html b/cu29/prelude/trait.CuMsgPack.html
index 3104fffc3..db79a5d3c 100644
--- a/cu29/prelude/trait.CuMsgPack.html
+++ b/cu29/prelude/trait.CuMsgPack.html
@@ -1,4 +1,4 @@
-CuMsgPack in cu29::prelude - Rust
cu29::prelude

Trait CuMsgPack

Source
pub trait CuMsgPack<'cl> { }

Implementations on Foreign Types§

Source§

impl<'cl> CuMsgPack<'cl> for ()

Source§

impl<'cl, T1, T2> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>)
where +CuMsgPack in cu29::prelude - Rust
cu29::prelude

Trait CuMsgPack

Source
pub trait CuMsgPack<'cl> { }

Implementations on Foreign Types§

Source§

impl<'cl> CuMsgPack<'cl> for ()

Source§

impl<'cl, T1, T2> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>)
where T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl,

Source§

impl<'cl, T1, T2, T3> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>, &'cl CuMsg<T3>)
where T1: CuMsgPayload + 'cl, diff --git a/cu29/prelude/trait.CuMsgPayload.html b/cu29/prelude/trait.CuMsgPayload.html index 9023b3d68..34de50273 100644 --- a/cu29/prelude/trait.CuMsgPayload.html +++ b/cu29/prelude/trait.CuMsgPayload.html @@ -1,4 +1,4 @@ -CuMsgPayload in cu29::prelude - Rust
cu29::prelude

Trait CuMsgPayload

Source
pub trait CuMsgPayload:
+CuMsgPayload in cu29::prelude - Rust
cu29::prelude

Trait CuMsgPayload

Source
pub trait CuMsgPayload:
     Sized
     + Default
     + Debug
diff --git a/cu29/prelude/trait.CuSinkTask.html b/cu29/prelude/trait.CuSinkTask.html
index 2efd46c95..ca809e7be 100644
--- a/cu29/prelude/trait.CuSinkTask.html
+++ b/cu29/prelude/trait.CuSinkTask.html
@@ -1,4 +1,4 @@
-CuSinkTask in cu29::prelude - Rust
cu29::prelude

Trait CuSinkTask

Source
pub trait CuSinkTask<'cl>: Freezable {
+CuSinkTask in cu29::prelude - Rust
cu29::prelude

Trait CuSinkTask

Source
pub trait CuSinkTask<'cl>: Freezable {
     type Input: CuMsgPack<'cl>;
 
     // Required methods
diff --git a/cu29/prelude/trait.CuSrcTask.html b/cu29/prelude/trait.CuSrcTask.html
index 4be4fec16..e28910bfe 100644
--- a/cu29/prelude/trait.CuSrcTask.html
+++ b/cu29/prelude/trait.CuSrcTask.html
@@ -1,4 +1,4 @@
-CuSrcTask in cu29::prelude - Rust
cu29::prelude

Trait CuSrcTask

Source
pub trait CuSrcTask<'cl>: Freezable {
+CuSrcTask in cu29::prelude - Rust
cu29::prelude

Trait CuSrcTask

Source
pub trait CuSrcTask<'cl>: Freezable {
     type Output: CuMsgPack<'cl>;
 
     // Required methods
diff --git a/cu29/prelude/trait.CuTask.html b/cu29/prelude/trait.CuTask.html
index 709ee2633..3ddca12ed 100644
--- a/cu29/prelude/trait.CuTask.html
+++ b/cu29/prelude/trait.CuTask.html
@@ -1,4 +1,4 @@
-CuTask in cu29::prelude - Rust
cu29::prelude

Trait CuTask

Source
pub trait CuTask<'cl>: Freezable {
+CuTask in cu29::prelude - Rust
cu29::prelude

Trait CuTask

Source
pub trait CuTask<'cl>: Freezable {
     type Input: CuMsgPack<'cl>;
     type Output: CuMsgPack<'cl>;
 
diff --git a/cu29/prelude/trait.Freezable.html b/cu29/prelude/trait.Freezable.html
index c8430b041..22e020bc8 100644
--- a/cu29/prelude/trait.Freezable.html
+++ b/cu29/prelude/trait.Freezable.html
@@ -1,4 +1,4 @@
-Freezable in cu29::prelude - Rust
cu29::prelude

Trait Freezable

Source
pub trait Freezable {
+Freezable in cu29::prelude - Rust
cu29::prelude

Trait Freezable

Source
pub trait Freezable {
     // Provided methods
     fn freeze<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
        where E: Encoder { ... }
diff --git a/cu29/prelude/trait.WriteStream.html b/cu29/prelude/trait.WriteStream.html
index 026736e27..ebff27b29 100644
--- a/cu29/prelude/trait.WriteStream.html
+++ b/cu29/prelude/trait.WriteStream.html
@@ -1,4 +1,4 @@
-WriteStream in cu29::prelude - Rust
cu29::prelude

Trait WriteStream

pub trait WriteStream<E>:
+WriteStream in cu29::prelude - Rust
cu29::prelude

Trait WriteStream

pub trait WriteStream<E>:
     Sync
     + Send
     + Debug
where diff --git a/cu29/prelude/type.AscIter.html b/cu29/prelude/type.AscIter.html index 1f922b47f..186a66c67 100644 --- a/cu29/prelude/type.AscIter.html +++ b/cu29/prelude/type.AscIter.html @@ -1 +1 @@ -AscIter in cu29::prelude - Rust
cu29::prelude

Type Alias AscIter

Source
pub type AscIter<'a, T> = Chain<Iter<'a, T>, Iter<'a, T>>;

Aliased Type§

struct AscIter<'a, T> { /* private fields */ }
\ No newline at end of file +AscIter in cu29::prelude - Rust
cu29::prelude

Type Alias AscIter

Source
pub type AscIter<'a, T> = Chain<Iter<'a, T>, Iter<'a, T>>;

Aliased Type§

struct AscIter<'a, T> { /* private fields */ }
\ No newline at end of file diff --git a/cu29/prelude/type.AscIterMut.html b/cu29/prelude/type.AscIterMut.html index eb791c062..cc7ef9c06 100644 --- a/cu29/prelude/type.AscIterMut.html +++ b/cu29/prelude/type.AscIterMut.html @@ -1 +1 @@ -AscIterMut in cu29::prelude - Rust
cu29::prelude

Type Alias AscIterMut

Source
pub type AscIterMut<'a, T> = Chain<IterMut<'a, T>, IterMut<'a, T>>;

Aliased Type§

struct AscIterMut<'a, T> { /* private fields */ }
\ No newline at end of file +AscIterMut in cu29::prelude - Rust
cu29::prelude

Type Alias AscIterMut

Source
pub type AscIterMut<'a, T> = Chain<IterMut<'a, T>, IterMut<'a, T>>;

Aliased Type§

struct AscIterMut<'a, T> { /* private fields */ }
\ No newline at end of file diff --git a/cu29/prelude/type.CuResult.html b/cu29/prelude/type.CuResult.html index f574e8578..3b15ecfc9 100644 --- a/cu29/prelude/type.CuResult.html +++ b/cu29/prelude/type.CuResult.html @@ -1,4 +1,4 @@ -CuResult in cu29::prelude - Rust
cu29::prelude

Type Alias CuResult

pub type CuResult<T> = Result<T, CuError>;

Aliased Type§

enum CuResult<T> {
+CuResult in cu29::prelude - Rust
cu29::prelude

Type Alias CuResult

pub type CuResult<T> = Result<T, CuError>;

Aliased Type§

enum CuResult<T> {
     Ok(T),
     Err(CuError),
 }

Variants§

§1.0.0

Ok(T)

Contains the success value

diff --git a/cu29/prelude/type.CuTime.html b/cu29/prelude/type.CuTime.html index a757dac9a..8b6e60202 100644 --- a/cu29/prelude/type.CuTime.html +++ b/cu29/prelude/type.CuTime.html @@ -1,2 +1,2 @@ -CuTime in cu29::prelude - Rust
cu29::prelude

Type Alias CuTime

pub type CuTime = CuDuration;
Expand description

A robot time is just a duration from a fixed point in time.

+CuTime in cu29::prelude - Rust
cu29::prelude

Type Alias CuTime

pub type CuTime = CuDuration;
Expand description

A robot time is just a duration from a fixed point in time.

Aliased Type§

struct CuTime(pub u64);

Fields§

§0: u64
\ No newline at end of file diff --git a/cu29/prelude/type.Iter.html b/cu29/prelude/type.Iter.html index 0d35fac98..94419ee84 100644 --- a/cu29/prelude/type.Iter.html +++ b/cu29/prelude/type.Iter.html @@ -1 +1 @@ -Iter in cu29::prelude - Rust
cu29::prelude

Type Alias Iter

Source
pub type Iter<'a, T> = Chain<Rev<Iter<'a, T>>, Rev<Iter<'a, T>>>;

Aliased Type§

struct Iter<'a, T> { /* private fields */ }
\ No newline at end of file +Iter in cu29::prelude - Rust
cu29::prelude

Type Alias Iter

Source
pub type Iter<'a, T> = Chain<Rev<Iter<'a, T>>, Rev<Iter<'a, T>>>;

Aliased Type§

struct Iter<'a, T> { /* private fields */ }
\ No newline at end of file diff --git a/cu29/prelude/type.IterMut.html b/cu29/prelude/type.IterMut.html index c79ab9fe9..667c905d9 100644 --- a/cu29/prelude/type.IterMut.html +++ b/cu29/prelude/type.IterMut.html @@ -1 +1 @@ -IterMut in cu29::prelude - Rust
cu29::prelude

Type Alias IterMut

Source
pub type IterMut<'a, T> = Chain<Rev<IterMut<'a, T>>, Rev<IterMut<'a, T>>>;

Aliased Type§

struct IterMut<'a, T> { /* private fields */ }
\ No newline at end of file +IterMut in cu29::prelude - Rust
cu29::prelude

Type Alias IterMut

Source
pub type IterMut<'a, T> = Chain<Rev<IterMut<'a, T>>, Rev<IterMut<'a, T>>>;

Aliased Type§

struct IterMut<'a, T> { /* private fields */ }
\ No newline at end of file diff --git a/cu29/prelude/type.NodeId.html b/cu29/prelude/type.NodeId.html index 029f397dc..d3be7c0b8 100644 --- a/cu29/prelude/type.NodeId.html +++ b/cu29/prelude/type.NodeId.html @@ -1,3 +1,3 @@ -NodeId in cu29::prelude - Rust
cu29::prelude

Type Alias NodeId

Source
pub type NodeId = u32;
Expand description

NodeId is the unique identifier of a node in the configuration graph for petgraph +NodeId in cu29::prelude - Rust

cu29::prelude

Type Alias NodeId

Source
pub type NodeId = u32;
Expand description

NodeId is the unique identifier of a node in the configuration graph for petgraph and the code generation.

\ No newline at end of file diff --git a/cu29/simulation/enum.CuTaskCallbackState.html b/cu29/simulation/enum.CuTaskCallbackState.html index 8c259d54d..2aa421b61 100644 --- a/cu29/simulation/enum.CuTaskCallbackState.html +++ b/cu29/simulation/enum.CuTaskCallbackState.html @@ -1,4 +1,4 @@ -CuTaskCallbackState in cu29::simulation - Rust
cu29::simulation

Enum CuTaskCallbackState

Source
pub enum CuTaskCallbackState<'cl, I, O>
where +CuTaskCallbackState in cu29::simulation - Rust
cu29::simulation

Enum CuTaskCallbackState

Source
pub enum CuTaskCallbackState<'cl, I, O>
where I: CuMsgPack<'cl>, O: CuMsgPack<'cl>,
{ New(Option<ComponentConfig>), diff --git a/cu29/simulation/enum.SimOverride.html b/cu29/simulation/enum.SimOverride.html index fa80c9281..c23cb094d 100644 --- a/cu29/simulation/enum.SimOverride.html +++ b/cu29/simulation/enum.SimOverride.html @@ -1,4 +1,4 @@ -SimOverride in cu29::simulation - Rust
cu29::simulation

Enum SimOverride

Source
pub enum SimOverride {
+SimOverride in cu29::simulation - Rust
cu29::simulation

Enum SimOverride

Source
pub enum SimOverride {
     ExecutedBySim,
     ExecuteByRuntime,
     Errored(String),
diff --git a/cu29/simulation/index.html b/cu29/simulation/index.html
index 04957d32e..db277859b 100644
--- a/cu29/simulation/index.html
+++ b/cu29/simulation/index.html
@@ -1,4 +1,4 @@
-cu29::simulation - Rust
cu29

Module simulation

Source
Expand description

§cu29::simulation Module

+cu29::simulation - Rust
cu29

Module simulation

Source
Expand description

§cu29::simulation Module

The cu29::simulation module provides an interface to simulate tasks in Copper-based systems. It offers structures, traits, and enums that enable hooking into the lifecycle of tasks, adapting their behavior, and integrating them with simulated hardware environments.

diff --git a/cu29/simulation/struct.CuSimSinkTask.html b/cu29/simulation/struct.CuSimSinkTask.html index c40c10a29..d81b61eab 100644 --- a/cu29/simulation/struct.CuSimSinkTask.html +++ b/cu29/simulation/struct.CuSimSinkTask.html @@ -1,4 +1,4 @@ -CuSimSinkTask in cu29::simulation - Rust
cu29::simulation

Struct CuSimSinkTask

Source
pub struct CuSimSinkTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a sink task for the simulations. +CuSimSinkTask in cu29::simulation - Rust

cu29::simulation

Struct CuSimSinkTask

Source
pub struct CuSimSinkTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a sink task for the simulations. It basically does nothing in place of a real driver so it won’t try to initialize any hardware.

Trait Implementations§

Source§

impl<'cl, T> CuSinkTask<'cl> for CuSimSinkTask<T>
where T: CuMsgPayload + 'cl,

Source§

type Input = &'cl CuMsg<T>

Source§

fn new(_config: Option<&ComponentConfig>) -> Result<CuSimSinkTask<T>, CuError>
where diff --git a/cu29/simulation/struct.CuSimSrcTask.html b/cu29/simulation/struct.CuSimSrcTask.html index 2dd33844b..7a588dd56 100644 --- a/cu29/simulation/struct.CuSimSrcTask.html +++ b/cu29/simulation/struct.CuSimSrcTask.html @@ -1,4 +1,4 @@ -CuSimSrcTask in cu29::simulation - Rust
cu29::simulation

Struct CuSimSrcTask

Source
pub struct CuSimSrcTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a source task for the simulations. +CuSimSrcTask in cu29::simulation - Rust

cu29::simulation

Struct CuSimSrcTask

Source
pub struct CuSimSrcTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a source task for the simulations. It basically does nothing in place of a real driver so it won’t try to initialize any hardware.

Trait Implementations§

Source§

impl<'cl, T> CuSrcTask<'cl> for CuSimSrcTask<T>
where T: CuMsgPayload + 'cl,

Source§

type Output = &'cl mut CuMsg<T>

Source§

fn new(_config: Option<&ComponentConfig>) -> Result<CuSimSrcTask<T>, CuError>
where diff --git a/cu29/struct.CuError.html b/cu29/struct.CuError.html index cbb5c4237..034495cf2 100644 --- a/cu29/struct.CuError.html +++ b/cu29/struct.CuError.html @@ -1,17 +1,17 @@ -CuError in cu29 - Rust
cu29

Struct CuError

pub struct CuError { /* private fields */ }
Expand description

Common copper Error type.

-

Implementations§

§

impl CuError

pub fn new_with_cause(message: &str, cause: impl Error) -> CuError

pub fn add_cause(self, context: &str) -> CuError

Trait Implementations§

§

impl Clone for CuError

§

fn clone(&self) -> CuError

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
§

impl Debug for CuError

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for CuError

§

fn deserialize<__D>( +CuError in cu29 - Rust
cu29

Struct CuError

pub struct CuError { /* private fields */ }
Expand description

Common copper Error type.

+

Implementations§

§

impl CuError

pub fn new_with_cause(message: &str, cause: impl Error) -> CuError

pub fn add_cause(self, context: &str) -> CuError

Trait Implementations§

§

impl Clone for CuError

§

fn clone(&self) -> CuError

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
§

impl Debug for CuError

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for CuError

§

fn deserialize<__D>( __deserializer: __D, -) -> Result<CuError, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

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

impl Display for CuError

§

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

Formats the value using the given formatter. Read more
§

impl Error for CuError

1.30.0 · Source§

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

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

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

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

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

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
§

impl From<&str> for CuError

§

fn from(s: &str) -> CuError

Converts to this type from the input type.
§

impl From<String> for CuError

§

fn from(s: String) -> CuError

Converts to this type from the input type.
§

impl Serialize for CuError

§

fn serialize<__S>( +) -> Result<CuError, <__D as Deserializer<'de>>::Error>
where + __D: Deserializer<'de>,

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

impl Display for CuError

§

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

Formats the value using the given formatter. Read more
§

impl Error for CuError

1.30.0 · Source§

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

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

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

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

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

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
§

impl From<&str> for CuError

§

fn from(s: &str) -> CuError

Converts to this type from the input type.
§

impl From<String> for CuError

§

fn from(s: String) -> CuError

Converts to this type from the input type.
§

impl Serialize for CuError

§

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> EncodableKey for T
where - T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Serialize,

§

fn to_bytes(&self) -> Result<Vec<u8>, DataError>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 @@ -21,6 +21,6 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

\ No newline at end of file diff --git a/cu29/trait.CopperListTuple.html b/cu29/trait.CopperListTuple.html index 3afba5eb4..14126b20a 100644 --- a/cu29/trait.CopperListTuple.html +++ b/cu29/trait.CopperListTuple.html @@ -1,4 +1,4 @@ -CopperListTuple in cu29 - Rust
cu29

Trait CopperListTuple

pub trait CopperListTuple:
+CopperListTuple in cu29 - Rust
cu29

Trait CopperListTuple

pub trait CopperListTuple:
     Sized
     + Encode
     + Decode
diff --git a/cu29/trait.WriteStream.html b/cu29/trait.WriteStream.html
index f74e0fdb4..35e1839f8 100644
--- a/cu29/trait.WriteStream.html
+++ b/cu29/trait.WriteStream.html
@@ -1,4 +1,4 @@
-WriteStream in cu29 - Rust
cu29

Trait WriteStream

pub trait WriteStream<E>:
+WriteStream in cu29 - Rust
cu29

Trait WriteStream

pub trait WriteStream<E>:
     Sync
     + Send
     + Debug
where diff --git a/cu29/type.CuResult.html b/cu29/type.CuResult.html index 750c7e463..f41ceac46 100644 --- a/cu29/type.CuResult.html +++ b/cu29/type.CuResult.html @@ -1,4 +1,4 @@ -CuResult in cu29 - Rust
cu29

Type Alias CuResult

pub type CuResult<T> = Result<T, CuError>;

Aliased Type§

enum CuResult<T> {
+CuResult in cu29 - Rust
cu29

Type Alias CuResult

pub type CuResult<T> = Result<T, CuError>;

Aliased Type§

enum CuResult<T> {
     Ok(T),
     Err(CuError),
 }

Variants§

§1.0.0

Ok(T)

Contains the success value

diff --git a/cu29_clock/all.html b/cu29_clock/all.html index 652ed28dd..74f3bebfb 100644 --- a/cu29_clock/all.html +++ b/cu29_clock/all.html @@ -1 +1 @@ -List of all items in this crate
\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/cu29_clock/enum.Tov.html b/cu29_clock/enum.Tov.html index c4e2d1cec..bbefc2844 100644 --- a/cu29_clock/enum.Tov.html +++ b/cu29_clock/enum.Tov.html @@ -1,4 +1,4 @@ -Tov in cu29_clock - Rust
cu29_clock

Enum Tov

Source
pub enum Tov {
+Tov in cu29_clock - Rust
cu29_clock

Enum Tov

Source
pub enum Tov {
     None,
     Time(CuTime),
     Range(CuTimeRange),
@@ -6,10 +6,10 @@
 For example a sub scan for a lidar, a set of images etc… can have a range of validity.

Variants§

§

None

§

Time(CuTime)

§

Range(CuTimeRange)

Trait Implementations§

Source§

impl<'__de> BorrowDecode<'__de> for Tov

Source§

fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, -) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for Tov

Source§

fn clone(&self) -> Tov

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 Debug for Tov

Source§

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

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

impl Decode for Tov

Source§

fn decode<__D: Decoder>(decoder: &mut __D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl Default for Tov

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for Tov

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Encode for Tov

Source§

fn encode<__E: Encoder>(&self, encoder: &mut __E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl From<CuDuration> for Tov

Source§

fn from(duration: CuDuration) -> Self

Converts to this type from the input type.
Source§

impl From<Option<CuDuration>> for Tov

Source§

fn from(duration: Option<CuDuration>) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Tov

Source§

fn eq(&self, other: &Tov) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for Tov

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Tov

Auto Trait Implementations§

§

impl Freeze for Tov

§

impl RefUnwindSafe for Tov

§

impl Send for Tov

§

impl Sync for Tov

§

impl Unpin for Tov

§

impl UnwindSafe for Tov

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.

Source§

impl Clone for Tov

Source§

fn clone(&self) -> Tov

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 Debug for Tov

Source§

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

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

impl Decode for Tov

Source§

fn decode<__D: Decoder>(decoder: &mut __D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl Default for Tov

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for Tov

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Encode for Tov

Source§

fn encode<__E: Encoder>(&self, encoder: &mut __E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl From<CuDuration> for Tov

Source§

fn from(duration: CuDuration) -> Self

Converts to this type from the input type.
Source§

impl From<Option<CuDuration>> for Tov

Source§

fn from(duration: Option<CuDuration>) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Tov

Source§

fn eq(&self, other: &Tov) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Serialize for Tov

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Tov

Auto Trait Implementations§

§

impl Freeze for Tov

§

impl RefUnwindSafe for Tov

§

impl Send for Tov

§

impl Sync for Tov

§

impl Unpin for Tov

§

impl UnwindSafe for Tov

Blanket Implementations§

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> 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 @@ -21,5 +21,5 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_clock/index.html b/cu29_clock/index.html index af5a4915c..c0f927182 100644 --- a/cu29_clock/index.html +++ b/cu29_clock/index.html @@ -1,4 +1,4 @@ -cu29_clock - Rust

Crate cu29_clock

Source

Structs§

Source§

impl Serialize for CuDuration

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Sub for CuDuration

Source§

type Output = CuDuration

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Copy for CuDuration

Source§

impl Eq for CuDuration

Source§

impl StructuralPartialEq for CuDuration

Auto Trait Implementations§

Blanket Implementations§

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> 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 @@ -27,5 +27,5 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_clock/struct.CuTimeRange.html b/cu29_clock/struct.CuTimeRange.html index 80c3d22fa..2693d31d5 100644 --- a/cu29_clock/struct.CuTimeRange.html +++ b/cu29_clock/struct.CuTimeRange.html @@ -1,15 +1,15 @@ -CuTimeRange in cu29_clock - Rust
cu29_clock

Struct CuTimeRange

Source
pub struct CuTimeRange {
+CuTimeRange in cu29_clock - Rust
cu29_clock

Struct CuTimeRange

Source
pub struct CuTimeRange {
     pub start: CuTime,
     pub end: CuTime,
 }
Expand description

Represents a time range.

Fields§

§start: CuTime§end: CuTime

Trait Implementations§

Source§

impl<'__de> BorrowDecode<'__de> for CuTimeRange

Source§

fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, -) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for CuTimeRange

Source§

fn clone(&self) -> CuTimeRange

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 Debug for CuTimeRange

Source§

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

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

impl Decode for CuTimeRange

Source§

fn decode<__D: Decoder>(decoder: &mut __D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl<'de> Deserialize<'de> for CuTimeRange

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Encode for CuTimeRange

Source§

fn encode<__E: Encoder>(&self, encoder: &mut __E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl From<&[CuDuration]> for CuTimeRange

Builds a time range from a slice of CuTime. +) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for CuTimeRange

Source§

fn clone(&self) -> CuTimeRange

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 Debug for CuTimeRange

Source§

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

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

impl Decode for CuTimeRange

Source§

fn decode<__D: Decoder>(decoder: &mut __D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl<'de> Deserialize<'de> for CuTimeRange

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Encode for CuTimeRange

Source§

fn encode<__E: Encoder>(&self, encoder: &mut __E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl From<&[CuDuration]> for CuTimeRange

Builds a time range from a slice of CuTime. This is an O(n) operation.

Source§

fn from(slice: &[CuTime]) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for CuTimeRange

Source§

fn eq(&self, other: &CuTimeRange) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for CuTimeRange

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for CuTimeRange

Source§

impl StructuralPartialEq for CuTimeRange

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +and should not be overridden without very good reason.

Source§

impl Serialize for CuTimeRange

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for CuTimeRange

Source§

impl StructuralPartialEq for CuTimeRange

Auto Trait Implementations§

Blanket Implementations§

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> 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 @@ -21,5 +21,5 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_clock/struct.Instant.html b/cu29_clock/struct.Instant.html index 66e891899..2ed61f79e 100644 --- a/cu29_clock/struct.Instant.html +++ b/cu29_clock/struct.Instant.html @@ -1,4 +1,4 @@ -Instant in cu29_clock - Rust
cu29_clock

Struct Instant

pub struct Instant(/* private fields */);
Expand description

A point-in-time wall-clock measurement.

+Instant in cu29_clock - Rust
cu29_clock

Struct Instant

pub struct Instant(/* private fields */);
Expand description

A point-in-time wall-clock measurement.

Mimics most of the functionality of std::time::Instant but provides an additional method for using the “recent time” feature of quanta.

§Monotonicity

diff --git a/cu29_clock/struct.OptionCuTime.html b/cu29_clock/struct.OptionCuTime.html index 364b71ac9..3509c1451 100644 --- a/cu29_clock/struct.OptionCuTime.html +++ b/cu29_clock/struct.OptionCuTime.html @@ -1,10 +1,10 @@ -OptionCuTime in cu29_clock - Rust
cu29_clock

Struct OptionCuTime

Source
pub struct OptionCuTime(/* private fields */);
Expand description

Homebrewed Option<CuDuration> to avoid using 128bits just to represent an Option.

+OptionCuTime in cu29_clock - Rust
cu29_clock

Struct OptionCuTime

Source
pub struct OptionCuTime(/* private fields */);
Expand description

Homebrewed Option<CuDuration> to avoid using 128bits just to represent an Option.

Implementations§

Source§

impl OptionCuTime

Source

pub fn is_none(&self) -> bool

Source

pub fn none() -> Self

Source

pub fn unwrap(self) -> CuTime

Trait Implementations§

Source§

impl<'__de> BorrowDecode<'__de> for OptionCuTime

Source§

fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, -) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for OptionCuTime

Source§

fn clone(&self) -> OptionCuTime

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 Debug for OptionCuTime

Source§

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

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

impl Decode for OptionCuTime

Source§

fn decode<__D: Decoder>(decoder: &mut __D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl Default for OptionCuTime

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for OptionCuTime

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Display for OptionCuTime

Source§

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

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

impl Encode for OptionCuTime

Source§

fn encode<__E: Encoder>(&self, encoder: &mut __E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl From<CuDuration> for OptionCuTime

Source§

fn from(val: CuTime) -> Self

Converts to this type from the input type.
Source§

impl From<Option<CuDuration>> for OptionCuTime

Source§

fn from(duration: Option<CuTime>) -> Self

Converts to this type from the input type.
Source§

impl From<OptionCuTime> for Option<CuTime>

Source§

fn from(val: OptionCuTime) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for OptionCuTime

Source§

fn eq(&self, other: &OptionCuTime) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for OptionCuTime

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for OptionCuTime

Source§

impl StructuralPartialEq for OptionCuTime

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for OptionCuTime

Source§

fn clone(&self) -> OptionCuTime

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 Debug for OptionCuTime

Source§

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

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

impl Decode for OptionCuTime

Source§

fn decode<__D: Decoder>(decoder: &mut __D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl Default for OptionCuTime

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for OptionCuTime

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Display for OptionCuTime

Source§

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

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

impl Encode for OptionCuTime

Source§

fn encode<__E: Encoder>(&self, encoder: &mut __E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl From<CuDuration> for OptionCuTime

Source§

fn from(val: CuTime) -> Self

Converts to this type from the input type.
Source§

impl From<Option<CuDuration>> for OptionCuTime

Source§

fn from(duration: Option<CuTime>) -> Self

Converts to this type from the input type.
Source§

impl From<OptionCuTime> for Option<CuTime>

Source§

fn from(val: OptionCuTime) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for OptionCuTime

Source§

fn eq(&self, other: &OptionCuTime) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Serialize for OptionCuTime

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for OptionCuTime

Source§

impl StructuralPartialEq for OptionCuTime

Auto Trait Implementations§

Blanket Implementations§

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> 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 @@ -17,5 +17,5 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_clock/struct.PartialCuTimeRange.html b/cu29_clock/struct.PartialCuTimeRange.html index 1d2877cae..a706eb79e 100644 --- a/cu29_clock/struct.PartialCuTimeRange.html +++ b/cu29_clock/struct.PartialCuTimeRange.html @@ -1,12 +1,12 @@ -PartialCuTimeRange in cu29_clock - Rust
cu29_clock

Struct PartialCuTimeRange

Source
pub struct PartialCuTimeRange {
+PartialCuTimeRange in cu29_clock - Rust
cu29_clock

Struct PartialCuTimeRange

Source
pub struct PartialCuTimeRange {
     pub start: OptionCuTime,
     pub end: OptionCuTime,
 }
Expand description

Represents a time range with possible undefined start or end or both.

Fields§

§start: OptionCuTime§end: OptionCuTime

Trait Implementations§

Source§

impl<'__de> BorrowDecode<'__de> for PartialCuTimeRange

Source§

fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, -) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for PartialCuTimeRange

Source§

fn clone(&self) -> PartialCuTimeRange

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 Debug for PartialCuTimeRange

Source§

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

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

impl Decode for PartialCuTimeRange

Source§

fn decode<__D: Decoder>(decoder: &mut __D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl Default for PartialCuTimeRange

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for PartialCuTimeRange

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Encode for PartialCuTimeRange

Source§

fn encode<__E: Encoder>(&self, encoder: &mut __E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl Serialize for PartialCuTimeRange

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for PartialCuTimeRange

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for PartialCuTimeRange

Source§

fn clone(&self) -> PartialCuTimeRange

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 Debug for PartialCuTimeRange

Source§

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

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

impl Decode for PartialCuTimeRange

Source§

fn decode<__D: Decoder>(decoder: &mut __D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl Default for PartialCuTimeRange

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for PartialCuTimeRange

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Encode for PartialCuTimeRange

Source§

fn encode<__E: Encoder>(&self, encoder: &mut __E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl Serialize for PartialCuTimeRange

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for PartialCuTimeRange

Auto Trait Implementations§

Blanket Implementations§

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> 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 @@ -18,5 +18,5 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_clock/struct.RobotClock.html b/cu29_clock/struct.RobotClock.html index 176d65ee0..22d16d68a 100644 --- a/cu29_clock/struct.RobotClock.html +++ b/cu29_clock/struct.RobotClock.html @@ -1,4 +1,4 @@ -RobotClock in cu29_clock - Rust
cu29_clock

Struct RobotClock

Source
pub struct RobotClock { /* private fields */ }
Expand description

A running Robot clock. +RobotClock in cu29_clock - Rust

cu29_clock

Struct RobotClock

Source
pub struct RobotClock { /* private fields */ }
Expand description

A running Robot clock. The clock is a monotonic clock that starts at an arbitrary reference time. It is clone resilient, ie a clone will be the same clock, even when mocked.

Implementations§

Source§

impl RobotClock

Source

pub fn new() -> Self

Creates a RobotClock using now as its reference time. diff --git a/cu29_clock/struct.RobotClockMock.html b/cu29_clock/struct.RobotClockMock.html index cb9601de9..2016d3bf3 100644 --- a/cu29_clock/struct.RobotClockMock.html +++ b/cu29_clock/struct.RobotClockMock.html @@ -1,4 +1,4 @@ -RobotClockMock in cu29_clock - Rust

cu29_clock

Struct RobotClockMock

Source
pub struct RobotClockMock(/* private fields */);
Expand description

A mock clock that can be controlled by the user.

+RobotClockMock in cu29_clock - Rust
cu29_clock

Struct RobotClockMock

Source
pub struct RobotClockMock(/* private fields */);
Expand description

A mock clock that can be controlled by the user.

Implementations§

Source§

impl RobotClockMock

Source

pub fn increment(&self, amount: Duration)

Source

pub fn decrement(&self, amount: Duration)

Decrements the time by the given amount. Be careful this brakes the monotonicity of the clock.

Source

pub fn value(&self) -> u64

Gets the current value of time.

diff --git a/cu29_clock/trait.ClockProvider.html b/cu29_clock/trait.ClockProvider.html index 370e3ab75..2569393d9 100644 --- a/cu29_clock/trait.ClockProvider.html +++ b/cu29_clock/trait.ClockProvider.html @@ -1,4 +1,4 @@ -ClockProvider in cu29_clock - Rust
cu29_clock

Trait ClockProvider

Source
pub trait ClockProvider {
+ClockProvider in cu29_clock - Rust
cu29_clock

Trait ClockProvider

Source
pub trait ClockProvider {
     // Required method
     fn get_clock(&self) -> RobotClock;
 }
Expand description

A trait to provide a clock to the runtime.

diff --git a/cu29_clock/type.CuTime.html b/cu29_clock/type.CuTime.html index 821cf0014..bf238305d 100644 --- a/cu29_clock/type.CuTime.html +++ b/cu29_clock/type.CuTime.html @@ -1,2 +1,2 @@ -CuTime in cu29_clock - Rust
cu29_clock

Type Alias CuTime

Source
pub type CuTime = CuDuration;
Expand description

A robot time is just a duration from a fixed point in time.

+CuTime in cu29_clock - Rust
cu29_clock

Type Alias CuTime

Source
pub type CuTime = CuDuration;
Expand description

A robot time is just a duration from a fixed point in time.

Aliased Type§

struct CuTime(pub u64);

Fields§

§0: u64
\ No newline at end of file diff --git a/cu29_derive/all.html b/cu29_derive/all.html index 485638036..1dd45cbf2 100644 --- a/cu29_derive/all.html +++ b/cu29_derive/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Macros

Attribute Macros

\ No newline at end of file +List of all items in this crate

List of all items

Macros

Attribute Macros

\ No newline at end of file diff --git a/cu29_derive/attr.copper_runtime.html b/cu29_derive/attr.copper_runtime.html index f72294ac0..44fa685cd 100644 --- a/cu29_derive/attr.copper_runtime.html +++ b/cu29_derive/attr.copper_runtime.html @@ -1,4 +1,4 @@ -copper_runtime in cu29_derive - Rust
cu29_derive

Attribute Macro copper_runtime

Source
#[copper_runtime]
Expand description

Adds #[copper_runtime(config = “path”, sim_mode = false/true)] to your application struct to generate the runtime. +copper_runtime in cu29_derive - Rust

cu29_derive

Attribute Macro copper_runtime

Source
#[copper_runtime]
Expand description

Adds #[copper_runtime(config = “path”, sim_mode = false/true)] to your application struct to generate the runtime. if sim_mode is ommited, it is set to false. This will add a “runtime” field to your struct and implement the “new” and “run” methods.

\ No newline at end of file diff --git a/cu29_derive/index.html b/cu29_derive/index.html index 0ebd8eaa2..5ebae59bf 100644 --- a/cu29_derive/index.html +++ b/cu29_derive/index.html @@ -1,4 +1,4 @@ -cu29_derive - Rust

Crate cu29_derive

Source

Macros§

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_rendercfg/config/struct.Value.html b/cu29_rendercfg/config/struct.Value.html index f39c3fcd1..1ab86eba1 100644 --- a/cu29_rendercfg/config/struct.Value.html +++ b/cu29_rendercfg/config/struct.Value.html @@ -1,8 +1,8 @@ -Value in cu29_rendercfg::config - Rust
cu29_rendercfg::config

Struct Value

Source
pub struct Value(Value);
Expand description

Wrapper around the ron::Value to allow for custom serialization.

-

Tuple Fields§

§0: Value

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

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 Debug for Value

Source§

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

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

impl<'de> Deserialize<'de> for Value

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Display for Value

Source§

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

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

impl From<String> for Value

Source§

fn from(value: String) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for String

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for bool

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for f64

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for i32

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for u32

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for u8

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(value: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Value

Source§

fn from(value: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Value

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Value

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Value

Source§

fn eq(&self, other: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for Value

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

Source§

impl<T> Any for T
where +Value in cu29_rendercfg::config - Rust
cu29_rendercfg::config

Struct Value

Source
pub struct Value(Value);
Expand description

Wrapper around the ron::Value to allow for custom serialization.

+

Tuple Fields§

§0: Value

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

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 Debug for Value

Source§

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

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

impl<'de> Deserialize<'de> for Value

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Display for Value

Source§

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

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

impl From<String> for Value

Source§

fn from(value: String) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for String

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for bool

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for f64

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for i32

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for u32

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for u8

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(value: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Value

Source§

fn from(value: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Value

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Value

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Value

Source§

fn eq(&self, other: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Serialize for Value

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

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> 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 @@ -16,5 +16,5 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_rendercfg/config/type.NodeId.html b/cu29_rendercfg/config/type.NodeId.html index 4afed36ec..126f48c90 100644 --- a/cu29_rendercfg/config/type.NodeId.html +++ b/cu29_rendercfg/config/type.NodeId.html @@ -1,3 +1,3 @@ -NodeId in cu29_rendercfg::config - Rust
cu29_rendercfg::config

Type Alias NodeId

Source
pub type NodeId = u32;
Expand description

NodeId is the unique identifier of a node in the configuration graph for petgraph +NodeId in cu29_rendercfg::config - Rust

cu29_rendercfg::config

Type Alias NodeId

Source
pub type NodeId = u32;
Expand description

NodeId is the unique identifier of a node in the configuration graph for petgraph and the code generation.

\ No newline at end of file diff --git a/cu29_rendercfg/enum.UnifiedLogType.html b/cu29_rendercfg/enum.UnifiedLogType.html index ebf42626c..3905fae31 100644 --- a/cu29_rendercfg/enum.UnifiedLogType.html +++ b/cu29_rendercfg/enum.UnifiedLogType.html @@ -1,4 +1,4 @@ -UnifiedLogType in cu29_rendercfg - Rust
cu29_rendercfg

Enum UnifiedLogType

pub enum UnifiedLogType {
+UnifiedLogType in cu29_rendercfg - Rust
cu29_rendercfg

Enum UnifiedLogType

pub enum UnifiedLogType {
     Empty,
     StructuredLogLine,
     CopperList,
diff --git a/cu29_rendercfg/fn.main.html b/cu29_rendercfg/fn.main.html
index c65db01b8..a2ec728b4 100644
--- a/cu29_rendercfg/fn.main.html
+++ b/cu29_rendercfg/fn.main.html
@@ -1,2 +1,2 @@
-main in cu29_rendercfg - Rust
cu29_rendercfg

Function main

Source
pub(crate) fn main() -> Result<()>
Expand description

Render the configuration file to a dot file then convert it to an SVG and optionally opens it with inkscape.

+main in cu29_rendercfg - Rust
cu29_rendercfg

Function main

Source
pub(crate) fn main() -> Result<()>
Expand description

Render the configuration file to a dot file then convert it to an SVG and optionally opens it with inkscape.

\ No newline at end of file diff --git a/cu29_rendercfg/index.html b/cu29_rendercfg/index.html index 37c4e7405..7b6224820 100644 --- a/cu29_rendercfg/index.html +++ b/cu29_rendercfg/index.html @@ -1,4 +1,4 @@ -cu29_rendercfg - Rust

Crate cu29_rendercfg

Source

Modules§

Auto Trait Implementations§

Blanket Implementations§

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> 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 @@ -22,5 +22,5 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_rendercfg/trait.CopperListTuple.html b/cu29_rendercfg/trait.CopperListTuple.html index 00049d29c..0ec89e99e 100644 --- a/cu29_rendercfg/trait.CopperListTuple.html +++ b/cu29_rendercfg/trait.CopperListTuple.html @@ -1,4 +1,4 @@ -CopperListTuple in cu29_rendercfg - Rust
cu29_rendercfg

Trait CopperListTuple

pub trait CopperListTuple:
+CopperListTuple in cu29_rendercfg - Rust
cu29_rendercfg

Trait CopperListTuple

pub trait CopperListTuple:
     Sized
     + Encode
     + Decode
diff --git a/cu29_rendercfg/trait.WriteStream.html b/cu29_rendercfg/trait.WriteStream.html
index d1193f01b..fb8a29b39 100644
--- a/cu29_rendercfg/trait.WriteStream.html
+++ b/cu29_rendercfg/trait.WriteStream.html
@@ -1,4 +1,4 @@
-WriteStream in cu29_rendercfg - Rust
cu29_rendercfg

Trait WriteStream

pub trait WriteStream<E>:
+WriteStream in cu29_rendercfg - Rust
cu29_rendercfg

Trait WriteStream

pub trait WriteStream<E>:
     Sync
     + Send
     + Debug
where diff --git a/cu29_rendercfg/type.CuResult.html b/cu29_rendercfg/type.CuResult.html index 4ec5d2243..107693d5d 100644 --- a/cu29_rendercfg/type.CuResult.html +++ b/cu29_rendercfg/type.CuResult.html @@ -1,4 +1,4 @@ -CuResult in cu29_rendercfg - Rust
cu29_rendercfg

Type Alias CuResult

pub type CuResult<T> = Result<T, CuError>;

Aliased Type§

enum CuResult<T> {
+CuResult in cu29_rendercfg - Rust
cu29_rendercfg

Type Alias CuResult

pub type CuResult<T> = Result<T, CuError>;

Aliased Type§

enum CuResult<T> {
     Ok(T),
     Err(CuError),
 }

Variants§

§1.0.0

Ok(T)

Contains the success value

diff --git a/cu29_runtime/all.html b/cu29_runtime/all.html index df9185d39..481f60615 100644 --- a/cu29_runtime/all.html +++ b/cu29_runtime/all.html @@ -1 +1 @@ -List of all items in this crate
\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/cu29_runtime/config/fn.read_configuration.html b/cu29_runtime/config/fn.read_configuration.html index 3a1b17301..bb92fd92a 100644 --- a/cu29_runtime/config/fn.read_configuration.html +++ b/cu29_runtime/config/fn.read_configuration.html @@ -1,2 +1,2 @@ -read_configuration in cu29_runtime::config - Rust
cu29_runtime::config

Function read_configuration

Source
pub fn read_configuration(config_filename: &str) -> CuResult<CuConfig>
Expand description

Read a copper configuration from a file.

+read_configuration in cu29_runtime::config - Rust
cu29_runtime::config

Function read_configuration

Source
pub fn read_configuration(config_filename: &str) -> CuResult<CuConfig>
Expand description

Read a copper configuration from a file.

\ No newline at end of file diff --git a/cu29_runtime/config/fn.read_configuration_str.html b/cu29_runtime/config/fn.read_configuration_str.html index f01620abf..9fe9102cd 100644 --- a/cu29_runtime/config/fn.read_configuration_str.html +++ b/cu29_runtime/config/fn.read_configuration_str.html @@ -1,2 +1,2 @@ -read_configuration_str in cu29_runtime::config - Rust
cu29_runtime::config

Function read_configuration_str

Source
pub fn read_configuration_str(config_content: String) -> CuResult<CuConfig>
Expand description

Read a copper configuration from a file.

+read_configuration_str in cu29_runtime::config - Rust
cu29_runtime::config

Function read_configuration_str

Source
pub fn read_configuration_str(config_content: String) -> CuResult<CuConfig>
Expand description

Read a copper configuration from a file.

\ No newline at end of file diff --git a/cu29_runtime/config/index.html b/cu29_runtime/config/index.html index 523a9d2b5..0624dbb64 100644 --- a/cu29_runtime/config/index.html +++ b/cu29_runtime/config/index.html @@ -1,4 +1,4 @@ -cu29_runtime::config - Rust
cu29_runtime

Module config

Source
Expand description

This module defines the configuration of the copper runtime. +cu29_runtime::config - Rust

cu29_runtime

Module config

Source
Expand description

This module defines the configuration of the copper runtime. The configuration is a directed graph where nodes are tasks and edges are connections between tasks. The configuration is serialized in the RON format. The configuration is used to generate the runtime code at compile time.

diff --git a/cu29_runtime/config/struct.Cnx.html b/cu29_runtime/config/struct.Cnx.html index 633c51918..686ef76bc 100644 --- a/cu29_runtime/config/struct.Cnx.html +++ b/cu29_runtime/config/struct.Cnx.html @@ -1,4 +1,4 @@ -Cnx in cu29_runtime::config - Rust
cu29_runtime::config

Struct Cnx

Source
pub struct Cnx {
+Cnx in cu29_runtime::config - Rust
cu29_runtime::config

Struct Cnx

Source
pub struct Cnx {
     pub msg: String,
     pub batch: Option<u32>,
     pub store: Option<bool>,
@@ -9,9 +9,9 @@
 If None, Copper will just send 1 message at a time.
 If Some(n), Copper will batch n messages before sending the buffer.

§store: Option<bool>

Tells Copper if it needs to log the messages.

-

Trait Implementations§

Source§

impl Clone for Cnx

Source§

fn clone(&self) -> Cnx

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 Debug for Cnx

Source§

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

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

impl<'de> Deserialize<'de> for Cnx

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for Cnx

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Cnx

§

impl RefUnwindSafe for Cnx

§

impl Send for Cnx

§

impl Sync for Cnx

§

impl Unpin for Cnx

§

impl UnwindSafe for Cnx

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for Cnx

Source§

fn clone(&self) -> Cnx

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 Debug for Cnx

Source§

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

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

impl<'de> Deserialize<'de> for Cnx

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for Cnx

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Cnx

§

impl RefUnwindSafe for Cnx

§

impl Send for Cnx

§

impl Sync for Cnx

§

impl Unpin for Cnx

§

impl UnwindSafe for Cnx

Blanket Implementations§

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> 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 @@ -23,5 +23,5 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_runtime/config/struct.ComponentConfig.html b/cu29_runtime/config/struct.ComponentConfig.html index fae8d922c..272c6f8bf 100644 --- a/cu29_runtime/config/struct.ComponentConfig.html +++ b/cu29_runtime/config/struct.ComponentConfig.html @@ -1,9 +1,9 @@ -ComponentConfig in cu29_runtime::config - Rust
cu29_runtime::config

Struct ComponentConfig

Source
pub struct ComponentConfig(pub HashMap<String, Value>);
Expand description

This is the configuration of a component (like a task config or a monitoring config):w +ComponentConfig in cu29_runtime::config - Rust

cu29_runtime::config

Struct ComponentConfig

Source
pub struct ComponentConfig(pub HashMap<String, Value>);
Expand description

This is the configuration of a component (like a task config or a monitoring config):w It is a map of key-value pairs. It is given to the new method of the task implementation.

-

Tuple Fields§

§0: HashMap<String, Value>

Implementations§

Source§

impl ComponentConfig

Source

pub fn new() -> Self

Source

pub fn get<T: From<Value>>(&self, key: &str) -> Option<T>

Source

pub fn set<T: Into<Value>>(&mut self, key: &str, value: T)

Trait Implementations§

Source§

impl Clone for ComponentConfig

Source§

fn clone(&self) -> ComponentConfig

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 Debug for ComponentConfig

Source§

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

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

impl Default for ComponentConfig

Source§

fn default() -> ComponentConfig

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

impl<'de> Deserialize<'de> for ComponentConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Display for ComponentConfig

Source§

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

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

impl Serialize for ComponentConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Tuple Fields§

§0: HashMap<String, Value>

Implementations§

Source§

impl ComponentConfig

Source

pub fn new() -> Self

Source

pub fn get<T: From<Value>>(&self, key: &str) -> Option<T>

Source

pub fn set<T: Into<Value>>(&mut self, key: &str, value: T)

Trait Implementations§

Source§

impl Clone for ComponentConfig

Source§

fn clone(&self) -> ComponentConfig

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 Debug for ComponentConfig

Source§

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

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

impl Default for ComponentConfig

Source§

fn default() -> ComponentConfig

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

impl<'de> Deserialize<'de> for ComponentConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Display for ComponentConfig

Source§

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

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

impl Serialize for ComponentConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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 @@ -17,5 +17,5 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_runtime/config/struct.CuConfig.html b/cu29_runtime/config/struct.CuConfig.html index 029878b89..b1a15abe6 100644 --- a/cu29_runtime/config/struct.CuConfig.html +++ b/cu29_runtime/config/struct.CuConfig.html @@ -1,4 +1,4 @@ -CuConfig in cu29_runtime::config - Rust
cu29_runtime::config

Struct CuConfig

Source
pub struct CuConfig {
+CuConfig in cu29_runtime::config - Rust
cu29_runtime::config

Struct CuConfig

Source
pub struct CuConfig {
     pub graph: StableDiGraph<Node, Cnx, NodeId>,
     /* private fields */
 }
Expand description

CuConfig is the programmatic representation of the configuration graph. @@ -26,10 +26,10 @@

Source

pub fn connect(&mut self, source: NodeId, target: NodeId, msg_type: &str)

Adds an edge between two nodes/tasks in the configuration graph. msg_type is the type of message exchanged between the two nodes/tasks.

Source

pub fn serialize_ron(&self) -> String

Source

pub fn deserialize_ron(ron: &str) -> Self

Source

pub fn render(&self, output: &mut dyn Write)

Render the configuration graph in the dot format.

-
Source

pub fn get_all_instances_configs(&self) -> Vec<Option<&ComponentConfig>>

Source

pub fn get_monitor_config(&self) -> Option<&MonitorConfig>

Trait Implementations§

Source§

impl Clone for CuConfig

Source§

fn clone(&self) -> CuConfig

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 Debug for CuConfig

Source§

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

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

impl Default for CuConfig

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for CuConfig

Source§

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

This is a custom serialization to make this implementation independent of petgraph.

-
Source§

impl Serialize for CuConfig

Source§

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

This is a custom serialization to make this implementation independent of petgraph.

+
Source

pub fn get_all_instances_configs(&self) -> Vec<Option<&ComponentConfig>>

Source

pub fn get_monitor_config(&self) -> Option<&MonitorConfig>

Trait Implementations§

Source§

impl Clone for CuConfig

Source§

fn clone(&self) -> CuConfig

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 Debug for CuConfig

Source§

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

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

impl Default for CuConfig

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for CuConfig

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where + D: Deserializer<'de>,

This is a custom serialization to make this implementation independent of petgraph.

+
Source§

impl Serialize for CuConfig

Source§

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

This is a custom serialization to make this implementation independent of petgraph.

Auto Trait Implementations§

Blanket Implementations§

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> 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 @@ -42,5 +42,5 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_runtime/config/struct.MonitorConfig.html b/cu29_runtime/config/struct.MonitorConfig.html index d688129b1..d457b805c 100644 --- a/cu29_runtime/config/struct.MonitorConfig.html +++ b/cu29_runtime/config/struct.MonitorConfig.html @@ -1,6 +1,6 @@ -MonitorConfig in cu29_runtime::config - Rust
cu29_runtime::config

Struct MonitorConfig

Source
pub struct MonitorConfig { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Clone for MonitorConfig

Source§

fn clone(&self) -> MonitorConfig

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 Debug for MonitorConfig

Source§

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

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

impl Default for MonitorConfig

Source§

fn default() -> MonitorConfig

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

impl<'de> Deserialize<'de> for MonitorConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for MonitorConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +MonitorConfig in cu29_runtime::config - Rust
cu29_runtime::config

Struct MonitorConfig

Source
pub struct MonitorConfig { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Clone for MonitorConfig

Source§

fn clone(&self) -> MonitorConfig

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 Debug for MonitorConfig

Source§

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

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

impl Default for MonitorConfig

Source§

fn default() -> MonitorConfig

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

impl<'de> Deserialize<'de> for MonitorConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for MonitorConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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 @@ -12,5 +12,5 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_runtime/config/struct.Node.html b/cu29_runtime/config/struct.Node.html index 2354f2923..57cad1fe0 100644 --- a/cu29_runtime/config/struct.Node.html +++ b/cu29_runtime/config/struct.Node.html @@ -1,8 +1,8 @@ -Node in cu29_runtime::config - Rust
cu29_runtime::config

Struct Node

Source
pub struct Node { /* private fields */ }
Expand description

A node in the configuration graph. +Node in cu29_runtime::config - Rust

cu29_runtime::config

Struct Node

Source
pub struct Node { /* private fields */ }
Expand description

A node in the configuration graph. A node represents a Task in the system Graph.

-

Implementations§

Source§

impl Node

Source

pub fn new(id: &str, ptype: &str) -> Self

Source

pub fn get_id(&self) -> String

Source

pub fn set_type(self, name: Option<String>) -> Self

Source

pub fn get_type(&self) -> &str

Source

pub fn get_instance_config(&self) -> Option<&ComponentConfig>

Source

pub fn get_param<T: From<Value>>(&self, key: &str) -> Option<T>

Source

pub fn set_param<T: Into<Value>>(&mut self, key: &str, value: T)

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Node

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 Debug for Node

Source§

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

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

impl<'de> Deserialize<'de> for Node

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for Node

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

Source§

impl<T> Any for T
where +

Implementations§

Source§

impl Node

Source

pub fn new(id: &str, ptype: &str) -> Self

Source

pub fn get_id(&self) -> String

Source

pub fn set_type(self, name: Option<String>) -> Self

Source

pub fn get_type(&self) -> &str

Source

pub fn get_instance_config(&self) -> Option<&ComponentConfig>

Source

pub fn get_param<T: From<Value>>(&self, key: &str) -> Option<T>

Source

pub fn set_param<T: Into<Value>>(&mut self, key: &str, value: T)

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Node

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 Debug for Node

Source§

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

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

impl<'de> Deserialize<'de> for Node

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for Node

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

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> 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 @@ -14,5 +14,5 @@

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> 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_runtime/config/struct.Value.html b/cu29_runtime/config/struct.Value.html index 7e9586237..0afb477ae 100644 --- a/cu29_runtime/config/struct.Value.html +++ b/cu29_runtime/config/struct.Value.html @@ -1,8 +1,8 @@ -Value in cu29_runtime::config - Rust
cu29_runtime::config

Struct Value

Source
pub struct Value(/* private fields */);
Expand description

Wrapper around the ron::Value to allow for custom serialization.

-

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

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 Debug for Value

Source§

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

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

impl<'de> Deserialize<'de> for Value

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Display for Value

Source§

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

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

impl From<String> for Value

Source§

fn from(value: String) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for String

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for bool

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for f64

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for i32

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for u32

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for u8

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(value: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Value

Source§

fn from(value: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Value

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Value

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Value

Source§

fn eq(&self, other: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for Value

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

Source§

impl<T> Any for T
where +Value in cu29_runtime::config - Rust
cu29_runtime::config

Struct Value

Source
pub struct Value(/* private fields */);
Expand description

Wrapper around the ron::Value to allow for custom serialization.

+

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

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 Debug for Value

Source§

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

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

impl<'de> Deserialize<'de> for Value

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Display for Value

Source§

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

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

impl From<String> for Value

Source§

fn from(value: String) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for String

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for bool

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for f64

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for i32

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for u32

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for u8

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(value: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Value

Source§

fn from(value: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Value

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Value

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Value

Source§

fn eq(&self, other: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Serialize for Value

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

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> 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 @@ -16,5 +16,5 @@ 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_runtime/config/type.NodeId.html b/cu29_runtime/config/type.NodeId.html index d5f7bef02..ddcaa3d3d 100644 --- a/cu29_runtime/config/type.NodeId.html +++ b/cu29_runtime/config/type.NodeId.html @@ -1,3 +1,3 @@ -NodeId in cu29_runtime::config - Rust
cu29_runtime::config

Type Alias NodeId

Source
pub type NodeId = u32;
Expand description

NodeId is the unique identifier of a node in the configuration graph for petgraph +NodeId in cu29_runtime::config - Rust

cu29_runtime::config

Type Alias NodeId

Source
pub type NodeId = u32;
Expand description

NodeId is the unique identifier of a node in the configuration graph for petgraph and the code generation.

\ No newline at end of file diff --git a/cu29_runtime/copperlist/enum.CopperListState.html b/cu29_runtime/copperlist/enum.CopperListState.html index c4044144c..5b908d2c0 100644 --- a/cu29_runtime/copperlist/enum.CopperListState.html +++ b/cu29_runtime/copperlist/enum.CopperListState.html @@ -1,4 +1,4 @@ -CopperListState in cu29_runtime::copperlist - Rust
cu29_runtime::copperlist

Enum CopperListState

Source
pub enum CopperListState {
+CopperListState in cu29_runtime::copperlist - Rust
cu29_runtime::copperlist

Enum CopperListState

Source
pub enum CopperListState {
     Free,
     Initialized,
     Processing,
@@ -8,8 +8,8 @@
 

Variants§

§

Free

§

Initialized

§

Processing

§

DoneProcessing

§

BeingSerialized

Trait Implementations§

Source§

impl<'__de> BorrowDecode<'__de> for CopperListState

Source§

fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, ) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.
Source§

impl Clone for CopperListState

Source§

fn clone(&self) -> CopperListState

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 Debug for CopperListState

Source§

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

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

impl Decode for CopperListState

Source§

fn decode<__D: Decoder>(decoder: &mut __D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl Display for CopperListState

Source§

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

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

impl Encode for CopperListState

Source§

fn encode<__E: Encoder>(&self, encoder: &mut __E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl PartialEq for CopperListState

Source§

fn eq(&self, other: &CopperListState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Serialize for CopperListState

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for CopperListState

Source§

impl StructuralPartialEq for CopperListState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +and should not be overridden without very good reason.

Source§

impl Serialize for CopperListState

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for CopperListState

Source§

impl StructuralPartialEq for CopperListState

Auto Trait Implementations§

Blanket Implementations§

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> 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 diff --git a/cu29_runtime/copperlist/index.html b/cu29_runtime/copperlist/index.html index 8b585ac0c..62cd9984f 100644 --- a/cu29_runtime/copperlist/index.html +++ b/cu29_runtime/copperlist/index.html @@ -1,4 +1,4 @@ -cu29_runtime::copperlist - Rust
cu29_runtime

Module copperlist

Source
Expand description

CopperList is the main data structure used by Copper to communicate between tasks. +cu29_runtime::copperlist - Rust

cu29_runtime

Module copperlist

Source
Expand description

CopperList is the main data structure used by Copper to communicate between tasks. It is a queue that can be used to store preallocated messages between tasks in memory order.

Structs§

\ No newline at end of file + T: Default + Debug + Clone + Encode + Decode,

Source§

impl<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_runtime/cutask/trait.CuMsgPack.html b/cu29_runtime/cutask/trait.CuMsgPack.html index 6b4f1bd39..db902c131 100644 --- a/cu29_runtime/cutask/trait.CuMsgPack.html +++ b/cu29_runtime/cutask/trait.CuMsgPack.html @@ -1 +1 @@ -CuMsgPack in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait CuMsgPack

Source
pub trait CuMsgPack<'cl> { }

Implementations on Foreign Types§

Source§

impl<'cl> CuMsgPack<'cl> for ()

Source§

impl<'cl, T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>)

Source§

impl<'cl, T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl, T3: CuMsgPayload + 'cl> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>, &'cl CuMsg<T3>)

Source§

impl<'cl, T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl, T3: CuMsgPayload + 'cl, T4: CuMsgPayload + 'cl> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>, &'cl CuMsg<T3>, &'cl CuMsg<T4>)

Source§

impl<'cl, T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl, T3: CuMsgPayload + 'cl, T4: CuMsgPayload + 'cl, T5: CuMsgPayload + 'cl> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>, &'cl CuMsg<T3>, &'cl CuMsg<T4>, &'cl CuMsg<T5>)

Source§

impl<'cl, T: CuMsgPayload> CuMsgPack<'cl> for (&'cl CuMsg<T>,)

Source§

impl<'cl, T: CuMsgPayload> CuMsgPack<'cl> for (&'cl mut CuMsg<T>,)

Implementors§

Source§

impl<'cl, T: CuMsgPayload> CuMsgPack<'cl> for &'cl CuMsg<T>

Source§

impl<'cl, T: CuMsgPayload> CuMsgPack<'cl> for &'cl mut CuMsg<T>

\ No newline at end of file +CuMsgPack in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait CuMsgPack

Source
pub trait CuMsgPack<'cl> { }

Implementations on Foreign Types§

Source§

impl<'cl> CuMsgPack<'cl> for ()

Source§

impl<'cl, T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>)

Source§

impl<'cl, T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl, T3: CuMsgPayload + 'cl> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>, &'cl CuMsg<T3>)

Source§

impl<'cl, T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl, T3: CuMsgPayload + 'cl, T4: CuMsgPayload + 'cl> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>, &'cl CuMsg<T3>, &'cl CuMsg<T4>)

Source§

impl<'cl, T1: CuMsgPayload + 'cl, T2: CuMsgPayload + 'cl, T3: CuMsgPayload + 'cl, T4: CuMsgPayload + 'cl, T5: CuMsgPayload + 'cl> CuMsgPack<'cl> for (&'cl CuMsg<T1>, &'cl CuMsg<T2>, &'cl CuMsg<T3>, &'cl CuMsg<T4>, &'cl CuMsg<T5>)

Source§

impl<'cl, T: CuMsgPayload> CuMsgPack<'cl> for (&'cl CuMsg<T>,)

Source§

impl<'cl, T: CuMsgPayload> CuMsgPack<'cl> for (&'cl mut CuMsg<T>,)

Implementors§

Source§

impl<'cl, T: CuMsgPayload> CuMsgPack<'cl> for &'cl CuMsg<T>

Source§

impl<'cl, T: CuMsgPayload> CuMsgPack<'cl> for &'cl mut CuMsg<T>

\ No newline at end of file diff --git a/cu29_runtime/cutask/trait.CuMsgPayload.html b/cu29_runtime/cutask/trait.CuMsgPayload.html index 424aec1b7..c4c9f1753 100644 --- a/cu29_runtime/cutask/trait.CuMsgPayload.html +++ b/cu29_runtime/cutask/trait.CuMsgPayload.html @@ -1,4 +1,4 @@ -CuMsgPayload in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait CuMsgPayload

Source
pub trait CuMsgPayload:
+CuMsgPayload in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait CuMsgPayload

Source
pub trait CuMsgPayload:
     Default
     + Debug
     + Clone
diff --git a/cu29_runtime/cutask/trait.CuSinkTask.html b/cu29_runtime/cutask/trait.CuSinkTask.html
index dfc7508a4..aeca611c7 100644
--- a/cu29_runtime/cutask/trait.CuSinkTask.html
+++ b/cu29_runtime/cutask/trait.CuSinkTask.html
@@ -1,4 +1,4 @@
-CuSinkTask in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait CuSinkTask

Source
pub trait CuSinkTask<'cl>: Freezable {
+CuSinkTask in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait CuSinkTask

Source
pub trait CuSinkTask<'cl>: Freezable {
     type Input: CuMsgPack<'cl>;
 
     // Required methods
diff --git a/cu29_runtime/cutask/trait.CuSrcTask.html b/cu29_runtime/cutask/trait.CuSrcTask.html
index 89c297878..d51c2b9fa 100644
--- a/cu29_runtime/cutask/trait.CuSrcTask.html
+++ b/cu29_runtime/cutask/trait.CuSrcTask.html
@@ -1,4 +1,4 @@
-CuSrcTask in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait CuSrcTask

Source
pub trait CuSrcTask<'cl>: Freezable {
+CuSrcTask in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait CuSrcTask

Source
pub trait CuSrcTask<'cl>: Freezable {
     type Output: CuMsgPack<'cl>;
 
     // Required methods
diff --git a/cu29_runtime/cutask/trait.CuTask.html b/cu29_runtime/cutask/trait.CuTask.html
index 59a324ce7..e339ba984 100644
--- a/cu29_runtime/cutask/trait.CuTask.html
+++ b/cu29_runtime/cutask/trait.CuTask.html
@@ -1,4 +1,4 @@
-CuTask in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait CuTask

Source
pub trait CuTask<'cl>: Freezable {
+CuTask in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait CuTask

Source
pub trait CuTask<'cl>: Freezable {
     type Input: CuMsgPack<'cl>;
     type Output: CuMsgPack<'cl>;
 
diff --git a/cu29_runtime/cutask/trait.Freezable.html b/cu29_runtime/cutask/trait.Freezable.html
index 01d2d9261..c9979b4c4 100644
--- a/cu29_runtime/cutask/trait.Freezable.html
+++ b/cu29_runtime/cutask/trait.Freezable.html
@@ -1,4 +1,4 @@
-Freezable in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait Freezable

Source
pub trait Freezable {
+Freezable in cu29_runtime::cutask - Rust
cu29_runtime::cutask

Trait Freezable

Source
pub trait Freezable {
     // Provided methods
     fn freeze<E: Encoder>(&self, encoder: &mut E) -> Result<(), EncodeError> { ... }
     fn thaw<D: Decoder>(&mut self, decoder: &mut D) -> Result<(), DecodeError> { ... }
diff --git a/cu29_runtime/index.html b/cu29_runtime/index.html
index f7bfd0fe6..b31d7f284 100644
--- a/cu29_runtime/index.html
+++ b/cu29_runtime/index.html
@@ -1,4 +1,4 @@
-cu29_runtime - Rust

Crate cu29_runtime

Source
Expand description
logo +cu29_runtime - Rust

Crate cu29_runtime

Source
Expand description
logo

§

§Copper

copper GitHub last commit diff --git a/cu29_runtime/macro.input_msg.html b/cu29_runtime/macro.input_msg.html index 2050d58ca..5c38e67d8 100644 --- a/cu29_runtime/macro.input_msg.html +++ b/cu29_runtime/macro.input_msg.html @@ -1,4 +1,4 @@ -input_msg in cu29_runtime - Rust

cu29_runtime

Macro input_msg

Source
macro_rules! input_msg {
+input_msg in cu29_runtime - Rust
cu29_runtime

Macro input_msg

Source
macro_rules! input_msg {
     ($lifetime:lifetime, $ty:ty) => { ... };
     ($lifetime:lifetime, $($ty:ty),*) => { ... };
 }
\ No newline at end of file diff --git a/cu29_runtime/macro.output_msg.html b/cu29_runtime/macro.output_msg.html index 160b29163..be7d49dfc 100644 --- a/cu29_runtime/macro.output_msg.html +++ b/cu29_runtime/macro.output_msg.html @@ -1,3 +1,3 @@ -output_msg in cu29_runtime - Rust
cu29_runtime

Macro output_msg

Source
macro_rules! output_msg {
+output_msg in cu29_runtime - Rust
cu29_runtime

Macro output_msg

Source
macro_rules! output_msg {
     ($lifetime:lifetime, $ty:ty) => { ... };
 }
\ No newline at end of file diff --git a/cu29_runtime/monitoring/enum.CuTaskState.html b/cu29_runtime/monitoring/enum.CuTaskState.html index b13be512c..f19539173 100644 --- a/cu29_runtime/monitoring/enum.CuTaskState.html +++ b/cu29_runtime/monitoring/enum.CuTaskState.html @@ -1,13 +1,13 @@ -CuTaskState in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Enum CuTaskState

Source
pub enum CuTaskState {
+CuTaskState in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Enum CuTaskState

Source
pub enum CuTaskState {
     Start,
     Preprocess,
     Process,
     Postprocess,
     Stop,
 }
Expand description

The state of a task.

-

Variants§

§

Start

§

Preprocess

§

Process

§

Postprocess

§

Stop

Trait Implementations§

Source§

impl Debug for CuTaskState

Source§

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

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

impl<'de> Deserialize<'de> for CuTaskState

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

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

impl Serialize for CuTaskState

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Variants§

§

Start

§

Preprocess

§

Process

§

Postprocess

§

Stop

Trait Implementations§

Source§

impl Debug for CuTaskState

Source§

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

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

impl<'de> Deserialize<'de> for CuTaskState

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where + __D: Deserializer<'de>,

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

impl Serialize for CuTaskState

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

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> 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

@@ -17,5 +17,5 @@ From<T> for U chooses to do.

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<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<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

\ No newline at end of file + 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<T> DeserializeOwned for T
where + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/cu29_runtime/monitoring/enum.Decision.html b/cu29_runtime/monitoring/enum.Decision.html index 31fbc9df2..521b69cfe 100644 --- a/cu29_runtime/monitoring/enum.Decision.html +++ b/cu29_runtime/monitoring/enum.Decision.html @@ -1,4 +1,4 @@ -Decision in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Enum Decision

Source
pub enum Decision {
+Decision in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Enum Decision

Source
pub enum Decision {
     Abort,
     Ignore,
     Shutdown,
diff --git a/cu29_runtime/monitoring/index.html b/cu29_runtime/monitoring/index.html
index 563691494..ccff8890f 100644
--- a/cu29_runtime/monitoring/index.html
+++ b/cu29_runtime/monitoring/index.html
@@ -1,4 +1,4 @@
-cu29_runtime::monitoring - Rust
cu29_runtime

Module monitoring

Source
Expand description

Some basic internal monitoring tooling Copper uses to monitor itself and the tasks it is running.

+cu29_runtime::monitoring - Rust
cu29_runtime

Module monitoring

Source
Expand description

Some basic internal monitoring tooling Copper uses to monitor itself and the tasks it is running.

Structs§

  • A simple allocator that counts the number of bytes allocated and deallocated.
  • A Specialized statistics object for CuDuration. It will also keep track of the jitter between the values.
  • Accumulative stat object that can give your some real time statistics.
  • A do nothing monitor if no monitor is provided. This is basically defining the default behavior of Copper in case of error.
  • A simple struct that counts the number of bytes allocated and deallocated in a scope.

Enums§

Statics§

Traits§

  • Trait to implement a monitoring task.
\ No newline at end of file diff --git a/cu29_runtime/monitoring/static.GLOBAL.html b/cu29_runtime/monitoring/static.GLOBAL.html index 963b4d158..0bc12e03d 100644 --- a/cu29_runtime/monitoring/static.GLOBAL.html +++ b/cu29_runtime/monitoring/static.GLOBAL.html @@ -1 +1 @@ -GLOBAL in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Static GLOBAL

Source
pub static GLOBAL: CountingAllocator
\ No newline at end of file +GLOBAL in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Static GLOBAL

Source
pub static GLOBAL: CountingAllocator
\ No newline at end of file diff --git a/cu29_runtime/monitoring/struct.CountingAllocator.html b/cu29_runtime/monitoring/struct.CountingAllocator.html index 6f26ae07d..307da712f 100644 --- a/cu29_runtime/monitoring/struct.CountingAllocator.html +++ b/cu29_runtime/monitoring/struct.CountingAllocator.html @@ -1,4 +1,4 @@ -CountingAllocator in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Struct CountingAllocator

Source
pub struct CountingAllocator { /* private fields */ }
Expand description

A simple allocator that counts the number of bytes allocated and deallocated.

+CountingAllocator in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Struct CountingAllocator

Source
pub struct CountingAllocator { /* private fields */ }
Expand description

A simple allocator that counts the number of bytes allocated and deallocated.

Implementations§

Source§

impl CountingAllocator

Source

pub const fn new() -> Self

Source

pub fn get_allocated(&self) -> usize

Source

pub fn get_deallocated(&self) -> usize

Source

pub fn reset(&self)

Trait Implementations§

Source§

impl Default for CountingAllocator

Source§

fn default() -> Self

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

impl GlobalAlloc for CountingAllocator

Source§

unsafe fn alloc(&self, layout: Layout) -> *mut u8

Allocates memory as described by the given layout. Read more
Source§

unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout)

Deallocates the block of memory at the given ptr pointer with the given layout. Read more
1.28.0 · Source§

unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8

Behaves like alloc, but also ensures that the contents are set to zero before being returned. Read more
1.28.0 · Source§

unsafe fn realloc( &self, diff --git a/cu29_runtime/monitoring/struct.CuDurationStatistics.html b/cu29_runtime/monitoring/struct.CuDurationStatistics.html index 2c826237a..db0e8e944 100644 --- a/cu29_runtime/monitoring/struct.CuDurationStatistics.html +++ b/cu29_runtime/monitoring/struct.CuDurationStatistics.html @@ -1,4 +1,4 @@ -CuDurationStatistics in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Struct CuDurationStatistics

Source
pub struct CuDurationStatistics { /* private fields */ }
Expand description

A Specialized statistics object for CuDuration. +CuDurationStatistics in cu29_runtime::monitoring - Rust

cu29_runtime::monitoring

Struct CuDurationStatistics

Source
pub struct CuDurationStatistics { /* private fields */ }
Expand description

A Specialized statistics object for CuDuration. It will also keep track of the jitter between the values.

Implementations§

Source§

impl CuDurationStatistics

Source

pub fn new(max: CuDuration) -> Self

Source

pub fn min(&self) -> CuDuration

Source

pub fn max(&self) -> CuDuration

Source

pub fn mean(&self) -> CuDuration

Source

pub fn percentile(&self, percentile: f64) -> CuDuration

Source

pub fn stddev(&self) -> CuDuration

Source

pub fn len(&self) -> u64

Source

pub fn is_empty(&self) -> bool

Source

pub fn jitter_min(&self) -> CuDuration

Source

pub fn jitter_max(&self) -> CuDuration

Source

pub fn jitter_mean(&self) -> CuDuration

Source

pub fn jitter_stddev(&self) -> CuDuration

Source

pub fn jitter_percentile(&self, percentile: f64) -> CuDuration

Source

pub fn record(&mut self, value: CuDuration)

Source

pub fn reset(&mut self)

Trait Implementations§

Source§

impl Clone for CuDurationStatistics

Source§

fn clone(&self) -> CuDurationStatistics

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 Debug for CuDurationStatistics

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29_runtime/monitoring/struct.LiveStatistics.html b/cu29_runtime/monitoring/struct.LiveStatistics.html index da4acfc91..e44aa53ef 100644 --- a/cu29_runtime/monitoring/struct.LiveStatistics.html +++ b/cu29_runtime/monitoring/struct.LiveStatistics.html @@ -1,4 +1,4 @@ -LiveStatistics in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Struct LiveStatistics

Source
pub struct LiveStatistics { /* private fields */ }
Expand description

Accumulative stat object that can give your some real time statistics.

+LiveStatistics in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Struct LiveStatistics

Source
pub struct LiveStatistics { /* private fields */ }
Expand description

Accumulative stat object that can give your some real time statistics.

Implementations§

Source§

impl LiveStatistics

Source

pub fn new_unbounded() -> Self

Source

pub fn new_with_max(max: u64) -> Self

Source

pub fn min(&self) -> u64

Source

pub fn max(&self) -> u64

Source

pub fn mean(&self) -> f64

Source

pub fn percentile(&self, percentile: f64) -> u64

Source

pub fn record(&mut self, value: u64)

Adds a value to the statistics.

Source

pub fn len(&self) -> u64

Source

pub fn is_empty(&self) -> bool

Source

pub fn reset(&mut self)

Trait Implementations§

Source§

impl Clone for LiveStatistics

Source§

fn clone(&self) -> LiveStatistics

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 Debug for LiveStatistics

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29_runtime/monitoring/struct.NoMonitor.html b/cu29_runtime/monitoring/struct.NoMonitor.html index 7fda6c711..09545cc89 100644 --- a/cu29_runtime/monitoring/struct.NoMonitor.html +++ b/cu29_runtime/monitoring/struct.NoMonitor.html @@ -1,4 +1,4 @@ -NoMonitor in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Struct NoMonitor

Source
pub struct NoMonitor {}
Expand description

A do nothing monitor if no monitor is provided. +NoMonitor in cu29_runtime::monitoring - Rust

cu29_runtime::monitoring

Struct NoMonitor

Source
pub struct NoMonitor {}
Expand description

A do nothing monitor if no monitor is provided. This is basically defining the default behavior of Copper in case of error.

Trait Implementations§

Source§

impl CuMonitor for NoMonitor

Source§

fn new(_config: &CuConfig, _taskids: &'static [&'static str]) -> CuResult<Self>

Source§

fn process_copperlist(&self, _msgs: &[&CuMsgMetadata]) -> CuResult<()>

Callback that will be trigger at the end of every copperlist (before, on or after the serialization).
Source§

fn process_error( &self, diff --git a/cu29_runtime/monitoring/struct.ScopedAllocCounter.html b/cu29_runtime/monitoring/struct.ScopedAllocCounter.html index 3a4dd1fe7..9af60cace 100644 --- a/cu29_runtime/monitoring/struct.ScopedAllocCounter.html +++ b/cu29_runtime/monitoring/struct.ScopedAllocCounter.html @@ -1,4 +1,4 @@ -ScopedAllocCounter in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Struct ScopedAllocCounter

Source
pub struct ScopedAllocCounter { /* private fields */ }
Expand description

A simple struct that counts the number of bytes allocated and deallocated in a scope.

+ScopedAllocCounter in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Struct ScopedAllocCounter

Source
pub struct ScopedAllocCounter { /* private fields */ }
Expand description

A simple struct that counts the number of bytes allocated and deallocated in a scope.

Implementations§

Trait Implementations§

Source§

impl Default for ScopedAllocCounter

Source§

fn default() -> Self

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

impl Drop for ScopedAllocCounter

Build a difference between the number of bytes allocated and deallocated in the scope at drop time.

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

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> Borrow<T> for T
where diff --git a/cu29_runtime/monitoring/trait.CuMonitor.html b/cu29_runtime/monitoring/trait.CuMonitor.html index 84c79e6b6..37c3e9909 100644 --- a/cu29_runtime/monitoring/trait.CuMonitor.html +++ b/cu29_runtime/monitoring/trait.CuMonitor.html @@ -1,4 +1,4 @@ -CuMonitor in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Trait CuMonitor

Source
pub trait CuMonitor: Sized {
+CuMonitor in cu29_runtime::monitoring - Rust
cu29_runtime::monitoring

Trait CuMonitor

Source
pub trait CuMonitor: Sized {
     // Required methods
     fn new(
         config: &CuConfig,
diff --git a/cu29_runtime/payload/index.html b/cu29_runtime/payload/index.html
index fbf301b72..4996ad953 100644
--- a/cu29_runtime/payload/index.html
+++ b/cu29_runtime/payload/index.html
@@ -1 +1 @@
-cu29_runtime::payload - Rust
cu29_runtime

Module payload

Source

Structs§

  • Copper friendly wrapper for a fixed size array.
\ No newline at end of file +cu29_runtime::payload - Rust
cu29_runtime

Module payload

Source

Structs§

  • Copper friendly wrapper for a fixed size array.
\ No newline at end of file diff --git a/cu29_runtime/payload/struct.CuArray.html b/cu29_runtime/payload/struct.CuArray.html index 5f57e8f6b..7f4f298b4 100644 --- a/cu29_runtime/payload/struct.CuArray.html +++ b/cu29_runtime/payload/struct.CuArray.html @@ -1,4 +1,4 @@ -CuArray in cu29_runtime::payload - Rust
cu29_runtime::payload

Struct CuArray

Source
pub struct CuArray<T, const N: usize> { /* private fields */ }
Expand description

Copper friendly wrapper for a fixed size array.

+CuArray in cu29_runtime::payload - Rust
cu29_runtime::payload

Struct CuArray

Source
pub struct CuArray<T, const N: usize> { /* private fields */ }
Expand description

Copper friendly wrapper for a fixed size array.

Implementations§

Source§

impl<T, const N: usize> CuArray<T, N>

Source

pub fn new() -> Self

Source

pub fn fill_from_iter<I>(&mut self, iter: I)
where I: IntoIterator<Item = T>,

Source

pub fn len(&self) -> usize

Source

pub fn as_slice(&self) -> &[T]

Source

pub fn capacity(&self) -> usize

Trait Implementations§

Source§

impl<T: Clone, const N: usize> Clone for CuArray<T, N>

Source§

fn clone(&self) -> CuArray<T, N>

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: Debug, const N: usize> Debug for CuArray<T, N>

Source§

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

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

impl<T, const N: usize> Decode for CuArray<T, N>
where T: Decode,

Source§

fn decode<D: Decoder>(decoder: &mut D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl<T: Default, const N: usize> Default for CuArray<T, N>

Source§

fn default() -> CuArray<T, N>

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

impl<T, const N: usize> Encode for CuArray<T, N>
where diff --git a/cu29_runtime/simulation/enum.CuTaskCallbackState.html b/cu29_runtime/simulation/enum.CuTaskCallbackState.html index e45d7895e..2aff6d4b9 100644 --- a/cu29_runtime/simulation/enum.CuTaskCallbackState.html +++ b/cu29_runtime/simulation/enum.CuTaskCallbackState.html @@ -1,4 +1,4 @@ -CuTaskCallbackState in cu29_runtime::simulation - Rust
cu29_runtime::simulation

Enum CuTaskCallbackState

Source
pub enum CuTaskCallbackState<'cl, I, O>
where +CuTaskCallbackState in cu29_runtime::simulation - Rust
cu29_runtime::simulation

Enum CuTaskCallbackState

Source
pub enum CuTaskCallbackState<'cl, I, O>
where I: CuMsgPack<'cl>, O: CuMsgPack<'cl>,
{ New(Option<ComponentConfig>), diff --git a/cu29_runtime/simulation/enum.SimOverride.html b/cu29_runtime/simulation/enum.SimOverride.html index 72f368dc6..0dede1b55 100644 --- a/cu29_runtime/simulation/enum.SimOverride.html +++ b/cu29_runtime/simulation/enum.SimOverride.html @@ -1,4 +1,4 @@ -SimOverride in cu29_runtime::simulation - Rust
cu29_runtime::simulation

Enum SimOverride

Source
pub enum SimOverride {
+SimOverride in cu29_runtime::simulation - Rust
cu29_runtime::simulation

Enum SimOverride

Source
pub enum SimOverride {
     ExecutedBySim,
     ExecuteByRuntime,
     Errored(String),
diff --git a/cu29_runtime/simulation/index.html b/cu29_runtime/simulation/index.html
index cdf67c32b..1dce2c937 100644
--- a/cu29_runtime/simulation/index.html
+++ b/cu29_runtime/simulation/index.html
@@ -1,4 +1,4 @@
-cu29_runtime::simulation - Rust
cu29_runtime

Module simulation

Source
Expand description

§cu29::simulation Module

+cu29_runtime::simulation - Rust
cu29_runtime

Module simulation

Source
Expand description

§cu29::simulation Module

The cu29::simulation module provides an interface to simulate tasks in Copper-based systems. It offers structures, traits, and enums that enable hooking into the lifecycle of tasks, adapting their behavior, and integrating them with simulated hardware environments.

diff --git a/cu29_runtime/simulation/struct.CuSimSinkTask.html b/cu29_runtime/simulation/struct.CuSimSinkTask.html index c4cd01135..1c17be2ee 100644 --- a/cu29_runtime/simulation/struct.CuSimSinkTask.html +++ b/cu29_runtime/simulation/struct.CuSimSinkTask.html @@ -1,4 +1,4 @@ -CuSimSinkTask in cu29_runtime::simulation - Rust
cu29_runtime::simulation

Struct CuSimSinkTask

Source
pub struct CuSimSinkTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a sink task for the simulations. +CuSimSinkTask in cu29_runtime::simulation - Rust

cu29_runtime::simulation

Struct CuSimSinkTask

Source
pub struct CuSimSinkTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a sink task for the simulations. It basically does nothing in place of a real driver so it won’t try to initialize any hardware.

Trait Implementations§

Source§

impl<'cl, T: CuMsgPayload + 'cl> CuSinkTask<'cl> for CuSimSinkTask<T>

Source§

type Input = &'cl CuMsg<T>

Source§

fn new(_config: Option<&ComponentConfig>) -> CuResult<Self>
where Self: Sized,

Here you need to initialize everything your task will need for the duration of its lifetime. diff --git a/cu29_runtime/simulation/struct.CuSimSrcTask.html b/cu29_runtime/simulation/struct.CuSimSrcTask.html index d4886764e..9e96f3a12 100644 --- a/cu29_runtime/simulation/struct.CuSimSrcTask.html +++ b/cu29_runtime/simulation/struct.CuSimSrcTask.html @@ -1,4 +1,4 @@ -CuSimSrcTask in cu29_runtime::simulation - Rust
cu29_runtime::simulation

Struct CuSimSrcTask

Source
pub struct CuSimSrcTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a source task for the simulations. +CuSimSrcTask in cu29_runtime::simulation - Rust

cu29_runtime::simulation

Struct CuSimSrcTask

Source
pub struct CuSimSrcTask<T> { /* private fields */ }
Expand description

This is a placeholder task for a source task for the simulations. It basically does nothing in place of a real driver so it won’t try to initialize any hardware.

Trait Implementations§

Source§

impl<'cl, T: CuMsgPayload + 'cl> CuSrcTask<'cl> for CuSimSrcTask<T>

Source§

type Output = &'cl mut CuMsg<T>

Source§

fn new(_config: Option<&ComponentConfig>) -> CuResult<Self>
where Self: Sized,

Here you need to initialize everything your task will need for the duration of its lifetime. diff --git a/cu29_soa_derive/all.html b/cu29_soa_derive/all.html index db183c9bb..d36a40f47 100644 --- a/cu29_soa_derive/all.html +++ b/cu29_soa_derive/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Derive Macros

\ No newline at end of file +List of all items in this crate

List of all items

Derive Macros

\ No newline at end of file diff --git a/cu29_soa_derive/derive.Soa.html b/cu29_soa_derive/derive.Soa.html index 7ac326714..def45c896 100644 --- a/cu29_soa_derive/derive.Soa.html +++ b/cu29_soa_derive/derive.Soa.html @@ -1,4 +1,4 @@ -Soa in cu29_soa_derive - Rust
cu29_soa_derive

Derive Macro Soa

Source
#[derive(Soa)]
Expand description

Build a fixed sized SoA (Structure of Arrays) from a struct. +Soa in cu29_soa_derive - Rust

cu29_soa_derive

Derive Macro Soa

Source
#[derive(Soa)]
Expand description

Build a fixed sized SoA (Structure of Arrays) from a struct. The outputted SoA will be suitable for in place storage in messages and should be easier for the compiler to vectorize.

for example:

diff --git a/cu29_soa_derive/index.html b/cu29_soa_derive/index.html index ef03abeea..6806e45cf 100644 --- a/cu29_soa_derive/index.html +++ b/cu29_soa_derive/index.html @@ -1,3 +1,3 @@ -cu29_soa_derive - Rust

Crate cu29_soa_derive

Source

Derive Macros§

  • Build a fixed sized SoA (Structure of Arrays) from a struct. +cu29_soa_derive - Rust

    Crate cu29_soa_derive

    Source

    Derive Macros§

    • Build a fixed sized SoA (Structure of Arrays) from a struct. The outputted SoA will be suitable for in place storage in messages and should be easier for the compiler to vectorize.
    \ No newline at end of file diff --git a/cu29_traits/all.html b/cu29_traits/all.html index 685fd0dd1..0636bc666 100644 --- a/cu29_traits/all.html +++ b/cu29_traits/all.html @@ -1 +1 @@ -List of all items in this crate

    List of all items

    Structs

    Enums

    Traits

    Type Aliases

    \ No newline at end of file +List of all items in this crate

    List of all items

    Structs

    Enums

    Traits

    Type Aliases

    \ No newline at end of file diff --git a/cu29_traits/enum.UnifiedLogType.html b/cu29_traits/enum.UnifiedLogType.html index 34a799541..311981088 100644 --- a/cu29_traits/enum.UnifiedLogType.html +++ b/cu29_traits/enum.UnifiedLogType.html @@ -1,4 +1,4 @@ -UnifiedLogType in cu29_traits - Rust
    cu29_traits

    Enum UnifiedLogType

    Source
    pub enum UnifiedLogType {
    +UnifiedLogType in cu29_traits - Rust
    cu29_traits

    Enum UnifiedLogType

    Source
    pub enum UnifiedLogType {
         Empty,
         StructuredLogLine,
         CopperList,
    diff --git a/cu29_traits/index.html b/cu29_traits/index.html
    index e16b3946e..5a3f102c5 100644
    --- a/cu29_traits/index.html
    +++ b/cu29_traits/index.html
    @@ -1 +1 @@
    -cu29_traits - Rust

    Crate cu29_traits

    Source

    Structs§

    Enums§

    • Defines the types of what can be logged in the unified logger.

    Traits§

    • A CopperListTuple needs to be encodable, decodable and fixed size in memory.
    • Defines a basic write, append only stream trait to be able to log or send serializable objects.

    Type Aliases§

    \ No newline at end of file +cu29_traits - Rust

    Crate cu29_traits

    Source

    Structs§

    Enums§

    • Defines the types of what can be logged in the unified logger.

    Traits§

    • A CopperListTuple needs to be encodable, decodable and fixed size in memory.
    • Defines a basic write, append only stream trait to be able to log or send serializable objects.

    Type Aliases§

    \ No newline at end of file diff --git a/cu29_traits/struct.CuError.html b/cu29_traits/struct.CuError.html index da82f6b60..f29462545 100644 --- a/cu29_traits/struct.CuError.html +++ b/cu29_traits/struct.CuError.html @@ -1,7 +1,7 @@ -CuError in cu29_traits - Rust
    cu29_traits

    Struct CuError

    Source
    pub struct CuError { /* private fields */ }
    Expand description

    Common copper Error type.

    -

    Implementations§

    Source§

    impl CuError

    Source

    pub fn new_with_cause(message: &str, cause: impl Error) -> CuError

    Source

    pub fn add_cause(self, context: &str) -> CuError

    Trait Implementations§

    Source§

    impl Clone for CuError

    Source§

    fn clone(&self) -> CuError

    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 Debug for CuError

    Source§

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

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

    impl<'de> Deserialize<'de> for CuError

    Source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

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

    impl Display for CuError

    Source§

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

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

    impl Error for CuError

    1.30.0 · Source§

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

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

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

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

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

    🔬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 From<&str> for CuError

    Source§

    fn from(s: &str) -> CuError

    Converts to this type from the input type.
    Source§

    impl From<String> for CuError

    Source§

    fn from(s: String) -> CuError

    Converts to this type from the input type.
    Source§

    impl Serialize for CuError

    Source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +CuError in cu29_traits - Rust
    cu29_traits

    Struct CuError

    Source
    pub struct CuError { /* private fields */ }
    Expand description

    Common copper Error type.

    +

    Implementations§

    Source§

    impl CuError

    Source

    pub fn new_with_cause(message: &str, cause: impl Error) -> CuError

    Source

    pub fn add_cause(self, context: &str) -> CuError

    Trait Implementations§

    Source§

    impl Clone for CuError

    Source§

    fn clone(&self) -> CuError

    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 Debug for CuError

    Source§

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

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

    impl<'de> Deserialize<'de> for CuError

    Source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

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

    impl Display for CuError

    Source§

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

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

    impl Error for CuError

    1.30.0 · Source§

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

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

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

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

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

    🔬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 From<&str> for CuError

    Source§

    fn from(s: &str) -> CuError

    Converts to this type from the input type.
    Source§

    impl From<String> for CuError

    Source§

    fn from(s: String) -> CuError

    Converts to this type from the input type.
    Source§

    impl Serialize for CuError

    Source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    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> 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 @@ -14,5 +14,5 @@ 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> ToString for T
    where T: Display + ?Sized,

    Source§

    default fn to_string(&self) -> String

    Converts the given value to a String. 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<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<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file + 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<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/cu29_traits/trait.CopperListTuple.html b/cu29_traits/trait.CopperListTuple.html index f269051a7..16759e9e5 100644 --- a/cu29_traits/trait.CopperListTuple.html +++ b/cu29_traits/trait.CopperListTuple.html @@ -1,4 +1,4 @@ -CopperListTuple in cu29_traits - Rust
    cu29_traits

    Trait CopperListTuple

    Source
    pub trait CopperListTuple:
    +CopperListTuple in cu29_traits - Rust
    cu29_traits

    Trait CopperListTuple

    Source
    pub trait CopperListTuple:
         Encode
         + Decode
         + Sized
    diff --git a/cu29_traits/trait.WriteStream.html b/cu29_traits/trait.WriteStream.html
    index 40d4317b8..585299eee 100644
    --- a/cu29_traits/trait.WriteStream.html
    +++ b/cu29_traits/trait.WriteStream.html
    @@ -1,4 +1,4 @@
    -WriteStream in cu29_traits - Rust
    cu29_traits

    Trait WriteStream

    Source
    pub trait WriteStream<E: Encode>:
    +WriteStream in cu29_traits - Rust
    cu29_traits

    Trait WriteStream

    Source
    pub trait WriteStream<E: Encode>:
         Sync
         + Send
         + Debug {
    diff --git a/cu29_traits/type.CuResult.html b/cu29_traits/type.CuResult.html
    index a0afc5c0e..fd8214466 100644
    --- a/cu29_traits/type.CuResult.html
    +++ b/cu29_traits/type.CuResult.html
    @@ -1,4 +1,4 @@
    -CuResult in cu29_traits - Rust
    cu29_traits

    Type Alias CuResult

    Source
    pub type CuResult<T> = Result<T, CuError>;

    Aliased Type§

    enum CuResult<T> {
    +CuResult in cu29_traits - Rust
    cu29_traits

    Type Alias CuResult

    Source
    pub type CuResult<T> = Result<T, CuError>;

    Aliased Type§

    enum CuResult<T> {
         Ok(T),
         Err(CuError),
     }

    Variants§

    §1.0.0

    Ok(T)

    Contains the success value

    diff --git a/cu29_unifiedlog/all.html b/cu29_unifiedlog/all.html index 689b0bd64..812f3acce 100644 --- a/cu29_unifiedlog/all.html +++ b/cu29_unifiedlog/all.html @@ -1 +1 @@ -List of all items in this crate
    \ No newline at end of file +List of all items in this crate
    \ No newline at end of file diff --git a/cu29_unifiedlog/enum.AllocatedSection.html b/cu29_unifiedlog/enum.AllocatedSection.html index 0a37ccc63..8f0699796 100644 --- a/cu29_unifiedlog/enum.AllocatedSection.html +++ b/cu29_unifiedlog/enum.AllocatedSection.html @@ -1,4 +1,4 @@ -AllocatedSection in cu29_unifiedlog - Rust
    cu29_unifiedlog

    Enum AllocatedSection

    Source
    pub enum AllocatedSection {
    +AllocatedSection in cu29_unifiedlog - Rust
    cu29_unifiedlog

    Enum AllocatedSection

    Source
    pub enum AllocatedSection {
         NoMoreSpace,
         Section(SectionHandle),
     }

    Variants§

    §

    NoMoreSpace

    §

    Section(SectionHandle)

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where diff --git a/cu29_unifiedlog/enum.UnifiedLogger.html b/cu29_unifiedlog/enum.UnifiedLogger.html index 66e767738..2cc311a88 100644 --- a/cu29_unifiedlog/enum.UnifiedLogger.html +++ b/cu29_unifiedlog/enum.UnifiedLogger.html @@ -1,4 +1,4 @@ -UnifiedLogger in cu29_unifiedlog - Rust
    cu29_unifiedlog

    Enum UnifiedLogger

    Source
    pub enum UnifiedLogger {
    +UnifiedLogger in cu29_unifiedlog - Rust
    cu29_unifiedlog

    Enum UnifiedLogger

    Source
    pub enum UnifiedLogger {
         Read(UnifiedLoggerRead),
         Write(UnifiedLoggerWrite),
     }
    Expand description

    Holder of the read or write side of the datalogger.

    diff --git a/cu29_unifiedlog/fn.stream_write.html b/cu29_unifiedlog/fn.stream_write.html index 41953b5b4..675d23d07 100644 --- a/cu29_unifiedlog/fn.stream_write.html +++ b/cu29_unifiedlog/fn.stream_write.html @@ -1,4 +1,4 @@ -stream_write in cu29_unifiedlog - Rust
    cu29_unifiedlog

    Function stream_write

    Source
    pub fn stream_write<E: Encode>(
    +stream_write in cu29_unifiedlog - Rust
    cu29_unifiedlog

    Function stream_write

    Source
    pub fn stream_write<E: Encode>(
         logger: Arc<Mutex<UnifiedLoggerWrite>>,
         entry_type: UnifiedLogType,
         minimum_allocation_amount: usize,
    diff --git a/cu29_unifiedlog/index.html b/cu29_unifiedlog/index.html
    index 23c9ef528..d218a9d83 100644
    --- a/cu29_unifiedlog/index.html
    +++ b/cu29_unifiedlog/index.html
    @@ -1,4 +1,4 @@
    -cu29_unifiedlog - Rust

    Crate cu29_unifiedlog

    Source

    Structs§

    • A SectionHandle is a handle to a section in the datalogger. +cu29_unifiedlog - Rust

      Crate cu29_unifiedlog

      Source

      Structs§

      • A SectionHandle is a handle to a section in the datalogger. It allows to track the lifecycle of a section of the datalogger.
      • Each concurrent sublogger is tracked through a section header. They form a linked list of sections. The entry type is used to identify the type of data in the section.
      • Use this builder to create a new DataLogger.
      • This a convience wrapper around the UnifiedLoggerRead to implement the Read trait.
      • A read side of the datalogger.
      • A write side of the datalogger.

      Enums§

      Functions§

      • Create a new stream to write to the unifiedlogger.
      \ No newline at end of file diff --git a/cu29_unifiedlog/struct.SectionHandle.html b/cu29_unifiedlog/struct.SectionHandle.html index 1ea917aa6..3d6a58ffe 100644 --- a/cu29_unifiedlog/struct.SectionHandle.html +++ b/cu29_unifiedlog/struct.SectionHandle.html @@ -1,4 +1,4 @@ -SectionHandle in cu29_unifiedlog - Rust
      cu29_unifiedlog

      Struct SectionHandle

      Source
      pub struct SectionHandle { /* private fields */ }
      Expand description

      A SectionHandle is a handle to a section in the datalogger. +SectionHandle in cu29_unifiedlog - Rust

      cu29_unifiedlog

      Struct SectionHandle

      Source
      pub struct SectionHandle { /* private fields */ }
      Expand description

      A SectionHandle is a handle to a section in the datalogger. It allows to track the lifecycle of a section of the datalogger.

      Implementations§

      Source§

      impl SectionHandle

      Source

      pub fn create(section_header: SectionHeader, buffer: &'static mut [u8]) -> Self

      Source

      pub fn get_user_buffer(&mut self) -> &mut [u8]

      Source

      pub fn update_header(&mut self)

      Trait Implementations§

      Source§

      impl Default for SectionHandle

      Source§

      fn default() -> SectionHandle

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

      Auto Trait Implementations§

      Blanket Implementations§

      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> Borrow<T> for T
      where diff --git a/cu29_unifiedlog/struct.SectionHeader.html b/cu29_unifiedlog/struct.SectionHeader.html index 38a081f6a..c3114be73 100644 --- a/cu29_unifiedlog/struct.SectionHeader.html +++ b/cu29_unifiedlog/struct.SectionHeader.html @@ -1,4 +1,4 @@ -SectionHeader in cu29_unifiedlog - Rust
      cu29_unifiedlog

      Struct SectionHeader

      Source
      pub struct SectionHeader { /* private fields */ }
      Expand description

      Each concurrent sublogger is tracked through a section header. +SectionHeader in cu29_unifiedlog - Rust

      cu29_unifiedlog

      Struct SectionHeader

      Source
      pub struct SectionHeader { /* private fields */ }
      Expand description

      Each concurrent sublogger is tracked through a section header. They form a linked list of sections. The entry type is used to identify the type of data in the section.

      Trait Implementations§

      Source§

      impl<'__de> BorrowDecode<'__de> for SectionHeader

      Source§

      fn borrow_decode<__D: BorrowDecoder<'__de>>( diff --git a/cu29_unifiedlog/struct.UnifiedLoggerBuilder.html b/cu29_unifiedlog/struct.UnifiedLoggerBuilder.html index 6746b6275..f7d4bf809 100644 --- a/cu29_unifiedlog/struct.UnifiedLoggerBuilder.html +++ b/cu29_unifiedlog/struct.UnifiedLoggerBuilder.html @@ -1,4 +1,4 @@ -UnifiedLoggerBuilder in cu29_unifiedlog - Rust
      cu29_unifiedlog

      Struct UnifiedLoggerBuilder

      Source
      pub struct UnifiedLoggerBuilder { /* private fields */ }
      Expand description

      Use this builder to create a new DataLogger.

      +UnifiedLoggerBuilder in cu29_unifiedlog - Rust
      cu29_unifiedlog

      Struct UnifiedLoggerBuilder

      Source
      pub struct UnifiedLoggerBuilder { /* private fields */ }
      Expand description

      Use this builder to create a new DataLogger.

      Implementations§

      Source§

      impl UnifiedLoggerBuilder

      Source

      pub fn new() -> Self

      Source

      pub fn file_base_name(self, file_path: &Path) -> Self

      If “something/toto.copper” is given, it will find or create “something/toto_0.copper”, “something/toto_1.copper” etc.

      Source

      pub fn preallocated_size(self, preallocated_size: usize) -> Self

      Source

      pub fn write(self, write: bool) -> Self

      Source

      pub fn create(self, create: bool) -> Self

      Source

      pub fn build(self) -> Result<UnifiedLogger>

      Trait Implementations§

      Source§

      impl Default for UnifiedLoggerBuilder

      Source§

      fn default() -> Self

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

      Auto Trait Implementations§

      Blanket Implementations§

      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> Borrow<T> for T
      where diff --git a/cu29_unifiedlog/struct.UnifiedLoggerIOReader.html b/cu29_unifiedlog/struct.UnifiedLoggerIOReader.html index 1f5a7ab2c..7a7f435f4 100644 --- a/cu29_unifiedlog/struct.UnifiedLoggerIOReader.html +++ b/cu29_unifiedlog/struct.UnifiedLoggerIOReader.html @@ -1,4 +1,4 @@ -UnifiedLoggerIOReader in cu29_unifiedlog - Rust
      cu29_unifiedlog

      Struct UnifiedLoggerIOReader

      Source
      pub struct UnifiedLoggerIOReader { /* private fields */ }
      Expand description

      This a convience wrapper around the UnifiedLoggerRead to implement the Read trait.

      +UnifiedLoggerIOReader in cu29_unifiedlog - Rust
      cu29_unifiedlog

      Struct UnifiedLoggerIOReader

      Source
      pub struct UnifiedLoggerIOReader { /* private fields */ }
      Expand description

      This a convience wrapper around the UnifiedLoggerRead to implement the Read trait.

      Implementations§

      Source§

      impl UnifiedLoggerIOReader

      Source

      pub fn new(logger: UnifiedLoggerRead, log_type: UnifiedLogType) -> Self

      Trait Implementations§

      Source§

      impl Read for UnifiedLoggerIOReader

      Source§

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

      Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
      1.36.0 · 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
      1.0.0 · 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
      1.0.0 · 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
      1.6.0 · 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(&mut self, buf: 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_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 diff --git a/cu29_unifiedlog/struct.UnifiedLoggerRead.html b/cu29_unifiedlog/struct.UnifiedLoggerRead.html index cc699ab1b..298db5fd3 100644 --- a/cu29_unifiedlog/struct.UnifiedLoggerRead.html +++ b/cu29_unifiedlog/struct.UnifiedLoggerRead.html @@ -1,4 +1,4 @@ -UnifiedLoggerRead in cu29_unifiedlog - Rust
      cu29_unifiedlog

      Struct UnifiedLoggerRead

      Source
      pub struct UnifiedLoggerRead { /* private fields */ }
      Expand description

      A read side of the datalogger.

      +UnifiedLoggerRead in cu29_unifiedlog - Rust
      cu29_unifiedlog

      Struct UnifiedLoggerRead

      Source
      pub struct UnifiedLoggerRead { /* private fields */ }
      Expand description

      A read side of the datalogger.

      Implementations§

      Source§

      impl UnifiedLoggerRead

      Source

      pub fn new(base_file_path: &Path) -> Result<Self>

      Source

      pub fn read_next_section_type( &mut self, datalogtype: UnifiedLogType, diff --git a/cu29_unifiedlog/struct.UnifiedLoggerWrite.html b/cu29_unifiedlog/struct.UnifiedLoggerWrite.html index 0710a5f74..de9aed95e 100644 --- a/cu29_unifiedlog/struct.UnifiedLoggerWrite.html +++ b/cu29_unifiedlog/struct.UnifiedLoggerWrite.html @@ -1,4 +1,4 @@ -UnifiedLoggerWrite in cu29_unifiedlog - Rust
      cu29_unifiedlog

      Struct UnifiedLoggerWrite

      Source
      pub struct UnifiedLoggerWrite { /* private fields */ }
      Expand description

      A write side of the datalogger.

      +UnifiedLoggerWrite in cu29_unifiedlog - Rust
      cu29_unifiedlog

      Struct UnifiedLoggerWrite

      Source
      pub struct UnifiedLoggerWrite { /* private fields */ }
      Expand description

      A write side of the datalogger.

      Implementations§

      Source§

      impl UnifiedLoggerWrite

      Source

      pub fn flush_section(&mut self, section: &mut SectionHandle)

      Trait Implementations§

      Source§

      impl Drop for UnifiedLoggerWrite

      Source§

      fn drop(&mut self)

      Executes the destructor for this type. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      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> 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 diff --git a/help.html b/help.html index 0819d95fa..69080f114 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Help

      Rustdoc help

      Back
      \ No newline at end of file +Help

      Rustdoc help

      Back
      \ No newline at end of file diff --git a/index.html b/index.html index 6d4c21899..fc9ace30f 100644 --- a/index.html +++ b/index.html @@ -1,2 +1,2 @@ -Index of crates
      +Index of crates
      \ No newline at end of file diff --git a/settings.html b/settings.html index 1594e01b8..c9287d74f 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Settings

      Rustdoc settings

      Back
      \ No newline at end of file +Settings

      Rustdoc settings

      Back
      \ No newline at end of file diff --git a/src/cu29/lib.rs.html b/src/cu29/lib.rs.html index 5d3ae70c5..3095b14aa 100644 --- a/src/cu29/lib.rs.html +++ b/src/cu29/lib.rs.html @@ -1,4 +1,4 @@ -lib.rs - source

      cu29/
      lib.rs

      +lib.rs - source

      cu29/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_clock/lib.rs.html b/src/cu29_clock/lib.rs.html
      index cb5f8ee83..98adb2701 100644
      --- a/src/cu29_clock/lib.rs.html
      +++ b/src/cu29_clock/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_clock/
      lib.rs

      +lib.rs - source

      cu29_clock/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_derive/format.rs.html b/src/cu29_derive/format.rs.html
      index b898b9e00..779e7dbe8 100644
      --- a/src/cu29_derive/format.rs.html
      +++ b/src/cu29_derive/format.rs.html
      @@ -1,4 +1,4 @@
      -format.rs - source

      cu29_derive/
      format.rs

      +format.rs - source

      cu29_derive/
      format.rs

       1
       2
       3
      diff --git a/src/cu29_derive/lib.rs.html b/src/cu29_derive/lib.rs.html
      index f085a42ef..9ca052e7c 100644
      --- a/src/cu29_derive/lib.rs.html
      +++ b/src/cu29_derive/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_derive/
      lib.rs

      +lib.rs - source

      cu29_derive/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_derive/utils.rs.html b/src/cu29_derive/utils.rs.html
      index 7f004ff86..c16a627e1 100644
      --- a/src/cu29_derive/utils.rs.html
      +++ b/src/cu29_derive/utils.rs.html
      @@ -1,4 +1,4 @@
      -utils.rs - source

      cu29_derive/
      utils.rs

      +utils.rs - source

      cu29_derive/
      utils.rs

       1
       2
       3
      diff --git a/src/cu29_export/lib.rs.html b/src/cu29_export/lib.rs.html
      index dd9e58a2a..576a7fc09 100644
      --- a/src/cu29_export/lib.rs.html
      +++ b/src/cu29_export/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_export/
      lib.rs

      +lib.rs - source

      cu29_export/
      lib.rs

       1
       2
       3
      @@ -599,7 +599,7 @@
       
           #[pyclass]
           pub struct PyLogIterator {
      -        reader: Box<dyn Read + Send>,
      +        reader: Box<dyn Read + Send + Sync>,
           }
       
           #[pymethods]
      @@ -692,7 +692,7 @@
                   let seconds = (nanoseconds / 1_000_000_000) as i32;
                   let microseconds = ((nanoseconds % 1_000_000_000) / 1_000) as i32;
       
      -            PyDelta::new_bound(py, days, seconds, microseconds, false).unwrap()
      +            PyDelta::new(py, days, seconds, microseconds, false).unwrap()
               }
       
               /// Returns the index of the message in the vector of interned strings.
      @@ -722,28 +722,28 @@
       
           fn value_to_py(value: &cu29::prelude::Value) -> PyObject {
               match value {
      -            Value::String(s) => Python::with_gil(|py| s.to_object(py)),
      -            Value::U64(u) => Python::with_gil(|py| u.to_object(py)),
      -            Value::I64(i) => Python::with_gil(|py| i.to_object(py)),
      -            Value::F64(f) => Python::with_gil(|py| f.to_object(py)),
      -            Value::Bool(b) => Python::with_gil(|py| b.to_object(py)),
      -            Value::CuTime(t) => Python::with_gil(|py| t.0.to_object(py)),
      -            Value::Bytes(b) => Python::with_gil(|py| b.to_object(py)),
      -            Value::Char(c) => Python::with_gil(|py| c.to_object(py)),
      -            Value::I8(i) => Python::with_gil(|py| i.to_object(py)),
      -            Value::U8(u) => Python::with_gil(|py| u.to_object(py)),
      -            Value::I16(i) => Python::with_gil(|py| i.to_object(py)),
      -            Value::U16(u) => Python::with_gil(|py| u.to_object(py)),
      -            Value::I32(i) => Python::with_gil(|py| i.to_object(py)),
      -            Value::U32(u) => Python::with_gil(|py| u.to_object(py)),
      +            Value::String(s) => Python::with_gil(|py| s.into_pyobject(py).unwrap().into()),
      +            Value::U64(u) => Python::with_gil(|py| u.into_pyobject(py).unwrap().into()),
      +            Value::I64(i) => Python::with_gil(|py| i.into_pyobject(py).unwrap().into()),
      +            Value::F64(f) => Python::with_gil(|py| f.into_pyobject(py).unwrap().into()),
      +            Value::Bool(b) => Python::with_gil(|py| b.into_pyobject(py).unwrap().to_owned().into()),
      +            Value::CuTime(t) => Python::with_gil(|py| t.0.into_pyobject(py).unwrap().into()),
      +            Value::Bytes(b) => Python::with_gil(|py| b.into_pyobject(py).unwrap().into()),
      +            Value::Char(c) => Python::with_gil(|py| c.into_pyobject(py).unwrap().into()),
      +            Value::I8(i) => Python::with_gil(|py| i.into_pyobject(py).unwrap().into()),
      +            Value::U8(u) => Python::with_gil(|py| u.into_pyobject(py).unwrap().into()),
      +            Value::I16(i) => Python::with_gil(|py| i.into_pyobject(py).unwrap().into()),
      +            Value::U16(u) => Python::with_gil(|py| u.into_pyobject(py).unwrap().into()),
      +            Value::I32(i) => Python::with_gil(|py| i.into_pyobject(py).unwrap().into()),
      +            Value::U32(u) => Python::with_gil(|py| u.into_pyobject(py).unwrap().into()),
                   Value::Map(m) => Python::with_gil(|py| {
      -                let dict = PyDict::new_bound(py);
      +                let dict = PyDict::new(py);
                       for (k, v) in m.iter() {
                           dict.set_item(value_to_py(k), value_to_py(v)).unwrap();
                       }
      -                dict.to_object(py)
      +                dict.into_pyobject(py).unwrap().into()
                   }),
      -            Value::F32(f) => Python::with_gil(|py| f.to_object(py)),
      +            Value::F32(f) => Python::with_gil(|py| f.into_pyobject(py).unwrap().into()),
                   Value::Option(o) => Python::with_gil(|py| {
                       if o.is_none() {
                           py.None()
      @@ -754,8 +754,8 @@
                   Value::Unit => Python::with_gil(|py| py.None()),
                   Value::Newtype(v) => value_to_py(v),
                   Value::Seq(s) => Python::with_gil(|py| {
      -                let list = PyList::new_bound(py, s.iter().map(value_to_py));
      -                list.to_object(py)
      +                let list = PyList::new(py, s.iter().map(value_to_py)).unwrap();
      +                list.into_pyobject(py).unwrap().into()
                   }),
               }
           }
      diff --git a/src/cu29_helpers/lib.rs.html b/src/cu29_helpers/lib.rs.html
      index cc4d97c8a..ac2d67da4 100644
      --- a/src/cu29_helpers/lib.rs.html
      +++ b/src/cu29_helpers/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_helpers/
      lib.rs

      +lib.rs - source

      cu29_helpers/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_intern_strs/lib.rs.html b/src/cu29_intern_strs/lib.rs.html
      index 6f7edeb6c..7720ba25a 100644
      --- a/src/cu29_intern_strs/lib.rs.html
      +++ b/src/cu29_intern_strs/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_intern_strs/
      lib.rs

      +lib.rs - source

      cu29_intern_strs/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_log/lib.rs.html b/src/cu29_log/lib.rs.html
      index 4eda2be7c..ff620551d 100644
      --- a/src/cu29_log/lib.rs.html
      +++ b/src/cu29_log/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_log/
      lib.rs

      +lib.rs - source

      cu29_log/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_log_derive/index.rs.html b/src/cu29_log_derive/index.rs.html
      index 47622b8c0..995bfcc98 100644
      --- a/src/cu29_log_derive/index.rs.html
      +++ b/src/cu29_log_derive/index.rs.html
      @@ -1,4 +1,4 @@
      -index.rs - source

      cu29_log_derive/
      index.rs

      +index.rs - source

      cu29_log_derive/
      index.rs

       1
       2
       3
      diff --git a/src/cu29_log_derive/lib.rs.html b/src/cu29_log_derive/lib.rs.html
      index 3500518c9..5962d1cbb 100644
      --- a/src/cu29_log_derive/lib.rs.html
      +++ b/src/cu29_log_derive/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_log_derive/
      lib.rs

      +lib.rs - source

      cu29_log_derive/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_log_runtime/lib.rs.html b/src/cu29_log_runtime/lib.rs.html
      index 79c0af814..b76d97a6c 100644
      --- a/src/cu29_log_runtime/lib.rs.html
      +++ b/src/cu29_log_runtime/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_log_runtime/
      lib.rs

      +lib.rs - source

      cu29_log_runtime/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_rendercfg/config.rs.html b/src/cu29_rendercfg/config.rs.html
      index 05d791597..ca61499f7 100644
      --- a/src/cu29_rendercfg/config.rs.html
      +++ b/src/cu29_rendercfg/config.rs.html
      @@ -1,4 +1,4 @@
      -config.rs - source

      cu29_rendercfg/
      config.rs

      +config.rs - source

      cu29_rendercfg/
      config.rs

       1
       2
       3
      diff --git a/src/cu29_rendercfg/rendercfg.rs.html b/src/cu29_rendercfg/rendercfg.rs.html
      index 8ee13eb19..fe505747b 100644
      --- a/src/cu29_rendercfg/rendercfg.rs.html
      +++ b/src/cu29_rendercfg/rendercfg.rs.html
      @@ -1,4 +1,4 @@
      -rendercfg.rs - source

      cu29_rendercfg/
      rendercfg.rs

      +rendercfg.rs - source

      cu29_rendercfg/
      rendercfg.rs

       1
       2
       3
      diff --git a/src/cu29_runtime/config.rs.html b/src/cu29_runtime/config.rs.html
      index 7a9976a41..9408c9581 100644
      --- a/src/cu29_runtime/config.rs.html
      +++ b/src/cu29_runtime/config.rs.html
      @@ -1,4 +1,4 @@
      -config.rs - source

      cu29_runtime/
      config.rs

      +config.rs - source

      cu29_runtime/
      config.rs

       1
       2
       3
      diff --git a/src/cu29_runtime/copperlist.rs.html b/src/cu29_runtime/copperlist.rs.html
      index edce39cb4..28ed07a37 100644
      --- a/src/cu29_runtime/copperlist.rs.html
      +++ b/src/cu29_runtime/copperlist.rs.html
      @@ -1,4 +1,4 @@
      -copperlist.rs - source

      cu29_runtime/
      copperlist.rs

      +copperlist.rs - source

      cu29_runtime/
      copperlist.rs

       1
       2
       3
      diff --git a/src/cu29_runtime/curuntime.rs.html b/src/cu29_runtime/curuntime.rs.html
      index 576165a67..6b581c7cd 100644
      --- a/src/cu29_runtime/curuntime.rs.html
      +++ b/src/cu29_runtime/curuntime.rs.html
      @@ -1,4 +1,4 @@
      -curuntime.rs - source

      cu29_runtime/
      curuntime.rs

      +curuntime.rs - source

      cu29_runtime/
      curuntime.rs

       1
       2
       3
      diff --git a/src/cu29_runtime/cutask.rs.html b/src/cu29_runtime/cutask.rs.html
      index ef0a44acd..0316ef736 100644
      --- a/src/cu29_runtime/cutask.rs.html
      +++ b/src/cu29_runtime/cutask.rs.html
      @@ -1,4 +1,4 @@
      -cutask.rs - source

      cu29_runtime/
      cutask.rs

      +cutask.rs - source

      cu29_runtime/
      cutask.rs

       1
       2
       3
      diff --git a/src/cu29_runtime/lib.rs.html b/src/cu29_runtime/lib.rs.html
      index 6e246c6f6..614e0924c 100644
      --- a/src/cu29_runtime/lib.rs.html
      +++ b/src/cu29_runtime/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_runtime/
      lib.rs

      +lib.rs - source

      cu29_runtime/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_runtime/monitoring.rs.html b/src/cu29_runtime/monitoring.rs.html
      index 6ff18dd2c..20173986f 100644
      --- a/src/cu29_runtime/monitoring.rs.html
      +++ b/src/cu29_runtime/monitoring.rs.html
      @@ -1,4 +1,4 @@
      -monitoring.rs - source

      cu29_runtime/
      monitoring.rs

      +monitoring.rs - source

      cu29_runtime/
      monitoring.rs

       1
       2
       3
      diff --git a/src/cu29_runtime/payload.rs.html b/src/cu29_runtime/payload.rs.html
      index 31d50ea2e..003075034 100644
      --- a/src/cu29_runtime/payload.rs.html
      +++ b/src/cu29_runtime/payload.rs.html
      @@ -1,4 +1,4 @@
      -payload.rs - source

      cu29_runtime/
      payload.rs

      +payload.rs - source

      cu29_runtime/
      payload.rs

       1
       2
       3
      diff --git a/src/cu29_runtime/simulation.rs.html b/src/cu29_runtime/simulation.rs.html
      index c6d72e4e6..83133a3e8 100644
      --- a/src/cu29_runtime/simulation.rs.html
      +++ b/src/cu29_runtime/simulation.rs.html
      @@ -1,4 +1,4 @@
      -simulation.rs - source

      cu29_runtime/
      simulation.rs

      +simulation.rs - source

      cu29_runtime/
      simulation.rs

       1
       2
       3
      diff --git a/src/cu29_soa_derive/format.rs.html b/src/cu29_soa_derive/format.rs.html
      index 74effdced..0ca0c2ecf 100644
      --- a/src/cu29_soa_derive/format.rs.html
      +++ b/src/cu29_soa_derive/format.rs.html
      @@ -1,4 +1,4 @@
      -format.rs - source

      cu29_soa_derive/
      format.rs

      +format.rs - source

      cu29_soa_derive/
      format.rs

       1
       2
       3
      diff --git a/src/cu29_soa_derive/lib.rs.html b/src/cu29_soa_derive/lib.rs.html
      index 7d445c666..79c0685d5 100644
      --- a/src/cu29_soa_derive/lib.rs.html
      +++ b/src/cu29_soa_derive/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_soa_derive/
      lib.rs

      +lib.rs - source

      cu29_soa_derive/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_traits/lib.rs.html b/src/cu29_traits/lib.rs.html
      index ef4e857bd..8dcf8844b 100644
      --- a/src/cu29_traits/lib.rs.html
      +++ b/src/cu29_traits/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_traits/
      lib.rs

      +lib.rs - source

      cu29_traits/
      lib.rs

       1
       2
       3
      diff --git a/src/cu29_unifiedlog/lib.rs.html b/src/cu29_unifiedlog/lib.rs.html
      index 94b25a40d..67ca11776 100644
      --- a/src/cu29_unifiedlog/lib.rs.html
      +++ b/src/cu29_unifiedlog/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source

      cu29_unifiedlog/
      lib.rs

      +lib.rs - source

      cu29_unifiedlog/
      lib.rs

       1
       2
       3
      diff --git a/trait.impl/serde/de/trait.Deserialize.js b/trait.impl/serde/de/trait.Deserialize.js
      index 657280991..204354d8e 100644
      --- a/trait.impl/serde/de/trait.Deserialize.js
      +++ b/trait.impl/serde/de/trait.Deserialize.js
      @@ -1,5 +1,5 @@
       (function() {
      -    var implementors = Object.fromEntries([["cu29_clock",[["impl<'de> Deserialize<'de> for Tov"],["impl<'de> Deserialize<'de> for CuDuration"],["impl<'de> Deserialize<'de> for CuTimeRange"],["impl<'de> Deserialize<'de> for OptionCuTime"],["impl<'de> Deserialize<'de> for PartialCuTimeRange"]]],["cu29_log",[["impl<'de> Deserialize<'de> for CuLogEntry"]]],["cu29_rendercfg",[["impl<'de> Deserialize<'de> for Cnx"],["impl<'de> Deserialize<'de> for ComponentConfig"],["impl<'de> Deserialize<'de> for CuConfig"],["impl<'de> Deserialize<'de> for CuConfigRepresentation"],["impl<'de> Deserialize<'de> for MonitorConfig"],["impl<'de> Deserialize<'de> for Node"],["impl<'de> Deserialize<'de> for Value"]]],["cu29_runtime",[["impl<'de> Deserialize<'de> for CuTaskState"],["impl<'de> Deserialize<'de> for Cnx"],["impl<'de> Deserialize<'de> for ComponentConfig"],["impl<'de> Deserialize<'de> for CuConfig"],["impl<'de> Deserialize<'de> for MonitorConfig"],["impl<'de> Deserialize<'de> for Node"],["impl<'de> Deserialize<'de> for Value"],["impl<'de> Deserialize<'de> for CuCompactString"],["impl<'de> Deserialize<'de> for CuMsgMetadata"]]],["cu29_traits",[["impl<'de> Deserialize<'de> for CuError"]]]]);
      +    var implementors = Object.fromEntries([["cu29_clock",[["impl<'de> Deserialize<'de> for Tov"],["impl<'de> Deserialize<'de> for CuDuration"],["impl<'de> Deserialize<'de> for CuTimeRange"],["impl<'de> Deserialize<'de> for OptionCuTime"],["impl<'de> Deserialize<'de> for PartialCuTimeRange"]]],["cu29_log",[["impl<'de> Deserialize<'de> for CuLogEntry"]]],["cu29_rendercfg",[["impl<'de> Deserialize<'de> for Cnx"],["impl<'de> Deserialize<'de> for ComponentConfig"],["impl<'de> Deserialize<'de> for CuConfig"],["impl<'de> Deserialize<'de> for CuConfigRepresentation"],["impl<'de> Deserialize<'de> for MonitorConfig"],["impl<'de> Deserialize<'de> for Node"],["impl<'de> Deserialize<'de> for Value"]]],["cu29_runtime",[["impl<'de> Deserialize<'de> for CuTaskState"],["impl<'de> Deserialize<'de> for Cnx"],["impl<'de> Deserialize<'de> for ComponentConfig"],["impl<'de> Deserialize<'de> for CuConfig"],["impl<'de> Deserialize<'de> for MonitorConfig"],["impl<'de> Deserialize<'de> for Node"],["impl<'de> Deserialize<'de> for Value"],["impl<'de> Deserialize<'de> for CuCompactString"],["impl<'de> Deserialize<'de> for CuMsgMetadata"]]],["cu29_traits",[["impl<'de> Deserialize<'de> for CuError"]]]]);
           if (window.register_implementors) {
               window.register_implementors(implementors);
           } else {
      diff --git a/trait.impl/serde/ser/trait.Serialize.js b/trait.impl/serde/ser/trait.Serialize.js
      index 3de1fc8f4..9504760e2 100644
      --- a/trait.impl/serde/ser/trait.Serialize.js
      +++ b/trait.impl/serde/ser/trait.Serialize.js
      @@ -1,5 +1,5 @@
       (function() {
      -    var implementors = Object.fromEntries([["cu29_clock",[["impl Serialize for Tov"],["impl Serialize for CuDuration"],["impl Serialize for CuTimeRange"],["impl Serialize for OptionCuTime"],["impl Serialize for PartialCuTimeRange"]]],["cu29_log",[["impl Serialize for CuLogEntry"]]],["cu29_rendercfg",[["impl Serialize for Cnx"],["impl Serialize for ComponentConfig"],["impl Serialize for CuConfig"],["impl Serialize for CuConfigRepresentation"],["impl Serialize for MonitorConfig"],["impl Serialize for Node"],["impl Serialize for Value"]]],["cu29_runtime",[["impl Serialize for CopperListState"],["impl Serialize for CuTaskState"],["impl Serialize for Cnx"],["impl Serialize for ComponentConfig"],["impl Serialize for CuConfig"],["impl Serialize for MonitorConfig"],["impl Serialize for Node"],["impl Serialize for Value"],["impl Serialize for CuCompactString"],["impl Serialize for CuMsgMetadata"]]],["cu29_traits",[["impl Serialize for CuError"]]]]);
      +    var implementors = Object.fromEntries([["cu29_clock",[["impl Serialize for Tov"],["impl Serialize for CuDuration"],["impl Serialize for CuTimeRange"],["impl Serialize for OptionCuTime"],["impl Serialize for PartialCuTimeRange"]]],["cu29_log",[["impl Serialize for CuLogEntry"]]],["cu29_rendercfg",[["impl Serialize for Cnx"],["impl Serialize for ComponentConfig"],["impl Serialize for CuConfig"],["impl Serialize for CuConfigRepresentation"],["impl Serialize for MonitorConfig"],["impl Serialize for Node"],["impl Serialize for Value"]]],["cu29_runtime",[["impl Serialize for CopperListState"],["impl Serialize for CuTaskState"],["impl Serialize for Cnx"],["impl Serialize for ComponentConfig"],["impl Serialize for CuConfig"],["impl Serialize for MonitorConfig"],["impl Serialize for Node"],["impl Serialize for Value"],["impl Serialize for CuCompactString"],["impl Serialize for CuMsgMetadata"]]],["cu29_traits",[["impl Serialize for CuError"]]]]);
           if (window.register_implementors) {
               window.register_implementors(implementors);
           } else {
      diff --git a/type.impl/core/result/enum.Result.js b/type.impl/core/result/enum.Result.js
      index 1c26a35ea..2e4cc377d 100644
      --- a/type.impl/core/result/enum.Result.js
      +++ b/type.impl/core/result/enum.Result.js
      @@ -1,5 +1,5 @@
       (function() {
      -    var type_impls = Object.fromEntries([["cu29",[["
      Source§

      impl<'de, T, U> BorrowDecode<'de> for Result<T, U>
      where\n T: BorrowDecode<'de>,\n U: BorrowDecode<'de>,

      Source§

      fn borrow_decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: BorrowDecoder<'de>,

      Attempt to decode this type with the given BorrowDecode.
      ","BorrowDecode<'de>","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Clone for Result<T, E>
      where\n T: Clone,\n E: Clone,

      Source§

      fn clone(&self) -> Result<T, E>

      Returns a copy of the value. Read more
      Source§

      fn clone_from(&mut self, source: &Result<T, E>)

      Performs copy-assignment from source. Read more
      ","Clone","cu29::CuResult"],["
      Source§

      impl<C, E> ControlFlow for Result<C, E>
      where\n C: ControlFlow,

      ","ControlFlow","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Debug for Result<T, E>
      where\n T: Debug,\n E: Debug,

      Source§

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

      Formats the value using the given formatter. Read more
      ","Debug","cu29::CuResult"],["
      Source§

      impl<T, U> Decode for Result<T, U>
      where\n T: Decode,\n U: Decode,

      Source§

      fn decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: Decoder,

      Attempt to decode this type with the given Decode.
      ","Decode","cu29::CuResult"],["
      Source§

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

      Source§

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

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","cu29::CuResult"],["
      Source§

      impl<T, U> Encode for Result<T, U>
      where\n T: Encode,\n U: Encode,

      Source§

      fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
      where\n E: Encoder,

      Encode a given type.
      ","Encode","cu29::CuResult"],["
      1.0.0 · Source§

      impl<A, E, V> FromIterator<Result<A, E>> for Result<V, E>
      where\n V: FromIterator<A>,

      Source§

      fn from_iter<I>(iter: I) -> Result<V, E>
      where\n I: IntoIterator<Item = Result<A, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err occur, a\ncontainer with the values of each Result is returned.

      \n

      Here is an example which increments every integer in a vector,\nchecking for overflow:

      \n\n
      let v = vec![1, 2];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_add(1).ok_or(\"Overflow!\")\n).collect();\nassert_eq!(res, Ok(vec![2, 3]));
      \n

      Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

      \n\n
      let v = vec![1, 2, 0];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_sub(1).ok_or(\"Underflow!\")\n).collect();\nassert_eq!(res, Err(\"Underflow!\"));
      \n

      Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first Err.

      \n\n
      let v = vec![3, 2, 1, 10];\nlet mut shared = 0;\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {\n    shared += x;\n    x.checked_sub(2).ok_or(\"Underflow!\")\n}).collect();\nassert_eq!(res, Err(\"Underflow!\"));\nassert_eq!(shared, 6);
      \n

      Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

      \n
      ","FromIterator>","cu29::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Result<Infallible, E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(residual: Result<Infallible, E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Yeet<E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(_: Yeet<E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Hash for Result<T, E>
      where\n T: Hash,\n E: Hash,

      Source§

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

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

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

      Feeds a slice of this type into the given Hasher. Read more
      ","Hash","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> IntoIterator for Result<T, E>

      Source§

      fn into_iter(self) -> IntoIter<T>

      Returns a consuming iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(5);\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, [5]);\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, []);
      \n
      Source§

      type Item = T

      The type of the elements being iterated over.
      Source§

      type IntoIter = IntoIter<T>

      Which kind of iterator are we turning this into?
      ","IntoIterator","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Ord for Result<T, E>
      where\n T: Ord,\n E: Ord,

      Source§

      fn cmp(&self, other: &Result<T, E>) -> Ordering

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

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

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

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

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

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

      Restrict a value to a certain interval. Read more
      ","Ord","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialEq for Result<T, E>
      where\n T: PartialEq,\n E: PartialEq,

      Source§

      fn eq(&self, other: &Result<T, E>) -> bool

      Tests for self and other values to be equal, and is used by ==.
      1.0.0 · Source§

      fn ne(&self, other: &Rhs) -> bool

      Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
      ","PartialEq","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialOrd for Result<T, E>
      where\n T: PartialOrd,\n E: PartialOrd,

      Source§

      fn partial_cmp(&self, other: &Result<T, E>) -> Option<Ordering>

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

      fn lt(&self, other: &Rhs) -> bool

      Tests less than (for self and other) and is used by the < operator. Read more
      1.0.0 · Source§

      fn le(&self, other: &Rhs) -> bool

      Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
      1.0.0 · Source§

      fn gt(&self, other: &Rhs) -> bool

      Tests greater than (for self and other) and is used by the >\noperator. Read more
      1.0.0 · Source§

      fn ge(&self, other: &Rhs) -> bool

      Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
      ","PartialOrd","cu29::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Product<Result<U, E>> for Result<T, E>
      where\n T: Product<U>,

      Source§

      fn product<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the product of all elements is returned.

      \n
      §Examples
      \n

      This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns Err:

      \n\n
      let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert_eq!(total, Ok(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert!(total.is_err());
      \n
      ","Product>","cu29::CuResult"],["
      Source§

      impl<T, E> Residual<T> for Result<Infallible, E>

      Source§

      type TryType = Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2_residual)
      The “return” type of this meta-function.
      ","Residual","cu29::CuResult"],["
      Source§

      impl<T, E> Result<&T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29::CuResult"],["
      Source§

      impl<T, E> Result<&mut T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&mut T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&mut T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29::CuResult"],["
      Source§

      impl<T, E> Result<Option<T>, E>

      1.33.0 (const: 1.83.0) · Source

      pub const fn transpose(self) -> Option<Result<T, E>>

      Transposes a Result of an Option into an Option of a Result.

      \n

      Ok(None) will be mapped to None.\nOk(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)).

      \n
      §Examples
      \n
      #[derive(Debug, Eq, PartialEq)]\nstruct SomeErr;\n\nlet x: Result<Option<i32>, SomeErr> = Ok(Some(5));\nlet y: Option<Result<i32, SomeErr>> = Some(Ok(5));\nassert_eq!(x.transpose(), y);
      \n
      ",0,"cu29::CuResult"],["
      Source§

      impl<T, E> Result<Result<T, E>, E>

      Source

      pub const fn flatten(self) -> Result<T, E>

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

      Converts from Result<Result<T, E>, E> to Result<T, E>

      \n
      §Examples
      \n
      #![feature(result_flattening)]\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Ok(\"hello\"));\nassert_eq!(Ok(\"hello\"), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));\nassert_eq!(Err(6), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Err(6);\nassert_eq!(Err(6), x.flatten());
      \n

      Flattening only removes one level of nesting at a time:

      \n\n
      #![feature(result_flattening)]\nlet x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok(\"hello\")));\nassert_eq!(Ok(Ok(\"hello\")), x.flatten());\nassert_eq!(Ok(\"hello\"), x.flatten().flatten());
      \n
      ",0,"cu29::CuResult"],["
      Source§

      impl<T, E> Result<T, E>

      1.0.0 (const: 1.48.0) · Source

      pub const fn is_ok(&self) -> bool

      Returns true if the result is Ok.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_ok(), true);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_ok(), false);
      \n
      1.70.0 · Source

      pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool

      Returns true if the result is Ok and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.is_ok_and(|x| x > 1), true);\n\nlet x: Result<u32, &str> = Ok(0);\nassert_eq!(x.is_ok_and(|x| x > 1), false);\n\nlet x: Result<u32, &str> = Err(\"hey\");\nassert_eq!(x.is_ok_and(|x| x > 1), false);
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn is_err(&self) -> bool

      Returns true if the result is Err.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_err(), false);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_err(), true);
      \n
      1.70.0 · Source

      pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool

      Returns true if the result is Err and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      use std::io::{Error, ErrorKind};\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);\n\nlet x: Result<u32, Error> = Ok(123);\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
      \n
      1.0.0 · Source

      pub fn ok(self) -> Option<T>

      Converts from Result<T, E> to Option<T>.

      \n

      Converts self into an Option<T>, consuming self,\nand discarding the error, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.ok(), Some(2));\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.ok(), None);
      \n
      1.0.0 · Source

      pub fn err(self) -> Option<E>

      Converts from Result<T, E> to Option<E>.

      \n

      Converts self into an Option<E>, consuming self,\nand discarding the success value, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.err(), None);\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.err(), Some(\"Nothing here\"));
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn as_ref(&self) -> Result<&T, &E>

      Converts from &Result<T, E> to Result<&T, &E>.

      \n

      Produces a new Result, containing a reference\ninto the original, leaving the original in place.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.as_ref(), Ok(&2));\n\nlet x: Result<u32, &str> = Err(\"Error\");\nassert_eq!(x.as_ref(), Err(&\"Error\"));
      \n
      1.0.0 (const: 1.83.0) · Source

      pub const fn as_mut(&mut self) -> Result<&mut T, &mut E>

      Converts from &mut Result<T, E> to Result<&mut T, &mut E>.

      \n
      §Examples
      \n
      fn mutate(r: &mut Result<i32, i32>) {\n    match r.as_mut() {\n        Ok(v) => *v = 42,\n        Err(e) => *e = 0,\n    }\n}\n\nlet mut x: Result<i32, i32> = Ok(2);\nmutate(&mut x);\nassert_eq!(x.unwrap(), 42);\n\nlet mut x: Result<i32, i32> = Err(13);\nmutate(&mut x);\nassert_eq!(x.unwrap_err(), 0);
      \n
      1.0.0 · Source

      pub fn map<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to Result<U, E> by applying a function to a\ncontained Ok value, leaving an Err value untouched.

      \n

      This function can be used to compose the results of two functions.

      \n
      §Examples
      \n

      Print the numbers on each line of a string multiplied by two.

      \n\n
      let line = \"1\\n2\\n3\\n4\\n\";\n\nfor num in line.lines() {\n    match num.parse::<i32>().map(|i| i * 2) {\n        Ok(n) => println!(\"{n}\"),\n        Err(..) => {}\n    }\n}
      \n
      1.41.0 · Source

      pub fn map_or<U, F>(self, default: U, f: F) -> U
      where\n F: FnOnce(T) -> U,

      Returns the provided default (if Err), or\napplies a function to the contained value (if Ok).

      \n

      Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let x: Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or(42, |v| v.len()), 42);
      \n
      1.41.0 · Source

      pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
      where\n D: FnOnce(E) -> U,\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to U by applying fallback function default to\na contained Err value, or function f to a contained Ok value.

      \n

      This function can be used to unpack a successful result\nwhile handling an error.

      \n
      §Examples
      \n
      let k = 21;\n\nlet x : Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);\n\nlet x : Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
      \n
      1.0.0 · Source

      pub fn map_err<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> F,

      Maps a Result<T, E> to Result<T, F> by applying a function to a\ncontained Err value, leaving an Ok value untouched.

      \n

      This function can be used to pass through a successful result while handling\nan error.

      \n
      §Examples
      \n
      fn stringify(x: u32) -> String { format!(\"error code: {x}\") }\n\nlet x: Result<u32, u32> = Ok(2);\nassert_eq!(x.map_err(stringify), Ok(2));\n\nlet x: Result<u32, u32> = Err(13);\nassert_eq!(x.map_err(stringify), Err(\"error code: 13\".to_string()));
      \n
      1.76.0 · Source

      pub fn inspect<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&T),

      Calls a function with a reference to the contained value if Ok.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      let x: u8 = \"4\"\n    .parse::<u8>()\n    .inspect(|x| println!(\"original: {x}\"))\n    .map(|x| x.pow(3))\n    .expect(\"failed to parse number\");
      \n
      1.76.0 · Source

      pub fn inspect_err<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&E),

      Calls a function with a reference to the contained value if Err.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      use std::{fs, io};\n\nfn read() -> io::Result<String> {\n    fs::read_to_string(\"address.txt\")\n        .inspect_err(|e| eprintln!(\"failed to read file: {e}\"))\n}
      \n
      1.47.0 · Source

      pub fn as_deref(&self) -> Result<&<T as Deref>::Target, &E>
      where\n T: Deref,

      Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.

      \n

      Coerces the Ok variant of the original Result via Deref\nand returns the new Result.

      \n
      §Examples
      \n
      let x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&str, &u32> = Ok(\"hello\");\nassert_eq!(x.as_deref(), y);\n\nlet x: Result<String, u32> = Err(42);\nlet y: Result<&str, &u32> = Err(&42);\nassert_eq!(x.as_deref(), y);
      \n
      1.47.0 · Source

      pub fn as_deref_mut(&mut self) -> Result<&mut <T as Deref>::Target, &mut E>
      where\n T: DerefMut,

      Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.

      \n

      Coerces the Ok variant of the original Result via DerefMut\nand returns the new Result.

      \n
      §Examples
      \n
      let mut s = \"HELLO\".to_string();\nlet mut x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&mut str, &mut u32> = Ok(&mut s);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);\n\nlet mut i = 42;\nlet mut x: Result<String, u32> = Err(42);\nlet y: Result<&mut str, &mut u32> = Err(&mut i);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
      \n
      1.0.0 · Source

      pub fn iter(&self) -> Iter<'_, T>

      Returns an iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(7);\nassert_eq!(x.iter().next(), Some(&7));\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter().next(), None);
      \n
      1.0.0 · Source

      pub fn iter_mut(&mut self) -> IterMut<'_, T>

      Returns a mutable iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let mut x: Result<u32, &str> = Ok(7);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 40,\n    None => {},\n}\nassert_eq!(x, Ok(40));\n\nlet mut x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter_mut().next(), None);
      \n
      1.4.0 · Source

      pub fn expect(self, msg: &str) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message including the\npassed message, and the content of the Err.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.expect(\"Testing expect\"); // panics with `Testing expect: emergency failure`
      \n
      §Recommended Message Style
      \n

      We recommend that expect messages are used to describe the reason you\nexpect the Result should be Ok.

      \n\n
      let path = std::env::var(\"IMPORTANT_PATH\")\n    .expect(\"env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`\");
      \n

      Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

      \n

      For more detail on expect message styles and the reasoning behind our recommendation please\nrefer to the section on “Common Message\nStyles” in the\nstd::error module docs.

      \n
      1.0.0 · Source

      pub fn unwrap(self) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message provided by the\nErr’s value.

      \n
      §Examples
      \n

      Basic usage:

      \n\n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.unwrap(), 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.unwrap(); // panics with `emergency failure`
      \n
      1.16.0 · Source

      pub fn unwrap_or_default(self) -> T
      where\n T: Default,

      Returns the contained Ok value or a default

      \n

      Consumes the self argument then, if Ok, returns the contained\nvalue, otherwise if Err, returns the default value for that\ntype.

      \n
      §Examples
      \n

      Converts a string to an integer, turning poorly-formed strings\ninto 0 (the default value for integers). parse converts\na string to any other type that implements FromStr, returning an\nErr on error.

      \n\n
      let good_year_from_input = \"1909\";\nlet bad_year_from_input = \"190blarg\";\nlet good_year = good_year_from_input.parse().unwrap_or_default();\nlet bad_year = bad_year_from_input.parse().unwrap_or_default();\n\nassert_eq!(1909, good_year);\nassert_eq!(0, bad_year);
      \n
      1.17.0 · Source

      pub fn expect_err(self, msg: &str) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a panic message including the\npassed message, and the content of the Ok.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(10);\nx.expect_err(\"Testing expect_err\"); // panics with `Testing expect_err: 10`
      \n
      1.0.0 · Source

      pub fn unwrap_err(self) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a custom panic message provided\nby the Ok’s value.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nx.unwrap_err(); // panics with `2`
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(x.unwrap_err(), \"emergency failure\");
      \n
      Source

      pub fn into_ok(self) -> T
      where\n E: Into<!>,

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

      Returns the contained Ok value, but never panics.

      \n

      Unlike unwrap, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap as a maintainability safeguard that will fail\nto compile if the error type of the Result is later changed\nto an error that can actually occur.

      \n
      §Examples
      \n
      \nfn only_good_news() -> Result<String, !> {\n    Ok(\"this is fine\".into())\n}\n\nlet s: String = only_good_news().into_ok();\nprintln!(\"{s}\");
      \n
      Source

      pub fn into_err(self) -> E
      where\n T: Into<!>,

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

      Returns the contained Err value, but never panics.

      \n

      Unlike unwrap_err, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap_err as a maintainability safeguard that will fail\nto compile if the ok type of the Result is later changed\nto a type that can actually occur.

      \n
      §Examples
      \n
      \nfn only_bad_news() -> Result<!, String> {\n    Err(\"Oops, it failed\".into())\n}\n\nlet error: String = only_bad_news().into_err();\nprintln!(\"{error}\");
      \n
      1.0.0 · Source

      pub fn and<U>(self, res: Result<U, E>) -> Result<U, E>

      Returns res if the result is Ok, otherwise returns the Err value of self.

      \n

      Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<&str, &str> = Ok(\"foo\");\nassert_eq!(x.and(y), Err(\"early error\"));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"not a 2\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Ok(\"different result type\");\nassert_eq!(x.and(y), Ok(\"different result type\"));
      \n
      1.0.0 · Source

      pub fn and_then<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> Result<U, E>,

      Calls op if the result is Ok, otherwise returns the Err value of self.

      \n

      This function can be used for control flow based on Result values.

      \n
      §Examples
      \n
      fn sq_then_to_string(x: u32) -> Result<String, &'static str> {\n    x.checked_mul(x).map(|sq| sq.to_string()).ok_or(\"overflowed\")\n}\n\nassert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));\nassert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err(\"overflowed\"));\nassert_eq!(Err(\"not a number\").and_then(sq_then_to_string), Err(\"not a number\"));
      \n

      Often used to chain fallible operations that may return Err.

      \n\n
      use std::{io::ErrorKind, path::Path};\n\n// Note: on Windows \"/\" maps to \"C:\\\"\nlet root_modified_time = Path::new(\"/\").metadata().and_then(|md| md.modified());\nassert!(root_modified_time.is_ok());\n\nlet should_fail = Path::new(\"/bad/path\").metadata().and_then(|md| md.modified());\nassert!(should_fail.is_err());\nassert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
      \n
      1.0.0 · Source

      pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>

      Returns res if the result is Err, otherwise returns the Ok value of self.

      \n

      Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<u32, &str> = Ok(2);\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Ok(100);\nassert_eq!(x.or(y), Ok(2));
      \n
      1.0.0 · Source

      pub fn or_else<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> Result<T, F>,

      Calls op if the result is Err, otherwise returns the Ok value of self.

      \n

      This function can be used for control flow based on result values.

      \n
      §Examples
      \n
      fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }\nfn err(x: u32) -> Result<u32, u32> { Err(x) }\n\nassert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));\nassert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));\nassert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));\nassert_eq!(Err(3).or_else(err).or_else(err), Err(3));
      \n
      1.0.0 · Source

      pub fn unwrap_or(self, default: T) -> T

      Returns the contained Ok value or a provided default.

      \n

      Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let default = 2;\nlet x: Result<u32, &str> = Ok(9);\nassert_eq!(x.unwrap_or(default), 9);\n\nlet x: Result<u32, &str> = Err(\"error\");\nassert_eq!(x.unwrap_or(default), default);
      \n
      1.0.0 · Source

      pub fn unwrap_or_else<F>(self, op: F) -> T
      where\n F: FnOnce(E) -> T,

      Returns the contained Ok value or computes it from a closure.

      \n
      §Examples
      \n
      fn count(x: &str) -> usize { x.len() }\n\nassert_eq!(Ok(2).unwrap_or_else(count), 2);\nassert_eq!(Err(\"foo\").unwrap_or_else(count), 3);
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_unchecked(self) -> T

      Returns the contained Ok value, consuming the self value,\nwithout checking that the value is not an Err.

      \n
      §Safety
      \n

      Calling this method on an Err is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(unsafe { x.unwrap_unchecked() }, 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nunsafe { x.unwrap_unchecked(); } // Undefined behavior!
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_err_unchecked(self) -> E

      Returns the contained Err value, consuming the self value,\nwithout checking that the value is not an Ok.

      \n
      §Safety
      \n

      Calling this method on an Ok is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nunsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(unsafe { x.unwrap_err_unchecked() }, \"emergency failure\");
      \n
      ",0,"cu29::CuResult"],["
      Source§

      impl<T, E> Serialize for Result<T, E>
      where\n T: Serialize,\n E: Serialize,

      Source§

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

      Serialize this value into the given Serde serializer. Read more
      ","Serialize","cu29::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
      where\n T: Sum<U>,

      Source§

      fn sum<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the sum of all elements is returned.

      \n
      §Examples
      \n

      This sums up every integer in a vector, rejecting the sum if a negative\nelement is encountered:

      \n\n
      let f = |&x: &i32| if x < 0 { Err(\"Negative element found\") } else { Ok(x) };\nlet v = vec![1, 2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Ok(3));\nlet v = vec![1, -2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Err(\"Negative element found\"));
      \n
      ","Sum>","cu29::CuResult"],["
      1.61.0 · Source§

      impl<T, E> Termination for Result<T, E>
      where\n T: Termination,\n E: Debug,

      Source§

      fn report(self) -> ExitCode

      Is called to get the representation of the value as status code.\nThis status code is returned to the operating system.
      ","Termination","cu29::CuResult"],["
      Source§

      impl<T, E> Try for Result<T, E>

      Source§

      type Output = T

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value produced by ? when not short-circuiting.
      Source§

      type Residual = Result<Infallible, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
      Source§

      fn from_output(output: <Result<T, E> as Try>::Output) -> Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from its Output type. Read more
      Source§

      fn branch(\n self,\n) -> ControlFlow<<Result<T, E> as Try>::Residual, <Result<T, E> as Try>::Output>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
      ","Try","cu29::CuResult"],["
      §

      impl<T, E> TryWriteable for Result<T, E>
      where\n T: Writeable,\n E: Writeable + Clone,

      §

      type Error = E

      §

      fn try_write_to<W>(\n &self,\n sink: &mut W,\n) -> Result<Result<(), <Result<T, E> as TryWriteable>::Error>, Error>
      where\n W: Write + ?Sized,

      Writes the content of this writeable to a sink. Read more
      §

      fn try_write_to_parts<S>(\n &self,\n sink: &mut S,\n) -> Result<Result<(), <Result<T, E> as TryWriteable>::Error>, Error>
      where\n S: PartsWrite + ?Sized,

      Writes the content of this writeable to a sink with parts (annotations). Read more
      §

      fn writeable_length_hint(&self) -> LengthHint

      Returns a hint for the number of UTF-8 bytes that will be written to the sink. Read more
      §

      fn try_write_to_string(\n &self,\n) -> Result<Cow<'_, str>, (<Result<T, E> as TryWriteable>::Error, Cow<'_, str>)>

      Writes the content of this writeable to a string. Read more
      §

      fn writeable_cmp_bytes(&self, other: &[u8]) -> Ordering

      Compares the content of this writeable to a byte slice. Read more
      ","TryWriteable","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Copy for Result<T, E>
      where\n T: Copy,\n E: Copy,

      ","Copy","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Eq for Result<T, E>
      where\n T: Eq,\n E: Eq,

      ","Eq","cu29::CuResult"],["
      §

      impl<T, E> LifetimeFree for Result<T, E>
      where\n T: LifetimeFree,\n E: LifetimeFree,

      ","LifetimeFree","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> StructuralPartialEq for Result<T, E>

      ","StructuralPartialEq","cu29::CuResult"]]],["cu29_rendercfg",[["
      Source§

      impl<'de, T, U> BorrowDecode<'de> for Result<T, U>
      where\n T: BorrowDecode<'de>,\n U: BorrowDecode<'de>,

      Source§

      fn borrow_decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: BorrowDecoder<'de>,

      Attempt to decode this type with the given BorrowDecode.
      ","BorrowDecode<'de>","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Clone for Result<T, E>
      where\n T: Clone,\n E: Clone,

      Source§

      fn clone(&self) -> Result<T, E>

      Returns a copy of the value. Read more
      Source§

      fn clone_from(&mut self, source: &Result<T, E>)

      Performs copy-assignment from source. Read more
      ","Clone","cu29_rendercfg::CuResult"],["
      Source§

      impl<C, E> ControlFlow for Result<C, E>
      where\n C: ControlFlow,

      ","ControlFlow","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Debug for Result<T, E>
      where\n T: Debug,\n E: Debug,

      Source§

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

      Formats the value using the given formatter. Read more
      ","Debug","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, U> Decode for Result<T, U>
      where\n T: Decode,\n U: Decode,

      Source§

      fn decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: Decoder,

      Attempt to decode this type with the given Decode.
      ","Decode","cu29_rendercfg::CuResult"],["
      Source§

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

      Source§

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

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, U> Encode for Result<T, U>
      where\n T: Encode,\n U: Encode,

      Source§

      fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
      where\n E: Encoder,

      Encode a given type.
      ","Encode","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<A, E, V> FromIterator<Result<A, E>> for Result<V, E>
      where\n V: FromIterator<A>,

      Source§

      fn from_iter<I>(iter: I) -> Result<V, E>
      where\n I: IntoIterator<Item = Result<A, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err occur, a\ncontainer with the values of each Result is returned.

      \n

      Here is an example which increments every integer in a vector,\nchecking for overflow:

      \n\n
      let v = vec![1, 2];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_add(1).ok_or(\"Overflow!\")\n).collect();\nassert_eq!(res, Ok(vec![2, 3]));
      \n

      Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

      \n\n
      let v = vec![1, 2, 0];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_sub(1).ok_or(\"Underflow!\")\n).collect();\nassert_eq!(res, Err(\"Underflow!\"));
      \n

      Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first Err.

      \n\n
      let v = vec![3, 2, 1, 10];\nlet mut shared = 0;\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {\n    shared += x;\n    x.checked_sub(2).ok_or(\"Underflow!\")\n}).collect();\nassert_eq!(res, Err(\"Underflow!\"));\nassert_eq!(shared, 6);
      \n

      Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

      \n
      ","FromIterator>","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Result<Infallible, E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(residual: Result<Infallible, E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Yeet<E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(_: Yeet<E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Hash for Result<T, E>
      where\n T: Hash,\n E: Hash,

      Source§

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

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

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

      Feeds a slice of this type into the given Hasher. Read more
      ","Hash","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> IntoIterator for Result<T, E>

      Source§

      fn into_iter(self) -> IntoIter<T>

      Returns a consuming iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(5);\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, [5]);\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, []);
      \n
      Source§

      type Item = T

      The type of the elements being iterated over.
      Source§

      type IntoIter = IntoIter<T>

      Which kind of iterator are we turning this into?
      ","IntoIterator","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Ord for Result<T, E>
      where\n T: Ord,\n E: Ord,

      Source§

      fn cmp(&self, other: &Result<T, E>) -> Ordering

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

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

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

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

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

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

      Restrict a value to a certain interval. Read more
      ","Ord","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialEq for Result<T, E>
      where\n T: PartialEq,\n E: PartialEq,

      Source§

      fn eq(&self, other: &Result<T, E>) -> bool

      Tests for self and other values to be equal, and is used by ==.
      1.0.0 · Source§

      fn ne(&self, other: &Rhs) -> bool

      Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
      ","PartialEq","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialOrd for Result<T, E>
      where\n T: PartialOrd,\n E: PartialOrd,

      Source§

      fn partial_cmp(&self, other: &Result<T, E>) -> Option<Ordering>

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

      fn lt(&self, other: &Rhs) -> bool

      Tests less than (for self and other) and is used by the < operator. Read more
      1.0.0 · Source§

      fn le(&self, other: &Rhs) -> bool

      Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
      1.0.0 · Source§

      fn gt(&self, other: &Rhs) -> bool

      Tests greater than (for self and other) and is used by the >\noperator. Read more
      1.0.0 · Source§

      fn ge(&self, other: &Rhs) -> bool

      Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
      ","PartialOrd","cu29_rendercfg::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Product<Result<U, E>> for Result<T, E>
      where\n T: Product<U>,

      Source§

      fn product<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the product of all elements is returned.

      \n
      §Examples
      \n

      This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns Err:

      \n\n
      let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert_eq!(total, Ok(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert!(total.is_err());
      \n
      ","Product>","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Residual<T> for Result<Infallible, E>

      Source§

      type TryType = Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2_residual)
      The “return” type of this meta-function.
      ","Residual","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Result<&T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Result<&mut T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&mut T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&mut T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Result<Option<T>, E>

      1.33.0 (const: 1.83.0) · Source

      pub const fn transpose(self) -> Option<Result<T, E>>

      Transposes a Result of an Option into an Option of a Result.

      \n

      Ok(None) will be mapped to None.\nOk(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)).

      \n
      §Examples
      \n
      #[derive(Debug, Eq, PartialEq)]\nstruct SomeErr;\n\nlet x: Result<Option<i32>, SomeErr> = Ok(Some(5));\nlet y: Option<Result<i32, SomeErr>> = Some(Ok(5));\nassert_eq!(x.transpose(), y);
      \n
      ",0,"cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Result<Result<T, E>, E>

      Source

      pub const fn flatten(self) -> Result<T, E>

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

      Converts from Result<Result<T, E>, E> to Result<T, E>

      \n
      §Examples
      \n
      #![feature(result_flattening)]\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Ok(\"hello\"));\nassert_eq!(Ok(\"hello\"), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));\nassert_eq!(Err(6), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Err(6);\nassert_eq!(Err(6), x.flatten());
      \n

      Flattening only removes one level of nesting at a time:

      \n\n
      #![feature(result_flattening)]\nlet x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok(\"hello\")));\nassert_eq!(Ok(Ok(\"hello\")), x.flatten());\nassert_eq!(Ok(\"hello\"), x.flatten().flatten());
      \n
      ",0,"cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Result<T, E>

      1.0.0 (const: 1.48.0) · Source

      pub const fn is_ok(&self) -> bool

      Returns true if the result is Ok.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_ok(), true);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_ok(), false);
      \n
      1.70.0 · Source

      pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool

      Returns true if the result is Ok and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.is_ok_and(|x| x > 1), true);\n\nlet x: Result<u32, &str> = Ok(0);\nassert_eq!(x.is_ok_and(|x| x > 1), false);\n\nlet x: Result<u32, &str> = Err(\"hey\");\nassert_eq!(x.is_ok_and(|x| x > 1), false);
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn is_err(&self) -> bool

      Returns true if the result is Err.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_err(), false);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_err(), true);
      \n
      1.70.0 · Source

      pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool

      Returns true if the result is Err and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      use std::io::{Error, ErrorKind};\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);\n\nlet x: Result<u32, Error> = Ok(123);\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
      \n
      1.0.0 · Source

      pub fn ok(self) -> Option<T>

      Converts from Result<T, E> to Option<T>.

      \n

      Converts self into an Option<T>, consuming self,\nand discarding the error, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.ok(), Some(2));\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.ok(), None);
      \n
      1.0.0 · Source

      pub fn err(self) -> Option<E>

      Converts from Result<T, E> to Option<E>.

      \n

      Converts self into an Option<E>, consuming self,\nand discarding the success value, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.err(), None);\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.err(), Some(\"Nothing here\"));
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn as_ref(&self) -> Result<&T, &E>

      Converts from &Result<T, E> to Result<&T, &E>.

      \n

      Produces a new Result, containing a reference\ninto the original, leaving the original in place.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.as_ref(), Ok(&2));\n\nlet x: Result<u32, &str> = Err(\"Error\");\nassert_eq!(x.as_ref(), Err(&\"Error\"));
      \n
      1.0.0 (const: 1.83.0) · Source

      pub const fn as_mut(&mut self) -> Result<&mut T, &mut E>

      Converts from &mut Result<T, E> to Result<&mut T, &mut E>.

      \n
      §Examples
      \n
      fn mutate(r: &mut Result<i32, i32>) {\n    match r.as_mut() {\n        Ok(v) => *v = 42,\n        Err(e) => *e = 0,\n    }\n}\n\nlet mut x: Result<i32, i32> = Ok(2);\nmutate(&mut x);\nassert_eq!(x.unwrap(), 42);\n\nlet mut x: Result<i32, i32> = Err(13);\nmutate(&mut x);\nassert_eq!(x.unwrap_err(), 0);
      \n
      1.0.0 · Source

      pub fn map<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to Result<U, E> by applying a function to a\ncontained Ok value, leaving an Err value untouched.

      \n

      This function can be used to compose the results of two functions.

      \n
      §Examples
      \n

      Print the numbers on each line of a string multiplied by two.

      \n\n
      let line = \"1\\n2\\n3\\n4\\n\";\n\nfor num in line.lines() {\n    match num.parse::<i32>().map(|i| i * 2) {\n        Ok(n) => println!(\"{n}\"),\n        Err(..) => {}\n    }\n}
      \n
      1.41.0 · Source

      pub fn map_or<U, F>(self, default: U, f: F) -> U
      where\n F: FnOnce(T) -> U,

      Returns the provided default (if Err), or\napplies a function to the contained value (if Ok).

      \n

      Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let x: Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or(42, |v| v.len()), 42);
      \n
      1.41.0 · Source

      pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
      where\n D: FnOnce(E) -> U,\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to U by applying fallback function default to\na contained Err value, or function f to a contained Ok value.

      \n

      This function can be used to unpack a successful result\nwhile handling an error.

      \n
      §Examples
      \n
      let k = 21;\n\nlet x : Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);\n\nlet x : Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
      \n
      1.0.0 · Source

      pub fn map_err<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> F,

      Maps a Result<T, E> to Result<T, F> by applying a function to a\ncontained Err value, leaving an Ok value untouched.

      \n

      This function can be used to pass through a successful result while handling\nan error.

      \n
      §Examples
      \n
      fn stringify(x: u32) -> String { format!(\"error code: {x}\") }\n\nlet x: Result<u32, u32> = Ok(2);\nassert_eq!(x.map_err(stringify), Ok(2));\n\nlet x: Result<u32, u32> = Err(13);\nassert_eq!(x.map_err(stringify), Err(\"error code: 13\".to_string()));
      \n
      1.76.0 · Source

      pub fn inspect<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&T),

      Calls a function with a reference to the contained value if Ok.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      let x: u8 = \"4\"\n    .parse::<u8>()\n    .inspect(|x| println!(\"original: {x}\"))\n    .map(|x| x.pow(3))\n    .expect(\"failed to parse number\");
      \n
      1.76.0 · Source

      pub fn inspect_err<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&E),

      Calls a function with a reference to the contained value if Err.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      use std::{fs, io};\n\nfn read() -> io::Result<String> {\n    fs::read_to_string(\"address.txt\")\n        .inspect_err(|e| eprintln!(\"failed to read file: {e}\"))\n}
      \n
      1.47.0 · Source

      pub fn as_deref(&self) -> Result<&<T as Deref>::Target, &E>
      where\n T: Deref,

      Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.

      \n

      Coerces the Ok variant of the original Result via Deref\nand returns the new Result.

      \n
      §Examples
      \n
      let x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&str, &u32> = Ok(\"hello\");\nassert_eq!(x.as_deref(), y);\n\nlet x: Result<String, u32> = Err(42);\nlet y: Result<&str, &u32> = Err(&42);\nassert_eq!(x.as_deref(), y);
      \n
      1.47.0 · Source

      pub fn as_deref_mut(&mut self) -> Result<&mut <T as Deref>::Target, &mut E>
      where\n T: DerefMut,

      Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.

      \n

      Coerces the Ok variant of the original Result via DerefMut\nand returns the new Result.

      \n
      §Examples
      \n
      let mut s = \"HELLO\".to_string();\nlet mut x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&mut str, &mut u32> = Ok(&mut s);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);\n\nlet mut i = 42;\nlet mut x: Result<String, u32> = Err(42);\nlet y: Result<&mut str, &mut u32> = Err(&mut i);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
      \n
      1.0.0 · Source

      pub fn iter(&self) -> Iter<'_, T>

      Returns an iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(7);\nassert_eq!(x.iter().next(), Some(&7));\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter().next(), None);
      \n
      1.0.0 · Source

      pub fn iter_mut(&mut self) -> IterMut<'_, T>

      Returns a mutable iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let mut x: Result<u32, &str> = Ok(7);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 40,\n    None => {},\n}\nassert_eq!(x, Ok(40));\n\nlet mut x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter_mut().next(), None);
      \n
      1.4.0 · Source

      pub fn expect(self, msg: &str) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message including the\npassed message, and the content of the Err.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.expect(\"Testing expect\"); // panics with `Testing expect: emergency failure`
      \n
      §Recommended Message Style
      \n

      We recommend that expect messages are used to describe the reason you\nexpect the Result should be Ok.

      \n\n
      let path = std::env::var(\"IMPORTANT_PATH\")\n    .expect(\"env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`\");
      \n

      Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

      \n

      For more detail on expect message styles and the reasoning behind our recommendation please\nrefer to the section on “Common Message\nStyles” in the\nstd::error module docs.

      \n
      1.0.0 · Source

      pub fn unwrap(self) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message provided by the\nErr’s value.

      \n
      §Examples
      \n

      Basic usage:

      \n\n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.unwrap(), 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.unwrap(); // panics with `emergency failure`
      \n
      1.16.0 · Source

      pub fn unwrap_or_default(self) -> T
      where\n T: Default,

      Returns the contained Ok value or a default

      \n

      Consumes the self argument then, if Ok, returns the contained\nvalue, otherwise if Err, returns the default value for that\ntype.

      \n
      §Examples
      \n

      Converts a string to an integer, turning poorly-formed strings\ninto 0 (the default value for integers). parse converts\na string to any other type that implements FromStr, returning an\nErr on error.

      \n\n
      let good_year_from_input = \"1909\";\nlet bad_year_from_input = \"190blarg\";\nlet good_year = good_year_from_input.parse().unwrap_or_default();\nlet bad_year = bad_year_from_input.parse().unwrap_or_default();\n\nassert_eq!(1909, good_year);\nassert_eq!(0, bad_year);
      \n
      1.17.0 · Source

      pub fn expect_err(self, msg: &str) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a panic message including the\npassed message, and the content of the Ok.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(10);\nx.expect_err(\"Testing expect_err\"); // panics with `Testing expect_err: 10`
      \n
      1.0.0 · Source

      pub fn unwrap_err(self) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a custom panic message provided\nby the Ok’s value.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nx.unwrap_err(); // panics with `2`
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(x.unwrap_err(), \"emergency failure\");
      \n
      Source

      pub fn into_ok(self) -> T
      where\n E: Into<!>,

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

      Returns the contained Ok value, but never panics.

      \n

      Unlike unwrap, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap as a maintainability safeguard that will fail\nto compile if the error type of the Result is later changed\nto an error that can actually occur.

      \n
      §Examples
      \n
      \nfn only_good_news() -> Result<String, !> {\n    Ok(\"this is fine\".into())\n}\n\nlet s: String = only_good_news().into_ok();\nprintln!(\"{s}\");
      \n
      Source

      pub fn into_err(self) -> E
      where\n T: Into<!>,

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

      Returns the contained Err value, but never panics.

      \n

      Unlike unwrap_err, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap_err as a maintainability safeguard that will fail\nto compile if the ok type of the Result is later changed\nto a type that can actually occur.

      \n
      §Examples
      \n
      \nfn only_bad_news() -> Result<!, String> {\n    Err(\"Oops, it failed\".into())\n}\n\nlet error: String = only_bad_news().into_err();\nprintln!(\"{error}\");
      \n
      1.0.0 · Source

      pub fn and<U>(self, res: Result<U, E>) -> Result<U, E>

      Returns res if the result is Ok, otherwise returns the Err value of self.

      \n

      Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<&str, &str> = Ok(\"foo\");\nassert_eq!(x.and(y), Err(\"early error\"));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"not a 2\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Ok(\"different result type\");\nassert_eq!(x.and(y), Ok(\"different result type\"));
      \n
      1.0.0 · Source

      pub fn and_then<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> Result<U, E>,

      Calls op if the result is Ok, otherwise returns the Err value of self.

      \n

      This function can be used for control flow based on Result values.

      \n
      §Examples
      \n
      fn sq_then_to_string(x: u32) -> Result<String, &'static str> {\n    x.checked_mul(x).map(|sq| sq.to_string()).ok_or(\"overflowed\")\n}\n\nassert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));\nassert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err(\"overflowed\"));\nassert_eq!(Err(\"not a number\").and_then(sq_then_to_string), Err(\"not a number\"));
      \n

      Often used to chain fallible operations that may return Err.

      \n\n
      use std::{io::ErrorKind, path::Path};\n\n// Note: on Windows \"/\" maps to \"C:\\\"\nlet root_modified_time = Path::new(\"/\").metadata().and_then(|md| md.modified());\nassert!(root_modified_time.is_ok());\n\nlet should_fail = Path::new(\"/bad/path\").metadata().and_then(|md| md.modified());\nassert!(should_fail.is_err());\nassert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
      \n
      1.0.0 · Source

      pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>

      Returns res if the result is Err, otherwise returns the Ok value of self.

      \n

      Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<u32, &str> = Ok(2);\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Ok(100);\nassert_eq!(x.or(y), Ok(2));
      \n
      1.0.0 · Source

      pub fn or_else<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> Result<T, F>,

      Calls op if the result is Err, otherwise returns the Ok value of self.

      \n

      This function can be used for control flow based on result values.

      \n
      §Examples
      \n
      fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }\nfn err(x: u32) -> Result<u32, u32> { Err(x) }\n\nassert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));\nassert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));\nassert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));\nassert_eq!(Err(3).or_else(err).or_else(err), Err(3));
      \n
      1.0.0 · Source

      pub fn unwrap_or(self, default: T) -> T

      Returns the contained Ok value or a provided default.

      \n

      Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let default = 2;\nlet x: Result<u32, &str> = Ok(9);\nassert_eq!(x.unwrap_or(default), 9);\n\nlet x: Result<u32, &str> = Err(\"error\");\nassert_eq!(x.unwrap_or(default), default);
      \n
      1.0.0 · Source

      pub fn unwrap_or_else<F>(self, op: F) -> T
      where\n F: FnOnce(E) -> T,

      Returns the contained Ok value or computes it from a closure.

      \n
      §Examples
      \n
      fn count(x: &str) -> usize { x.len() }\n\nassert_eq!(Ok(2).unwrap_or_else(count), 2);\nassert_eq!(Err(\"foo\").unwrap_or_else(count), 3);
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_unchecked(self) -> T

      Returns the contained Ok value, consuming the self value,\nwithout checking that the value is not an Err.

      \n
      §Safety
      \n

      Calling this method on an Err is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(unsafe { x.unwrap_unchecked() }, 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nunsafe { x.unwrap_unchecked(); } // Undefined behavior!
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_err_unchecked(self) -> E

      Returns the contained Err value, consuming the self value,\nwithout checking that the value is not an Ok.

      \n
      §Safety
      \n

      Calling this method on an Ok is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nunsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(unsafe { x.unwrap_err_unchecked() }, \"emergency failure\");
      \n
      ",0,"cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Serialize for Result<T, E>
      where\n T: Serialize,\n E: Serialize,

      Source§

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

      Serialize this value into the given Serde serializer. Read more
      ","Serialize","cu29_rendercfg::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
      where\n T: Sum<U>,

      Source§

      fn sum<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the sum of all elements is returned.

      \n
      §Examples
      \n

      This sums up every integer in a vector, rejecting the sum if a negative\nelement is encountered:

      \n\n
      let f = |&x: &i32| if x < 0 { Err(\"Negative element found\") } else { Ok(x) };\nlet v = vec![1, 2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Ok(3));\nlet v = vec![1, -2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Err(\"Negative element found\"));
      \n
      ","Sum>","cu29_rendercfg::CuResult"],["
      1.61.0 · Source§

      impl<T, E> Termination for Result<T, E>
      where\n T: Termination,\n E: Debug,

      Source§

      fn report(self) -> ExitCode

      Is called to get the representation of the value as status code.\nThis status code is returned to the operating system.
      ","Termination","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Try for Result<T, E>

      Source§

      type Output = T

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value produced by ? when not short-circuiting.
      Source§

      type Residual = Result<Infallible, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
      Source§

      fn from_output(output: <Result<T, E> as Try>::Output) -> Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from its Output type. Read more
      Source§

      fn branch(\n self,\n) -> ControlFlow<<Result<T, E> as Try>::Residual, <Result<T, E> as Try>::Output>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
      ","Try","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Copy for Result<T, E>
      where\n T: Copy,\n E: Copy,

      ","Copy","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Eq for Result<T, E>
      where\n T: Eq,\n E: Eq,

      ","Eq","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> StructuralPartialEq for Result<T, E>

      ","StructuralPartialEq","cu29_rendercfg::CuResult"]]],["cu29_traits",[["
      Source§

      impl<'de, T, U> BorrowDecode<'de> for Result<T, U>
      where\n T: BorrowDecode<'de>,\n U: BorrowDecode<'de>,

      Source§

      fn borrow_decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: BorrowDecoder<'de>,

      Attempt to decode this type with the given BorrowDecode.
      ","BorrowDecode<'de>","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Clone for Result<T, E>
      where\n T: Clone,\n E: Clone,

      Source§

      fn clone(&self) -> Result<T, E>

      Returns a copy of the value. Read more
      Source§

      fn clone_from(&mut self, source: &Result<T, E>)

      Performs copy-assignment from source. Read more
      ","Clone","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Debug for Result<T, E>
      where\n T: Debug,\n E: Debug,

      Source§

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

      Formats the value using the given formatter. Read more
      ","Debug","cu29_traits::CuResult"],["
      Source§

      impl<T, U> Decode for Result<T, U>
      where\n T: Decode,\n U: Decode,

      Source§

      fn decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: Decoder,

      Attempt to decode this type with the given Decode.
      ","Decode","cu29_traits::CuResult"],["
      Source§

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

      Source§

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

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","cu29_traits::CuResult"],["
      Source§

      impl<T, U> Encode for Result<T, U>
      where\n T: Encode,\n U: Encode,

      Source§

      fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
      where\n E: Encoder,

      Encode a given type.
      ","Encode","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<A, E, V> FromIterator<Result<A, E>> for Result<V, E>
      where\n V: FromIterator<A>,

      Source§

      fn from_iter<I>(iter: I) -> Result<V, E>
      where\n I: IntoIterator<Item = Result<A, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err occur, a\ncontainer with the values of each Result is returned.

      \n

      Here is an example which increments every integer in a vector,\nchecking for overflow:

      \n\n
      let v = vec![1, 2];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_add(1).ok_or(\"Overflow!\")\n).collect();\nassert_eq!(res, Ok(vec![2, 3]));
      \n

      Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

      \n\n
      let v = vec![1, 2, 0];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_sub(1).ok_or(\"Underflow!\")\n).collect();\nassert_eq!(res, Err(\"Underflow!\"));
      \n

      Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first Err.

      \n\n
      let v = vec![3, 2, 1, 10];\nlet mut shared = 0;\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {\n    shared += x;\n    x.checked_sub(2).ok_or(\"Underflow!\")\n}).collect();\nassert_eq!(res, Err(\"Underflow!\"));\nassert_eq!(shared, 6);
      \n

      Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

      \n
      ","FromIterator>","cu29_traits::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Result<Infallible, E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(residual: Result<Infallible, E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29_traits::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Yeet<E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(_: Yeet<E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Hash for Result<T, E>
      where\n T: Hash,\n E: Hash,

      Source§

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

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

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

      Feeds a slice of this type into the given Hasher. Read more
      ","Hash","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> IntoIterator for Result<T, E>

      Source§

      fn into_iter(self) -> IntoIter<T>

      Returns a consuming iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(5);\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, [5]);\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, []);
      \n
      Source§

      type Item = T

      The type of the elements being iterated over.
      Source§

      type IntoIter = IntoIter<T>

      Which kind of iterator are we turning this into?
      ","IntoIterator","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Ord for Result<T, E>
      where\n T: Ord,\n E: Ord,

      Source§

      fn cmp(&self, other: &Result<T, E>) -> Ordering

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

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

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

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

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

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

      Restrict a value to a certain interval. Read more
      ","Ord","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialEq for Result<T, E>
      where\n T: PartialEq,\n E: PartialEq,

      Source§

      fn eq(&self, other: &Result<T, E>) -> bool

      Tests for self and other values to be equal, and is used by ==.
      1.0.0 · Source§

      fn ne(&self, other: &Rhs) -> bool

      Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
      ","PartialEq","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialOrd for Result<T, E>
      where\n T: PartialOrd,\n E: PartialOrd,

      Source§

      fn partial_cmp(&self, other: &Result<T, E>) -> Option<Ordering>

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

      fn lt(&self, other: &Rhs) -> bool

      Tests less than (for self and other) and is used by the < operator. Read more
      1.0.0 · Source§

      fn le(&self, other: &Rhs) -> bool

      Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
      1.0.0 · Source§

      fn gt(&self, other: &Rhs) -> bool

      Tests greater than (for self and other) and is used by the >\noperator. Read more
      1.0.0 · Source§

      fn ge(&self, other: &Rhs) -> bool

      Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
      ","PartialOrd","cu29_traits::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Product<Result<U, E>> for Result<T, E>
      where\n T: Product<U>,

      Source§

      fn product<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the product of all elements is returned.

      \n
      §Examples
      \n

      This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns Err:

      \n\n
      let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert_eq!(total, Ok(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert!(total.is_err());
      \n
      ","Product>","cu29_traits::CuResult"],["
      Source§

      impl<T, E> Residual<T> for Result<Infallible, E>

      Source§

      type TryType = Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2_residual)
      The “return” type of this meta-function.
      ","Residual","cu29_traits::CuResult"],["
      Source§

      impl<T, E> Result<&T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29_traits::CuResult"],["
      Source§

      impl<T, E> Result<&mut T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&mut T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&mut T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29_traits::CuResult"],["
      Source§

      impl<T, E> Result<Option<T>, E>

      1.33.0 (const: 1.83.0) · Source

      pub const fn transpose(self) -> Option<Result<T, E>>

      Transposes a Result of an Option into an Option of a Result.

      \n

      Ok(None) will be mapped to None.\nOk(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)).

      \n
      §Examples
      \n
      #[derive(Debug, Eq, PartialEq)]\nstruct SomeErr;\n\nlet x: Result<Option<i32>, SomeErr> = Ok(Some(5));\nlet y: Option<Result<i32, SomeErr>> = Some(Ok(5));\nassert_eq!(x.transpose(), y);
      \n
      ",0,"cu29_traits::CuResult"],["
      Source§

      impl<T, E> Result<Result<T, E>, E>

      Source

      pub const fn flatten(self) -> Result<T, E>

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

      Converts from Result<Result<T, E>, E> to Result<T, E>

      \n
      §Examples
      \n
      #![feature(result_flattening)]\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Ok(\"hello\"));\nassert_eq!(Ok(\"hello\"), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));\nassert_eq!(Err(6), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Err(6);\nassert_eq!(Err(6), x.flatten());
      \n

      Flattening only removes one level of nesting at a time:

      \n\n
      #![feature(result_flattening)]\nlet x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok(\"hello\")));\nassert_eq!(Ok(Ok(\"hello\")), x.flatten());\nassert_eq!(Ok(\"hello\"), x.flatten().flatten());
      \n
      ",0,"cu29_traits::CuResult"],["
      Source§

      impl<T, E> Result<T, E>

      1.0.0 (const: 1.48.0) · Source

      pub const fn is_ok(&self) -> bool

      Returns true if the result is Ok.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_ok(), true);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_ok(), false);
      \n
      1.70.0 · Source

      pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool

      Returns true if the result is Ok and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.is_ok_and(|x| x > 1), true);\n\nlet x: Result<u32, &str> = Ok(0);\nassert_eq!(x.is_ok_and(|x| x > 1), false);\n\nlet x: Result<u32, &str> = Err(\"hey\");\nassert_eq!(x.is_ok_and(|x| x > 1), false);
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn is_err(&self) -> bool

      Returns true if the result is Err.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_err(), false);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_err(), true);
      \n
      1.70.0 · Source

      pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool

      Returns true if the result is Err and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      use std::io::{Error, ErrorKind};\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);\n\nlet x: Result<u32, Error> = Ok(123);\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
      \n
      1.0.0 · Source

      pub fn ok(self) -> Option<T>

      Converts from Result<T, E> to Option<T>.

      \n

      Converts self into an Option<T>, consuming self,\nand discarding the error, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.ok(), Some(2));\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.ok(), None);
      \n
      1.0.0 · Source

      pub fn err(self) -> Option<E>

      Converts from Result<T, E> to Option<E>.

      \n

      Converts self into an Option<E>, consuming self,\nand discarding the success value, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.err(), None);\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.err(), Some(\"Nothing here\"));
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn as_ref(&self) -> Result<&T, &E>

      Converts from &Result<T, E> to Result<&T, &E>.

      \n

      Produces a new Result, containing a reference\ninto the original, leaving the original in place.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.as_ref(), Ok(&2));\n\nlet x: Result<u32, &str> = Err(\"Error\");\nassert_eq!(x.as_ref(), Err(&\"Error\"));
      \n
      1.0.0 (const: 1.83.0) · Source

      pub const fn as_mut(&mut self) -> Result<&mut T, &mut E>

      Converts from &mut Result<T, E> to Result<&mut T, &mut E>.

      \n
      §Examples
      \n
      fn mutate(r: &mut Result<i32, i32>) {\n    match r.as_mut() {\n        Ok(v) => *v = 42,\n        Err(e) => *e = 0,\n    }\n}\n\nlet mut x: Result<i32, i32> = Ok(2);\nmutate(&mut x);\nassert_eq!(x.unwrap(), 42);\n\nlet mut x: Result<i32, i32> = Err(13);\nmutate(&mut x);\nassert_eq!(x.unwrap_err(), 0);
      \n
      1.0.0 · Source

      pub fn map<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to Result<U, E> by applying a function to a\ncontained Ok value, leaving an Err value untouched.

      \n

      This function can be used to compose the results of two functions.

      \n
      §Examples
      \n

      Print the numbers on each line of a string multiplied by two.

      \n\n
      let line = \"1\\n2\\n3\\n4\\n\";\n\nfor num in line.lines() {\n    match num.parse::<i32>().map(|i| i * 2) {\n        Ok(n) => println!(\"{n}\"),\n        Err(..) => {}\n    }\n}
      \n
      1.41.0 · Source

      pub fn map_or<U, F>(self, default: U, f: F) -> U
      where\n F: FnOnce(T) -> U,

      Returns the provided default (if Err), or\napplies a function to the contained value (if Ok).

      \n

      Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let x: Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or(42, |v| v.len()), 42);
      \n
      1.41.0 · Source

      pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
      where\n D: FnOnce(E) -> U,\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to U by applying fallback function default to\na contained Err value, or function f to a contained Ok value.

      \n

      This function can be used to unpack a successful result\nwhile handling an error.

      \n
      §Examples
      \n
      let k = 21;\n\nlet x : Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);\n\nlet x : Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
      \n
      1.0.0 · Source

      pub fn map_err<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> F,

      Maps a Result<T, E> to Result<T, F> by applying a function to a\ncontained Err value, leaving an Ok value untouched.

      \n

      This function can be used to pass through a successful result while handling\nan error.

      \n
      §Examples
      \n
      fn stringify(x: u32) -> String { format!(\"error code: {x}\") }\n\nlet x: Result<u32, u32> = Ok(2);\nassert_eq!(x.map_err(stringify), Ok(2));\n\nlet x: Result<u32, u32> = Err(13);\nassert_eq!(x.map_err(stringify), Err(\"error code: 13\".to_string()));
      \n
      1.76.0 · Source

      pub fn inspect<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&T),

      Calls a function with a reference to the contained value if Ok.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      let x: u8 = \"4\"\n    .parse::<u8>()\n    .inspect(|x| println!(\"original: {x}\"))\n    .map(|x| x.pow(3))\n    .expect(\"failed to parse number\");
      \n
      1.76.0 · Source

      pub fn inspect_err<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&E),

      Calls a function with a reference to the contained value if Err.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      use std::{fs, io};\n\nfn read() -> io::Result<String> {\n    fs::read_to_string(\"address.txt\")\n        .inspect_err(|e| eprintln!(\"failed to read file: {e}\"))\n}
      \n
      1.47.0 · Source

      pub fn as_deref(&self) -> Result<&<T as Deref>::Target, &E>
      where\n T: Deref,

      Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.

      \n

      Coerces the Ok variant of the original Result via Deref\nand returns the new Result.

      \n
      §Examples
      \n
      let x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&str, &u32> = Ok(\"hello\");\nassert_eq!(x.as_deref(), y);\n\nlet x: Result<String, u32> = Err(42);\nlet y: Result<&str, &u32> = Err(&42);\nassert_eq!(x.as_deref(), y);
      \n
      1.47.0 · Source

      pub fn as_deref_mut(&mut self) -> Result<&mut <T as Deref>::Target, &mut E>
      where\n T: DerefMut,

      Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.

      \n

      Coerces the Ok variant of the original Result via DerefMut\nand returns the new Result.

      \n
      §Examples
      \n
      let mut s = \"HELLO\".to_string();\nlet mut x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&mut str, &mut u32> = Ok(&mut s);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);\n\nlet mut i = 42;\nlet mut x: Result<String, u32> = Err(42);\nlet y: Result<&mut str, &mut u32> = Err(&mut i);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
      \n
      1.0.0 · Source

      pub fn iter(&self) -> Iter<'_, T>

      Returns an iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(7);\nassert_eq!(x.iter().next(), Some(&7));\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter().next(), None);
      \n
      1.0.0 · Source

      pub fn iter_mut(&mut self) -> IterMut<'_, T>

      Returns a mutable iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let mut x: Result<u32, &str> = Ok(7);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 40,\n    None => {},\n}\nassert_eq!(x, Ok(40));\n\nlet mut x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter_mut().next(), None);
      \n
      1.4.0 · Source

      pub fn expect(self, msg: &str) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message including the\npassed message, and the content of the Err.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.expect(\"Testing expect\"); // panics with `Testing expect: emergency failure`
      \n
      §Recommended Message Style
      \n

      We recommend that expect messages are used to describe the reason you\nexpect the Result should be Ok.

      \n\n
      let path = std::env::var(\"IMPORTANT_PATH\")\n    .expect(\"env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`\");
      \n

      Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

      \n

      For more detail on expect message styles and the reasoning behind our recommendation please\nrefer to the section on “Common Message\nStyles” in the\nstd::error module docs.

      \n
      1.0.0 · Source

      pub fn unwrap(self) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message provided by the\nErr’s value.

      \n
      §Examples
      \n

      Basic usage:

      \n\n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.unwrap(), 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.unwrap(); // panics with `emergency failure`
      \n
      1.16.0 · Source

      pub fn unwrap_or_default(self) -> T
      where\n T: Default,

      Returns the contained Ok value or a default

      \n

      Consumes the self argument then, if Ok, returns the contained\nvalue, otherwise if Err, returns the default value for that\ntype.

      \n
      §Examples
      \n

      Converts a string to an integer, turning poorly-formed strings\ninto 0 (the default value for integers). parse converts\na string to any other type that implements FromStr, returning an\nErr on error.

      \n\n
      let good_year_from_input = \"1909\";\nlet bad_year_from_input = \"190blarg\";\nlet good_year = good_year_from_input.parse().unwrap_or_default();\nlet bad_year = bad_year_from_input.parse().unwrap_or_default();\n\nassert_eq!(1909, good_year);\nassert_eq!(0, bad_year);
      \n
      1.17.0 · Source

      pub fn expect_err(self, msg: &str) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a panic message including the\npassed message, and the content of the Ok.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(10);\nx.expect_err(\"Testing expect_err\"); // panics with `Testing expect_err: 10`
      \n
      1.0.0 · Source

      pub fn unwrap_err(self) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a custom panic message provided\nby the Ok’s value.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nx.unwrap_err(); // panics with `2`
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(x.unwrap_err(), \"emergency failure\");
      \n
      Source

      pub fn into_ok(self) -> T
      where\n E: Into<!>,

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

      Returns the contained Ok value, but never panics.

      \n

      Unlike unwrap, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap as a maintainability safeguard that will fail\nto compile if the error type of the Result is later changed\nto an error that can actually occur.

      \n
      §Examples
      \n
      \nfn only_good_news() -> Result<String, !> {\n    Ok(\"this is fine\".into())\n}\n\nlet s: String = only_good_news().into_ok();\nprintln!(\"{s}\");
      \n
      Source

      pub fn into_err(self) -> E
      where\n T: Into<!>,

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

      Returns the contained Err value, but never panics.

      \n

      Unlike unwrap_err, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap_err as a maintainability safeguard that will fail\nto compile if the ok type of the Result is later changed\nto a type that can actually occur.

      \n
      §Examples
      \n
      \nfn only_bad_news() -> Result<!, String> {\n    Err(\"Oops, it failed\".into())\n}\n\nlet error: String = only_bad_news().into_err();\nprintln!(\"{error}\");
      \n
      1.0.0 · Source

      pub fn and<U>(self, res: Result<U, E>) -> Result<U, E>

      Returns res if the result is Ok, otherwise returns the Err value of self.

      \n

      Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<&str, &str> = Ok(\"foo\");\nassert_eq!(x.and(y), Err(\"early error\"));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"not a 2\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Ok(\"different result type\");\nassert_eq!(x.and(y), Ok(\"different result type\"));
      \n
      1.0.0 · Source

      pub fn and_then<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> Result<U, E>,

      Calls op if the result is Ok, otherwise returns the Err value of self.

      \n

      This function can be used for control flow based on Result values.

      \n
      §Examples
      \n
      fn sq_then_to_string(x: u32) -> Result<String, &'static str> {\n    x.checked_mul(x).map(|sq| sq.to_string()).ok_or(\"overflowed\")\n}\n\nassert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));\nassert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err(\"overflowed\"));\nassert_eq!(Err(\"not a number\").and_then(sq_then_to_string), Err(\"not a number\"));
      \n

      Often used to chain fallible operations that may return Err.

      \n\n
      use std::{io::ErrorKind, path::Path};\n\n// Note: on Windows \"/\" maps to \"C:\\\"\nlet root_modified_time = Path::new(\"/\").metadata().and_then(|md| md.modified());\nassert!(root_modified_time.is_ok());\n\nlet should_fail = Path::new(\"/bad/path\").metadata().and_then(|md| md.modified());\nassert!(should_fail.is_err());\nassert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
      \n
      1.0.0 · Source

      pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>

      Returns res if the result is Err, otherwise returns the Ok value of self.

      \n

      Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<u32, &str> = Ok(2);\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Ok(100);\nassert_eq!(x.or(y), Ok(2));
      \n
      1.0.0 · Source

      pub fn or_else<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> Result<T, F>,

      Calls op if the result is Err, otherwise returns the Ok value of self.

      \n

      This function can be used for control flow based on result values.

      \n
      §Examples
      \n
      fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }\nfn err(x: u32) -> Result<u32, u32> { Err(x) }\n\nassert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));\nassert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));\nassert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));\nassert_eq!(Err(3).or_else(err).or_else(err), Err(3));
      \n
      1.0.0 · Source

      pub fn unwrap_or(self, default: T) -> T

      Returns the contained Ok value or a provided default.

      \n

      Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let default = 2;\nlet x: Result<u32, &str> = Ok(9);\nassert_eq!(x.unwrap_or(default), 9);\n\nlet x: Result<u32, &str> = Err(\"error\");\nassert_eq!(x.unwrap_or(default), default);
      \n
      1.0.0 · Source

      pub fn unwrap_or_else<F>(self, op: F) -> T
      where\n F: FnOnce(E) -> T,

      Returns the contained Ok value or computes it from a closure.

      \n
      §Examples
      \n
      fn count(x: &str) -> usize { x.len() }\n\nassert_eq!(Ok(2).unwrap_or_else(count), 2);\nassert_eq!(Err(\"foo\").unwrap_or_else(count), 3);
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_unchecked(self) -> T

      Returns the contained Ok value, consuming the self value,\nwithout checking that the value is not an Err.

      \n
      §Safety
      \n

      Calling this method on an Err is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(unsafe { x.unwrap_unchecked() }, 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nunsafe { x.unwrap_unchecked(); } // Undefined behavior!
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_err_unchecked(self) -> E

      Returns the contained Err value, consuming the self value,\nwithout checking that the value is not an Ok.

      \n
      §Safety
      \n

      Calling this method on an Ok is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nunsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(unsafe { x.unwrap_err_unchecked() }, \"emergency failure\");
      \n
      ",0,"cu29_traits::CuResult"],["
      Source§

      impl<T, E> Serialize for Result<T, E>
      where\n T: Serialize,\n E: Serialize,

      Source§

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

      Serialize this value into the given Serde serializer. Read more
      ","Serialize","cu29_traits::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
      where\n T: Sum<U>,

      Source§

      fn sum<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the sum of all elements is returned.

      \n
      §Examples
      \n

      This sums up every integer in a vector, rejecting the sum if a negative\nelement is encountered:

      \n\n
      let f = |&x: &i32| if x < 0 { Err(\"Negative element found\") } else { Ok(x) };\nlet v = vec![1, 2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Ok(3));\nlet v = vec![1, -2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Err(\"Negative element found\"));
      \n
      ","Sum>","cu29_traits::CuResult"],["
      1.61.0 · Source§

      impl<T, E> Termination for Result<T, E>
      where\n T: Termination,\n E: Debug,

      Source§

      fn report(self) -> ExitCode

      Is called to get the representation of the value as status code.\nThis status code is returned to the operating system.
      ","Termination","cu29_traits::CuResult"],["
      Source§

      impl<T, E> Try for Result<T, E>

      Source§

      type Output = T

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value produced by ? when not short-circuiting.
      Source§

      type Residual = Result<Infallible, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
      Source§

      fn from_output(output: <Result<T, E> as Try>::Output) -> Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from its Output type. Read more
      Source§

      fn branch(\n self,\n) -> ControlFlow<<Result<T, E> as Try>::Residual, <Result<T, E> as Try>::Output>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
      ","Try","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Copy for Result<T, E>
      where\n T: Copy,\n E: Copy,

      ","Copy","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Eq for Result<T, E>
      where\n T: Eq,\n E: Eq,

      ","Eq","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> StructuralPartialEq for Result<T, E>

      ","StructuralPartialEq","cu29_traits::CuResult"]]]]); + var type_impls = Object.fromEntries([["cu29",[["
      Source§

      impl<'de, T, U> BorrowDecode<'de> for Result<T, U>
      where\n T: BorrowDecode<'de>,\n U: BorrowDecode<'de>,

      Source§

      fn borrow_decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: BorrowDecoder<'de>,

      Attempt to decode this type with the given BorrowDecode.
      ","BorrowDecode<'de>","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Clone for Result<T, E>
      where\n T: Clone,\n E: Clone,

      Source§

      fn clone(&self) -> Result<T, E>

      Returns a copy of the value. Read more
      Source§

      fn clone_from(&mut self, source: &Result<T, E>)

      Performs copy-assignment from source. Read more
      ","Clone","cu29::CuResult"],["
      Source§

      impl<C, E> ControlFlow for Result<C, E>
      where\n C: ControlFlow,

      ","ControlFlow","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Debug for Result<T, E>
      where\n T: Debug,\n E: Debug,

      Source§

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

      Formats the value using the given formatter. Read more
      ","Debug","cu29::CuResult"],["
      Source§

      impl<T, U> Decode for Result<T, U>
      where\n T: Decode,\n U: Decode,

      Source§

      fn decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: Decoder,

      Attempt to decode this type with the given Decode.
      ","Decode","cu29::CuResult"],["
      Source§

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

      Source§

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

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","cu29::CuResult"],["
      Source§

      impl<T, U> Encode for Result<T, U>
      where\n T: Encode,\n U: Encode,

      Source§

      fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
      where\n E: Encoder,

      Encode a given type.
      ","Encode","cu29::CuResult"],["
      1.0.0 · Source§

      impl<A, E, V> FromIterator<Result<A, E>> for Result<V, E>
      where\n V: FromIterator<A>,

      Source§

      fn from_iter<I>(iter: I) -> Result<V, E>
      where\n I: IntoIterator<Item = Result<A, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err occur, a\ncontainer with the values of each Result is returned.

      \n

      Here is an example which increments every integer in a vector,\nchecking for overflow:

      \n\n
      let v = vec![1, 2];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_add(1).ok_or(\"Overflow!\")\n).collect();\nassert_eq!(res, Ok(vec![2, 3]));
      \n

      Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

      \n\n
      let v = vec![1, 2, 0];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_sub(1).ok_or(\"Underflow!\")\n).collect();\nassert_eq!(res, Err(\"Underflow!\"));
      \n

      Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first Err.

      \n\n
      let v = vec![3, 2, 1, 10];\nlet mut shared = 0;\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {\n    shared += x;\n    x.checked_sub(2).ok_or(\"Underflow!\")\n}).collect();\nassert_eq!(res, Err(\"Underflow!\"));\nassert_eq!(shared, 6);
      \n

      Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

      \n
      ","FromIterator>","cu29::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Result<Infallible, E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(residual: Result<Infallible, E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Yeet<E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(_: Yeet<E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Hash for Result<T, E>
      where\n T: Hash,\n E: Hash,

      Source§

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

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

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

      Feeds a slice of this type into the given Hasher. Read more
      ","Hash","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> IntoIterator for Result<T, E>

      Source§

      fn into_iter(self) -> IntoIter<T>

      Returns a consuming iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(5);\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, [5]);\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, []);
      \n
      Source§

      type Item = T

      The type of the elements being iterated over.
      Source§

      type IntoIter = IntoIter<T>

      Which kind of iterator are we turning this into?
      ","IntoIterator","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Ord for Result<T, E>
      where\n T: Ord,\n E: Ord,

      Source§

      fn cmp(&self, other: &Result<T, E>) -> Ordering

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

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

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

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

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

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

      Restrict a value to a certain interval. Read more
      ","Ord","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialEq for Result<T, E>
      where\n T: PartialEq,\n E: PartialEq,

      Source§

      fn eq(&self, other: &Result<T, E>) -> bool

      Tests for self and other values to be equal, and is used by ==.
      1.0.0 · Source§

      fn ne(&self, other: &Rhs) -> bool

      Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
      ","PartialEq","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialOrd for Result<T, E>
      where\n T: PartialOrd,\n E: PartialOrd,

      Source§

      fn partial_cmp(&self, other: &Result<T, E>) -> Option<Ordering>

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

      fn lt(&self, other: &Rhs) -> bool

      Tests less than (for self and other) and is used by the < operator. Read more
      1.0.0 · Source§

      fn le(&self, other: &Rhs) -> bool

      Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
      1.0.0 · Source§

      fn gt(&self, other: &Rhs) -> bool

      Tests greater than (for self and other) and is used by the >\noperator. Read more
      1.0.0 · Source§

      fn ge(&self, other: &Rhs) -> bool

      Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
      ","PartialOrd","cu29::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Product<Result<U, E>> for Result<T, E>
      where\n T: Product<U>,

      Source§

      fn product<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the product of all elements is returned.

      \n
      §Examples
      \n

      This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns Err:

      \n\n
      let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert_eq!(total, Ok(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert!(total.is_err());
      \n
      ","Product>","cu29::CuResult"],["
      Source§

      impl<T, E> Residual<T> for Result<Infallible, E>

      Source§

      type TryType = Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2_residual)
      The “return” type of this meta-function.
      ","Residual","cu29::CuResult"],["
      Source§

      impl<T, E> Result<&T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29::CuResult"],["
      Source§

      impl<T, E> Result<&mut T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&mut T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&mut T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29::CuResult"],["
      Source§

      impl<T, E> Result<Option<T>, E>

      1.33.0 (const: 1.83.0) · Source

      pub const fn transpose(self) -> Option<Result<T, E>>

      Transposes a Result of an Option into an Option of a Result.

      \n

      Ok(None) will be mapped to None.\nOk(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)).

      \n
      §Examples
      \n
      #[derive(Debug, Eq, PartialEq)]\nstruct SomeErr;\n\nlet x: Result<Option<i32>, SomeErr> = Ok(Some(5));\nlet y: Option<Result<i32, SomeErr>> = Some(Ok(5));\nassert_eq!(x.transpose(), y);
      \n
      ",0,"cu29::CuResult"],["
      Source§

      impl<T, E> Result<Result<T, E>, E>

      Source

      pub const fn flatten(self) -> Result<T, E>

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

      Converts from Result<Result<T, E>, E> to Result<T, E>

      \n
      §Examples
      \n
      #![feature(result_flattening)]\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Ok(\"hello\"));\nassert_eq!(Ok(\"hello\"), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));\nassert_eq!(Err(6), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Err(6);\nassert_eq!(Err(6), x.flatten());
      \n

      Flattening only removes one level of nesting at a time:

      \n\n
      #![feature(result_flattening)]\nlet x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok(\"hello\")));\nassert_eq!(Ok(Ok(\"hello\")), x.flatten());\nassert_eq!(Ok(\"hello\"), x.flatten().flatten());
      \n
      ",0,"cu29::CuResult"],["
      Source§

      impl<T, E> Result<T, E>

      1.0.0 (const: 1.48.0) · Source

      pub const fn is_ok(&self) -> bool

      Returns true if the result is Ok.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_ok(), true);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_ok(), false);
      \n
      1.70.0 · Source

      pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool

      Returns true if the result is Ok and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.is_ok_and(|x| x > 1), true);\n\nlet x: Result<u32, &str> = Ok(0);\nassert_eq!(x.is_ok_and(|x| x > 1), false);\n\nlet x: Result<u32, &str> = Err(\"hey\");\nassert_eq!(x.is_ok_and(|x| x > 1), false);
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn is_err(&self) -> bool

      Returns true if the result is Err.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_err(), false);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_err(), true);
      \n
      1.70.0 · Source

      pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool

      Returns true if the result is Err and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      use std::io::{Error, ErrorKind};\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);\n\nlet x: Result<u32, Error> = Ok(123);\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
      \n
      1.0.0 · Source

      pub fn ok(self) -> Option<T>

      Converts from Result<T, E> to Option<T>.

      \n

      Converts self into an Option<T>, consuming self,\nand discarding the error, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.ok(), Some(2));\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.ok(), None);
      \n
      1.0.0 · Source

      pub fn err(self) -> Option<E>

      Converts from Result<T, E> to Option<E>.

      \n

      Converts self into an Option<E>, consuming self,\nand discarding the success value, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.err(), None);\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.err(), Some(\"Nothing here\"));
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn as_ref(&self) -> Result<&T, &E>

      Converts from &Result<T, E> to Result<&T, &E>.

      \n

      Produces a new Result, containing a reference\ninto the original, leaving the original in place.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.as_ref(), Ok(&2));\n\nlet x: Result<u32, &str> = Err(\"Error\");\nassert_eq!(x.as_ref(), Err(&\"Error\"));
      \n
      1.0.0 (const: 1.83.0) · Source

      pub const fn as_mut(&mut self) -> Result<&mut T, &mut E>

      Converts from &mut Result<T, E> to Result<&mut T, &mut E>.

      \n
      §Examples
      \n
      fn mutate(r: &mut Result<i32, i32>) {\n    match r.as_mut() {\n        Ok(v) => *v = 42,\n        Err(e) => *e = 0,\n    }\n}\n\nlet mut x: Result<i32, i32> = Ok(2);\nmutate(&mut x);\nassert_eq!(x.unwrap(), 42);\n\nlet mut x: Result<i32, i32> = Err(13);\nmutate(&mut x);\nassert_eq!(x.unwrap_err(), 0);
      \n
      1.0.0 · Source

      pub fn map<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to Result<U, E> by applying a function to a\ncontained Ok value, leaving an Err value untouched.

      \n

      This function can be used to compose the results of two functions.

      \n
      §Examples
      \n

      Print the numbers on each line of a string multiplied by two.

      \n\n
      let line = \"1\\n2\\n3\\n4\\n\";\n\nfor num in line.lines() {\n    match num.parse::<i32>().map(|i| i * 2) {\n        Ok(n) => println!(\"{n}\"),\n        Err(..) => {}\n    }\n}
      \n
      1.41.0 · Source

      pub fn map_or<U, F>(self, default: U, f: F) -> U
      where\n F: FnOnce(T) -> U,

      Returns the provided default (if Err), or\napplies a function to the contained value (if Ok).

      \n

      Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let x: Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or(42, |v| v.len()), 42);
      \n
      1.41.0 · Source

      pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
      where\n D: FnOnce(E) -> U,\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to U by applying fallback function default to\na contained Err value, or function f to a contained Ok value.

      \n

      This function can be used to unpack a successful result\nwhile handling an error.

      \n
      §Examples
      \n
      let k = 21;\n\nlet x : Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);\n\nlet x : Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
      \n
      1.0.0 · Source

      pub fn map_err<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> F,

      Maps a Result<T, E> to Result<T, F> by applying a function to a\ncontained Err value, leaving an Ok value untouched.

      \n

      This function can be used to pass through a successful result while handling\nan error.

      \n
      §Examples
      \n
      fn stringify(x: u32) -> String { format!(\"error code: {x}\") }\n\nlet x: Result<u32, u32> = Ok(2);\nassert_eq!(x.map_err(stringify), Ok(2));\n\nlet x: Result<u32, u32> = Err(13);\nassert_eq!(x.map_err(stringify), Err(\"error code: 13\".to_string()));
      \n
      1.76.0 · Source

      pub fn inspect<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&T),

      Calls a function with a reference to the contained value if Ok.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      let x: u8 = \"4\"\n    .parse::<u8>()\n    .inspect(|x| println!(\"original: {x}\"))\n    .map(|x| x.pow(3))\n    .expect(\"failed to parse number\");
      \n
      1.76.0 · Source

      pub fn inspect_err<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&E),

      Calls a function with a reference to the contained value if Err.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      use std::{fs, io};\n\nfn read() -> io::Result<String> {\n    fs::read_to_string(\"address.txt\")\n        .inspect_err(|e| eprintln!(\"failed to read file: {e}\"))\n}
      \n
      1.47.0 · Source

      pub fn as_deref(&self) -> Result<&<T as Deref>::Target, &E>
      where\n T: Deref,

      Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.

      \n

      Coerces the Ok variant of the original Result via Deref\nand returns the new Result.

      \n
      §Examples
      \n
      let x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&str, &u32> = Ok(\"hello\");\nassert_eq!(x.as_deref(), y);\n\nlet x: Result<String, u32> = Err(42);\nlet y: Result<&str, &u32> = Err(&42);\nassert_eq!(x.as_deref(), y);
      \n
      1.47.0 · Source

      pub fn as_deref_mut(&mut self) -> Result<&mut <T as Deref>::Target, &mut E>
      where\n T: DerefMut,

      Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.

      \n

      Coerces the Ok variant of the original Result via DerefMut\nand returns the new Result.

      \n
      §Examples
      \n
      let mut s = \"HELLO\".to_string();\nlet mut x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&mut str, &mut u32> = Ok(&mut s);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);\n\nlet mut i = 42;\nlet mut x: Result<String, u32> = Err(42);\nlet y: Result<&mut str, &mut u32> = Err(&mut i);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
      \n
      1.0.0 · Source

      pub fn iter(&self) -> Iter<'_, T>

      Returns an iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(7);\nassert_eq!(x.iter().next(), Some(&7));\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter().next(), None);
      \n
      1.0.0 · Source

      pub fn iter_mut(&mut self) -> IterMut<'_, T>

      Returns a mutable iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let mut x: Result<u32, &str> = Ok(7);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 40,\n    None => {},\n}\nassert_eq!(x, Ok(40));\n\nlet mut x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter_mut().next(), None);
      \n
      1.4.0 · Source

      pub fn expect(self, msg: &str) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message including the\npassed message, and the content of the Err.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.expect(\"Testing expect\"); // panics with `Testing expect: emergency failure`
      \n
      §Recommended Message Style
      \n

      We recommend that expect messages are used to describe the reason you\nexpect the Result should be Ok.

      \n\n
      let path = std::env::var(\"IMPORTANT_PATH\")\n    .expect(\"env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`\");
      \n

      Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

      \n

      For more detail on expect message styles and the reasoning behind our recommendation please\nrefer to the section on “Common Message\nStyles” in the\nstd::error module docs.

      \n
      1.0.0 · Source

      pub fn unwrap(self) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message provided by the\nErr’s value.

      \n
      §Examples
      \n

      Basic usage:

      \n\n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.unwrap(), 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.unwrap(); // panics with `emergency failure`
      \n
      1.16.0 · Source

      pub fn unwrap_or_default(self) -> T
      where\n T: Default,

      Returns the contained Ok value or a default

      \n

      Consumes the self argument then, if Ok, returns the contained\nvalue, otherwise if Err, returns the default value for that\ntype.

      \n
      §Examples
      \n

      Converts a string to an integer, turning poorly-formed strings\ninto 0 (the default value for integers). parse converts\na string to any other type that implements FromStr, returning an\nErr on error.

      \n\n
      let good_year_from_input = \"1909\";\nlet bad_year_from_input = \"190blarg\";\nlet good_year = good_year_from_input.parse().unwrap_or_default();\nlet bad_year = bad_year_from_input.parse().unwrap_or_default();\n\nassert_eq!(1909, good_year);\nassert_eq!(0, bad_year);
      \n
      1.17.0 · Source

      pub fn expect_err(self, msg: &str) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a panic message including the\npassed message, and the content of the Ok.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(10);\nx.expect_err(\"Testing expect_err\"); // panics with `Testing expect_err: 10`
      \n
      1.0.0 · Source

      pub fn unwrap_err(self) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a custom panic message provided\nby the Ok’s value.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nx.unwrap_err(); // panics with `2`
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(x.unwrap_err(), \"emergency failure\");
      \n
      Source

      pub fn into_ok(self) -> T
      where\n E: Into<!>,

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

      Returns the contained Ok value, but never panics.

      \n

      Unlike unwrap, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap as a maintainability safeguard that will fail\nto compile if the error type of the Result is later changed\nto an error that can actually occur.

      \n
      §Examples
      \n
      \nfn only_good_news() -> Result<String, !> {\n    Ok(\"this is fine\".into())\n}\n\nlet s: String = only_good_news().into_ok();\nprintln!(\"{s}\");
      \n
      Source

      pub fn into_err(self) -> E
      where\n T: Into<!>,

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

      Returns the contained Err value, but never panics.

      \n

      Unlike unwrap_err, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap_err as a maintainability safeguard that will fail\nto compile if the ok type of the Result is later changed\nto a type that can actually occur.

      \n
      §Examples
      \n
      \nfn only_bad_news() -> Result<!, String> {\n    Err(\"Oops, it failed\".into())\n}\n\nlet error: String = only_bad_news().into_err();\nprintln!(\"{error}\");
      \n
      1.0.0 · Source

      pub fn and<U>(self, res: Result<U, E>) -> Result<U, E>

      Returns res if the result is Ok, otherwise returns the Err value of self.

      \n

      Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<&str, &str> = Ok(\"foo\");\nassert_eq!(x.and(y), Err(\"early error\"));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"not a 2\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Ok(\"different result type\");\nassert_eq!(x.and(y), Ok(\"different result type\"));
      \n
      1.0.0 · Source

      pub fn and_then<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> Result<U, E>,

      Calls op if the result is Ok, otherwise returns the Err value of self.

      \n

      This function can be used for control flow based on Result values.

      \n
      §Examples
      \n
      fn sq_then_to_string(x: u32) -> Result<String, &'static str> {\n    x.checked_mul(x).map(|sq| sq.to_string()).ok_or(\"overflowed\")\n}\n\nassert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));\nassert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err(\"overflowed\"));\nassert_eq!(Err(\"not a number\").and_then(sq_then_to_string), Err(\"not a number\"));
      \n

      Often used to chain fallible operations that may return Err.

      \n\n
      use std::{io::ErrorKind, path::Path};\n\n// Note: on Windows \"/\" maps to \"C:\\\"\nlet root_modified_time = Path::new(\"/\").metadata().and_then(|md| md.modified());\nassert!(root_modified_time.is_ok());\n\nlet should_fail = Path::new(\"/bad/path\").metadata().and_then(|md| md.modified());\nassert!(should_fail.is_err());\nassert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
      \n
      1.0.0 · Source

      pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>

      Returns res if the result is Err, otherwise returns the Ok value of self.

      \n

      Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<u32, &str> = Ok(2);\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Ok(100);\nassert_eq!(x.or(y), Ok(2));
      \n
      1.0.0 · Source

      pub fn or_else<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> Result<T, F>,

      Calls op if the result is Err, otherwise returns the Ok value of self.

      \n

      This function can be used for control flow based on result values.

      \n
      §Examples
      \n
      fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }\nfn err(x: u32) -> Result<u32, u32> { Err(x) }\n\nassert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));\nassert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));\nassert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));\nassert_eq!(Err(3).or_else(err).or_else(err), Err(3));
      \n
      1.0.0 · Source

      pub fn unwrap_or(self, default: T) -> T

      Returns the contained Ok value or a provided default.

      \n

      Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let default = 2;\nlet x: Result<u32, &str> = Ok(9);\nassert_eq!(x.unwrap_or(default), 9);\n\nlet x: Result<u32, &str> = Err(\"error\");\nassert_eq!(x.unwrap_or(default), default);
      \n
      1.0.0 · Source

      pub fn unwrap_or_else<F>(self, op: F) -> T
      where\n F: FnOnce(E) -> T,

      Returns the contained Ok value or computes it from a closure.

      \n
      §Examples
      \n
      fn count(x: &str) -> usize { x.len() }\n\nassert_eq!(Ok(2).unwrap_or_else(count), 2);\nassert_eq!(Err(\"foo\").unwrap_or_else(count), 3);
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_unchecked(self) -> T

      Returns the contained Ok value, consuming the self value,\nwithout checking that the value is not an Err.

      \n
      §Safety
      \n

      Calling this method on an Err is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(unsafe { x.unwrap_unchecked() }, 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nunsafe { x.unwrap_unchecked(); } // Undefined behavior!
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_err_unchecked(self) -> E

      Returns the contained Err value, consuming the self value,\nwithout checking that the value is not an Ok.

      \n
      §Safety
      \n

      Calling this method on an Ok is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nunsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(unsafe { x.unwrap_err_unchecked() }, \"emergency failure\");
      \n
      ",0,"cu29::CuResult"],["
      Source§

      impl<T, E> Serialize for Result<T, E>
      where\n T: Serialize,\n E: Serialize,

      Source§

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

      Serialize this value into the given Serde serializer. Read more
      ","Serialize","cu29::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
      where\n T: Sum<U>,

      Source§

      fn sum<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the sum of all elements is returned.

      \n
      §Examples
      \n

      This sums up every integer in a vector, rejecting the sum if a negative\nelement is encountered:

      \n\n
      let f = |&x: &i32| if x < 0 { Err(\"Negative element found\") } else { Ok(x) };\nlet v = vec![1, 2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Ok(3));\nlet v = vec![1, -2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Err(\"Negative element found\"));
      \n
      ","Sum>","cu29::CuResult"],["
      1.61.0 · Source§

      impl<T, E> Termination for Result<T, E>
      where\n T: Termination,\n E: Debug,

      Source§

      fn report(self) -> ExitCode

      Is called to get the representation of the value as status code.\nThis status code is returned to the operating system.
      ","Termination","cu29::CuResult"],["
      Source§

      impl<T, E> Try for Result<T, E>

      Source§

      type Output = T

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value produced by ? when not short-circuiting.
      Source§

      type Residual = Result<Infallible, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
      Source§

      fn from_output(output: <Result<T, E> as Try>::Output) -> Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from its Output type. Read more
      Source§

      fn branch(\n self,\n) -> ControlFlow<<Result<T, E> as Try>::Residual, <Result<T, E> as Try>::Output>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
      ","Try","cu29::CuResult"],["
      §

      impl<T, E> TryWriteable for Result<T, E>
      where\n T: Writeable,\n E: Writeable + Clone,

      §

      type Error = E

      §

      fn try_write_to<W>(\n &self,\n sink: &mut W,\n) -> Result<Result<(), <Result<T, E> as TryWriteable>::Error>, Error>
      where\n W: Write + ?Sized,

      Writes the content of this writeable to a sink. Read more
      §

      fn try_write_to_parts<S>(\n &self,\n sink: &mut S,\n) -> Result<Result<(), <Result<T, E> as TryWriteable>::Error>, Error>
      where\n S: PartsWrite + ?Sized,

      Writes the content of this writeable to a sink with parts (annotations). Read more
      §

      fn writeable_length_hint(&self) -> LengthHint

      Returns a hint for the number of UTF-8 bytes that will be written to the sink. Read more
      §

      fn try_write_to_string(\n &self,\n) -> Result<Cow<'_, str>, (<Result<T, E> as TryWriteable>::Error, Cow<'_, str>)>

      Writes the content of this writeable to a string. Read more
      §

      fn writeable_cmp_bytes(&self, other: &[u8]) -> Ordering

      Compares the content of this writeable to a byte slice. Read more
      ","TryWriteable","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Copy for Result<T, E>
      where\n T: Copy,\n E: Copy,

      ","Copy","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Eq for Result<T, E>
      where\n T: Eq,\n E: Eq,

      ","Eq","cu29::CuResult"],["
      §

      impl<T, E> LifetimeFree for Result<T, E>
      where\n T: LifetimeFree,\n E: LifetimeFree,

      ","LifetimeFree","cu29::CuResult"],["
      1.0.0 · Source§

      impl<T, E> StructuralPartialEq for Result<T, E>

      ","StructuralPartialEq","cu29::CuResult"]]],["cu29_rendercfg",[["
      Source§

      impl<'de, T, U> BorrowDecode<'de> for Result<T, U>
      where\n T: BorrowDecode<'de>,\n U: BorrowDecode<'de>,

      Source§

      fn borrow_decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: BorrowDecoder<'de>,

      Attempt to decode this type with the given BorrowDecode.
      ","BorrowDecode<'de>","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Clone for Result<T, E>
      where\n T: Clone,\n E: Clone,

      Source§

      fn clone(&self) -> Result<T, E>

      Returns a copy of the value. Read more
      Source§

      fn clone_from(&mut self, source: &Result<T, E>)

      Performs copy-assignment from source. Read more
      ","Clone","cu29_rendercfg::CuResult"],["
      Source§

      impl<C, E> ControlFlow for Result<C, E>
      where\n C: ControlFlow,

      ","ControlFlow","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Debug for Result<T, E>
      where\n T: Debug,\n E: Debug,

      Source§

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

      Formats the value using the given formatter. Read more
      ","Debug","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, U> Decode for Result<T, U>
      where\n T: Decode,\n U: Decode,

      Source§

      fn decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: Decoder,

      Attempt to decode this type with the given Decode.
      ","Decode","cu29_rendercfg::CuResult"],["
      Source§

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

      Source§

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

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, U> Encode for Result<T, U>
      where\n T: Encode,\n U: Encode,

      Source§

      fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
      where\n E: Encoder,

      Encode a given type.
      ","Encode","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<A, E, V> FromIterator<Result<A, E>> for Result<V, E>
      where\n V: FromIterator<A>,

      Source§

      fn from_iter<I>(iter: I) -> Result<V, E>
      where\n I: IntoIterator<Item = Result<A, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err occur, a\ncontainer with the values of each Result is returned.

      \n

      Here is an example which increments every integer in a vector,\nchecking for overflow:

      \n\n
      let v = vec![1, 2];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_add(1).ok_or(\"Overflow!\")\n).collect();\nassert_eq!(res, Ok(vec![2, 3]));
      \n

      Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

      \n\n
      let v = vec![1, 2, 0];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_sub(1).ok_or(\"Underflow!\")\n).collect();\nassert_eq!(res, Err(\"Underflow!\"));
      \n

      Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first Err.

      \n\n
      let v = vec![3, 2, 1, 10];\nlet mut shared = 0;\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {\n    shared += x;\n    x.checked_sub(2).ok_or(\"Underflow!\")\n}).collect();\nassert_eq!(res, Err(\"Underflow!\"));\nassert_eq!(shared, 6);
      \n

      Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

      \n
      ","FromIterator>","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Result<Infallible, E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(residual: Result<Infallible, E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Yeet<E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(_: Yeet<E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Hash for Result<T, E>
      where\n T: Hash,\n E: Hash,

      Source§

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

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

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

      Feeds a slice of this type into the given Hasher. Read more
      ","Hash","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> IntoIterator for Result<T, E>

      Source§

      fn into_iter(self) -> IntoIter<T>

      Returns a consuming iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(5);\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, [5]);\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, []);
      \n
      Source§

      type Item = T

      The type of the elements being iterated over.
      Source§

      type IntoIter = IntoIter<T>

      Which kind of iterator are we turning this into?
      ","IntoIterator","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Ord for Result<T, E>
      where\n T: Ord,\n E: Ord,

      Source§

      fn cmp(&self, other: &Result<T, E>) -> Ordering

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

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

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

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

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

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

      Restrict a value to a certain interval. Read more
      ","Ord","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialEq for Result<T, E>
      where\n T: PartialEq,\n E: PartialEq,

      Source§

      fn eq(&self, other: &Result<T, E>) -> bool

      Tests for self and other values to be equal, and is used by ==.
      1.0.0 · Source§

      fn ne(&self, other: &Rhs) -> bool

      Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
      ","PartialEq","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialOrd for Result<T, E>
      where\n T: PartialOrd,\n E: PartialOrd,

      Source§

      fn partial_cmp(&self, other: &Result<T, E>) -> Option<Ordering>

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

      fn lt(&self, other: &Rhs) -> bool

      Tests less than (for self and other) and is used by the < operator. Read more
      1.0.0 · Source§

      fn le(&self, other: &Rhs) -> bool

      Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
      1.0.0 · Source§

      fn gt(&self, other: &Rhs) -> bool

      Tests greater than (for self and other) and is used by the >\noperator. Read more
      1.0.0 · Source§

      fn ge(&self, other: &Rhs) -> bool

      Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
      ","PartialOrd","cu29_rendercfg::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Product<Result<U, E>> for Result<T, E>
      where\n T: Product<U>,

      Source§

      fn product<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the product of all elements is returned.

      \n
      §Examples
      \n

      This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns Err:

      \n\n
      let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert_eq!(total, Ok(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert!(total.is_err());
      \n
      ","Product>","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Residual<T> for Result<Infallible, E>

      Source§

      type TryType = Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2_residual)
      The “return” type of this meta-function.
      ","Residual","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Result<&T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Result<&mut T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&mut T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&mut T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Result<Option<T>, E>

      1.33.0 (const: 1.83.0) · Source

      pub const fn transpose(self) -> Option<Result<T, E>>

      Transposes a Result of an Option into an Option of a Result.

      \n

      Ok(None) will be mapped to None.\nOk(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)).

      \n
      §Examples
      \n
      #[derive(Debug, Eq, PartialEq)]\nstruct SomeErr;\n\nlet x: Result<Option<i32>, SomeErr> = Ok(Some(5));\nlet y: Option<Result<i32, SomeErr>> = Some(Ok(5));\nassert_eq!(x.transpose(), y);
      \n
      ",0,"cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Result<Result<T, E>, E>

      Source

      pub const fn flatten(self) -> Result<T, E>

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

      Converts from Result<Result<T, E>, E> to Result<T, E>

      \n
      §Examples
      \n
      #![feature(result_flattening)]\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Ok(\"hello\"));\nassert_eq!(Ok(\"hello\"), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));\nassert_eq!(Err(6), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Err(6);\nassert_eq!(Err(6), x.flatten());
      \n

      Flattening only removes one level of nesting at a time:

      \n\n
      #![feature(result_flattening)]\nlet x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok(\"hello\")));\nassert_eq!(Ok(Ok(\"hello\")), x.flatten());\nassert_eq!(Ok(\"hello\"), x.flatten().flatten());
      \n
      ",0,"cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Result<T, E>

      1.0.0 (const: 1.48.0) · Source

      pub const fn is_ok(&self) -> bool

      Returns true if the result is Ok.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_ok(), true);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_ok(), false);
      \n
      1.70.0 · Source

      pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool

      Returns true if the result is Ok and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.is_ok_and(|x| x > 1), true);\n\nlet x: Result<u32, &str> = Ok(0);\nassert_eq!(x.is_ok_and(|x| x > 1), false);\n\nlet x: Result<u32, &str> = Err(\"hey\");\nassert_eq!(x.is_ok_and(|x| x > 1), false);
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn is_err(&self) -> bool

      Returns true if the result is Err.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_err(), false);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_err(), true);
      \n
      1.70.0 · Source

      pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool

      Returns true if the result is Err and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      use std::io::{Error, ErrorKind};\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);\n\nlet x: Result<u32, Error> = Ok(123);\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
      \n
      1.0.0 · Source

      pub fn ok(self) -> Option<T>

      Converts from Result<T, E> to Option<T>.

      \n

      Converts self into an Option<T>, consuming self,\nand discarding the error, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.ok(), Some(2));\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.ok(), None);
      \n
      1.0.0 · Source

      pub fn err(self) -> Option<E>

      Converts from Result<T, E> to Option<E>.

      \n

      Converts self into an Option<E>, consuming self,\nand discarding the success value, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.err(), None);\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.err(), Some(\"Nothing here\"));
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn as_ref(&self) -> Result<&T, &E>

      Converts from &Result<T, E> to Result<&T, &E>.

      \n

      Produces a new Result, containing a reference\ninto the original, leaving the original in place.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.as_ref(), Ok(&2));\n\nlet x: Result<u32, &str> = Err(\"Error\");\nassert_eq!(x.as_ref(), Err(&\"Error\"));
      \n
      1.0.0 (const: 1.83.0) · Source

      pub const fn as_mut(&mut self) -> Result<&mut T, &mut E>

      Converts from &mut Result<T, E> to Result<&mut T, &mut E>.

      \n
      §Examples
      \n
      fn mutate(r: &mut Result<i32, i32>) {\n    match r.as_mut() {\n        Ok(v) => *v = 42,\n        Err(e) => *e = 0,\n    }\n}\n\nlet mut x: Result<i32, i32> = Ok(2);\nmutate(&mut x);\nassert_eq!(x.unwrap(), 42);\n\nlet mut x: Result<i32, i32> = Err(13);\nmutate(&mut x);\nassert_eq!(x.unwrap_err(), 0);
      \n
      1.0.0 · Source

      pub fn map<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to Result<U, E> by applying a function to a\ncontained Ok value, leaving an Err value untouched.

      \n

      This function can be used to compose the results of two functions.

      \n
      §Examples
      \n

      Print the numbers on each line of a string multiplied by two.

      \n\n
      let line = \"1\\n2\\n3\\n4\\n\";\n\nfor num in line.lines() {\n    match num.parse::<i32>().map(|i| i * 2) {\n        Ok(n) => println!(\"{n}\"),\n        Err(..) => {}\n    }\n}
      \n
      1.41.0 · Source

      pub fn map_or<U, F>(self, default: U, f: F) -> U
      where\n F: FnOnce(T) -> U,

      Returns the provided default (if Err), or\napplies a function to the contained value (if Ok).

      \n

      Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let x: Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or(42, |v| v.len()), 42);
      \n
      1.41.0 · Source

      pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
      where\n D: FnOnce(E) -> U,\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to U by applying fallback function default to\na contained Err value, or function f to a contained Ok value.

      \n

      This function can be used to unpack a successful result\nwhile handling an error.

      \n
      §Examples
      \n
      let k = 21;\n\nlet x : Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);\n\nlet x : Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
      \n
      1.0.0 · Source

      pub fn map_err<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> F,

      Maps a Result<T, E> to Result<T, F> by applying a function to a\ncontained Err value, leaving an Ok value untouched.

      \n

      This function can be used to pass through a successful result while handling\nan error.

      \n
      §Examples
      \n
      fn stringify(x: u32) -> String { format!(\"error code: {x}\") }\n\nlet x: Result<u32, u32> = Ok(2);\nassert_eq!(x.map_err(stringify), Ok(2));\n\nlet x: Result<u32, u32> = Err(13);\nassert_eq!(x.map_err(stringify), Err(\"error code: 13\".to_string()));
      \n
      1.76.0 · Source

      pub fn inspect<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&T),

      Calls a function with a reference to the contained value if Ok.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      let x: u8 = \"4\"\n    .parse::<u8>()\n    .inspect(|x| println!(\"original: {x}\"))\n    .map(|x| x.pow(3))\n    .expect(\"failed to parse number\");
      \n
      1.76.0 · Source

      pub fn inspect_err<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&E),

      Calls a function with a reference to the contained value if Err.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      use std::{fs, io};\n\nfn read() -> io::Result<String> {\n    fs::read_to_string(\"address.txt\")\n        .inspect_err(|e| eprintln!(\"failed to read file: {e}\"))\n}
      \n
      1.47.0 · Source

      pub fn as_deref(&self) -> Result<&<T as Deref>::Target, &E>
      where\n T: Deref,

      Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.

      \n

      Coerces the Ok variant of the original Result via Deref\nand returns the new Result.

      \n
      §Examples
      \n
      let x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&str, &u32> = Ok(\"hello\");\nassert_eq!(x.as_deref(), y);\n\nlet x: Result<String, u32> = Err(42);\nlet y: Result<&str, &u32> = Err(&42);\nassert_eq!(x.as_deref(), y);
      \n
      1.47.0 · Source

      pub fn as_deref_mut(&mut self) -> Result<&mut <T as Deref>::Target, &mut E>
      where\n T: DerefMut,

      Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.

      \n

      Coerces the Ok variant of the original Result via DerefMut\nand returns the new Result.

      \n
      §Examples
      \n
      let mut s = \"HELLO\".to_string();\nlet mut x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&mut str, &mut u32> = Ok(&mut s);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);\n\nlet mut i = 42;\nlet mut x: Result<String, u32> = Err(42);\nlet y: Result<&mut str, &mut u32> = Err(&mut i);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
      \n
      1.0.0 · Source

      pub fn iter(&self) -> Iter<'_, T>

      Returns an iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(7);\nassert_eq!(x.iter().next(), Some(&7));\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter().next(), None);
      \n
      1.0.0 · Source

      pub fn iter_mut(&mut self) -> IterMut<'_, T>

      Returns a mutable iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let mut x: Result<u32, &str> = Ok(7);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 40,\n    None => {},\n}\nassert_eq!(x, Ok(40));\n\nlet mut x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter_mut().next(), None);
      \n
      1.4.0 · Source

      pub fn expect(self, msg: &str) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message including the\npassed message, and the content of the Err.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.expect(\"Testing expect\"); // panics with `Testing expect: emergency failure`
      \n
      §Recommended Message Style
      \n

      We recommend that expect messages are used to describe the reason you\nexpect the Result should be Ok.

      \n\n
      let path = std::env::var(\"IMPORTANT_PATH\")\n    .expect(\"env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`\");
      \n

      Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

      \n

      For more detail on expect message styles and the reasoning behind our recommendation please\nrefer to the section on “Common Message\nStyles” in the\nstd::error module docs.

      \n
      1.0.0 · Source

      pub fn unwrap(self) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message provided by the\nErr’s value.

      \n
      §Examples
      \n

      Basic usage:

      \n\n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.unwrap(), 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.unwrap(); // panics with `emergency failure`
      \n
      1.16.0 · Source

      pub fn unwrap_or_default(self) -> T
      where\n T: Default,

      Returns the contained Ok value or a default

      \n

      Consumes the self argument then, if Ok, returns the contained\nvalue, otherwise if Err, returns the default value for that\ntype.

      \n
      §Examples
      \n

      Converts a string to an integer, turning poorly-formed strings\ninto 0 (the default value for integers). parse converts\na string to any other type that implements FromStr, returning an\nErr on error.

      \n\n
      let good_year_from_input = \"1909\";\nlet bad_year_from_input = \"190blarg\";\nlet good_year = good_year_from_input.parse().unwrap_or_default();\nlet bad_year = bad_year_from_input.parse().unwrap_or_default();\n\nassert_eq!(1909, good_year);\nassert_eq!(0, bad_year);
      \n
      1.17.0 · Source

      pub fn expect_err(self, msg: &str) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a panic message including the\npassed message, and the content of the Ok.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(10);\nx.expect_err(\"Testing expect_err\"); // panics with `Testing expect_err: 10`
      \n
      1.0.0 · Source

      pub fn unwrap_err(self) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a custom panic message provided\nby the Ok’s value.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nx.unwrap_err(); // panics with `2`
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(x.unwrap_err(), \"emergency failure\");
      \n
      Source

      pub fn into_ok(self) -> T
      where\n E: Into<!>,

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

      Returns the contained Ok value, but never panics.

      \n

      Unlike unwrap, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap as a maintainability safeguard that will fail\nto compile if the error type of the Result is later changed\nto an error that can actually occur.

      \n
      §Examples
      \n
      \nfn only_good_news() -> Result<String, !> {\n    Ok(\"this is fine\".into())\n}\n\nlet s: String = only_good_news().into_ok();\nprintln!(\"{s}\");
      \n
      Source

      pub fn into_err(self) -> E
      where\n T: Into<!>,

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

      Returns the contained Err value, but never panics.

      \n

      Unlike unwrap_err, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap_err as a maintainability safeguard that will fail\nto compile if the ok type of the Result is later changed\nto a type that can actually occur.

      \n
      §Examples
      \n
      \nfn only_bad_news() -> Result<!, String> {\n    Err(\"Oops, it failed\".into())\n}\n\nlet error: String = only_bad_news().into_err();\nprintln!(\"{error}\");
      \n
      1.0.0 · Source

      pub fn and<U>(self, res: Result<U, E>) -> Result<U, E>

      Returns res if the result is Ok, otherwise returns the Err value of self.

      \n

      Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<&str, &str> = Ok(\"foo\");\nassert_eq!(x.and(y), Err(\"early error\"));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"not a 2\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Ok(\"different result type\");\nassert_eq!(x.and(y), Ok(\"different result type\"));
      \n
      1.0.0 · Source

      pub fn and_then<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> Result<U, E>,

      Calls op if the result is Ok, otherwise returns the Err value of self.

      \n

      This function can be used for control flow based on Result values.

      \n
      §Examples
      \n
      fn sq_then_to_string(x: u32) -> Result<String, &'static str> {\n    x.checked_mul(x).map(|sq| sq.to_string()).ok_or(\"overflowed\")\n}\n\nassert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));\nassert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err(\"overflowed\"));\nassert_eq!(Err(\"not a number\").and_then(sq_then_to_string), Err(\"not a number\"));
      \n

      Often used to chain fallible operations that may return Err.

      \n\n
      use std::{io::ErrorKind, path::Path};\n\n// Note: on Windows \"/\" maps to \"C:\\\"\nlet root_modified_time = Path::new(\"/\").metadata().and_then(|md| md.modified());\nassert!(root_modified_time.is_ok());\n\nlet should_fail = Path::new(\"/bad/path\").metadata().and_then(|md| md.modified());\nassert!(should_fail.is_err());\nassert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
      \n
      1.0.0 · Source

      pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>

      Returns res if the result is Err, otherwise returns the Ok value of self.

      \n

      Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<u32, &str> = Ok(2);\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Ok(100);\nassert_eq!(x.or(y), Ok(2));
      \n
      1.0.0 · Source

      pub fn or_else<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> Result<T, F>,

      Calls op if the result is Err, otherwise returns the Ok value of self.

      \n

      This function can be used for control flow based on result values.

      \n
      §Examples
      \n
      fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }\nfn err(x: u32) -> Result<u32, u32> { Err(x) }\n\nassert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));\nassert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));\nassert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));\nassert_eq!(Err(3).or_else(err).or_else(err), Err(3));
      \n
      1.0.0 · Source

      pub fn unwrap_or(self, default: T) -> T

      Returns the contained Ok value or a provided default.

      \n

      Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let default = 2;\nlet x: Result<u32, &str> = Ok(9);\nassert_eq!(x.unwrap_or(default), 9);\n\nlet x: Result<u32, &str> = Err(\"error\");\nassert_eq!(x.unwrap_or(default), default);
      \n
      1.0.0 · Source

      pub fn unwrap_or_else<F>(self, op: F) -> T
      where\n F: FnOnce(E) -> T,

      Returns the contained Ok value or computes it from a closure.

      \n
      §Examples
      \n
      fn count(x: &str) -> usize { x.len() }\n\nassert_eq!(Ok(2).unwrap_or_else(count), 2);\nassert_eq!(Err(\"foo\").unwrap_or_else(count), 3);
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_unchecked(self) -> T

      Returns the contained Ok value, consuming the self value,\nwithout checking that the value is not an Err.

      \n
      §Safety
      \n

      Calling this method on an Err is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(unsafe { x.unwrap_unchecked() }, 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nunsafe { x.unwrap_unchecked(); } // Undefined behavior!
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_err_unchecked(self) -> E

      Returns the contained Err value, consuming the self value,\nwithout checking that the value is not an Ok.

      \n
      §Safety
      \n

      Calling this method on an Ok is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nunsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(unsafe { x.unwrap_err_unchecked() }, \"emergency failure\");
      \n
      ",0,"cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Serialize for Result<T, E>
      where\n T: Serialize,\n E: Serialize,

      Source§

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

      Serialize this value into the given Serde serializer. Read more
      ","Serialize","cu29_rendercfg::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
      where\n T: Sum<U>,

      Source§

      fn sum<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the sum of all elements is returned.

      \n
      §Examples
      \n

      This sums up every integer in a vector, rejecting the sum if a negative\nelement is encountered:

      \n\n
      let f = |&x: &i32| if x < 0 { Err(\"Negative element found\") } else { Ok(x) };\nlet v = vec![1, 2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Ok(3));\nlet v = vec![1, -2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Err(\"Negative element found\"));
      \n
      ","Sum>","cu29_rendercfg::CuResult"],["
      1.61.0 · Source§

      impl<T, E> Termination for Result<T, E>
      where\n T: Termination,\n E: Debug,

      Source§

      fn report(self) -> ExitCode

      Is called to get the representation of the value as status code.\nThis status code is returned to the operating system.
      ","Termination","cu29_rendercfg::CuResult"],["
      Source§

      impl<T, E> Try for Result<T, E>

      Source§

      type Output = T

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value produced by ? when not short-circuiting.
      Source§

      type Residual = Result<Infallible, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
      Source§

      fn from_output(output: <Result<T, E> as Try>::Output) -> Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from its Output type. Read more
      Source§

      fn branch(\n self,\n) -> ControlFlow<<Result<T, E> as Try>::Residual, <Result<T, E> as Try>::Output>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
      ","Try","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Copy for Result<T, E>
      where\n T: Copy,\n E: Copy,

      ","Copy","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Eq for Result<T, E>
      where\n T: Eq,\n E: Eq,

      ","Eq","cu29_rendercfg::CuResult"],["
      1.0.0 · Source§

      impl<T, E> StructuralPartialEq for Result<T, E>

      ","StructuralPartialEq","cu29_rendercfg::CuResult"]]],["cu29_traits",[["
      Source§

      impl<'de, T, U> BorrowDecode<'de> for Result<T, U>
      where\n T: BorrowDecode<'de>,\n U: BorrowDecode<'de>,

      Source§

      fn borrow_decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: BorrowDecoder<'de>,

      Attempt to decode this type with the given BorrowDecode.
      ","BorrowDecode<'de>","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Clone for Result<T, E>
      where\n T: Clone,\n E: Clone,

      Source§

      fn clone(&self) -> Result<T, E>

      Returns a copy of the value. Read more
      Source§

      fn clone_from(&mut self, source: &Result<T, E>)

      Performs copy-assignment from source. Read more
      ","Clone","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Debug for Result<T, E>
      where\n T: Debug,\n E: Debug,

      Source§

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

      Formats the value using the given formatter. Read more
      ","Debug","cu29_traits::CuResult"],["
      Source§

      impl<T, U> Decode for Result<T, U>
      where\n T: Decode,\n U: Decode,

      Source§

      fn decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
      where\n D: Decoder,

      Attempt to decode this type with the given Decode.
      ","Decode","cu29_traits::CuResult"],["
      Source§

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

      Source§

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

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","cu29_traits::CuResult"],["
      Source§

      impl<T, U> Encode for Result<T, U>
      where\n T: Encode,\n U: Encode,

      Source§

      fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
      where\n E: Encoder,

      Encode a given type.
      ","Encode","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<A, E, V> FromIterator<Result<A, E>> for Result<V, E>
      where\n V: FromIterator<A>,

      Source§

      fn from_iter<I>(iter: I) -> Result<V, E>
      where\n I: IntoIterator<Item = Result<A, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err occur, a\ncontainer with the values of each Result is returned.

      \n

      Here is an example which increments every integer in a vector,\nchecking for overflow:

      \n\n
      let v = vec![1, 2];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_add(1).ok_or(\"Overflow!\")\n).collect();\nassert_eq!(res, Ok(vec![2, 3]));
      \n

      Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

      \n\n
      let v = vec![1, 2, 0];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_sub(1).ok_or(\"Underflow!\")\n).collect();\nassert_eq!(res, Err(\"Underflow!\"));
      \n

      Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first Err.

      \n\n
      let v = vec![3, 2, 1, 10];\nlet mut shared = 0;\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {\n    shared += x;\n    x.checked_sub(2).ok_or(\"Underflow!\")\n}).collect();\nassert_eq!(res, Err(\"Underflow!\"));\nassert_eq!(shared, 6);
      \n

      Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

      \n
      ","FromIterator>","cu29_traits::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Result<Infallible, E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(residual: Result<Infallible, E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29_traits::CuResult"],["
      Source§

      impl<T, E, F> FromResidual<Yeet<E>> for Result<T, F>
      where\n F: From<E>,

      Source§

      fn from_residual(_: Yeet<E>) -> Result<T, F>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from a compatible Residual type. Read more
      ","FromResidual>","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Hash for Result<T, E>
      where\n T: Hash,\n E: Hash,

      Source§

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

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

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

      Feeds a slice of this type into the given Hasher. Read more
      ","Hash","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> IntoIterator for Result<T, E>

      Source§

      fn into_iter(self) -> IntoIter<T>

      Returns a consuming iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(5);\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, [5]);\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, []);
      \n
      Source§

      type Item = T

      The type of the elements being iterated over.
      Source§

      type IntoIter = IntoIter<T>

      Which kind of iterator are we turning this into?
      ","IntoIterator","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Ord for Result<T, E>
      where\n T: Ord,\n E: Ord,

      Source§

      fn cmp(&self, other: &Result<T, E>) -> Ordering

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

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

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

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

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

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

      Restrict a value to a certain interval. Read more
      ","Ord","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialEq for Result<T, E>
      where\n T: PartialEq,\n E: PartialEq,

      Source§

      fn eq(&self, other: &Result<T, E>) -> bool

      Tests for self and other values to be equal, and is used by ==.
      1.0.0 · Source§

      fn ne(&self, other: &Rhs) -> bool

      Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
      ","PartialEq","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> PartialOrd for Result<T, E>
      where\n T: PartialOrd,\n E: PartialOrd,

      Source§

      fn partial_cmp(&self, other: &Result<T, E>) -> Option<Ordering>

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

      fn lt(&self, other: &Rhs) -> bool

      Tests less than (for self and other) and is used by the < operator. Read more
      1.0.0 · Source§

      fn le(&self, other: &Rhs) -> bool

      Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
      1.0.0 · Source§

      fn gt(&self, other: &Rhs) -> bool

      Tests greater than (for self and other) and is used by the >\noperator. Read more
      1.0.0 · Source§

      fn ge(&self, other: &Rhs) -> bool

      Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
      ","PartialOrd","cu29_traits::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Product<Result<U, E>> for Result<T, E>
      where\n T: Product<U>,

      Source§

      fn product<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the product of all elements is returned.

      \n
      §Examples
      \n

      This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns Err:

      \n\n
      let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert_eq!(total, Ok(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert!(total.is_err());
      \n
      ","Product>","cu29_traits::CuResult"],["
      Source§

      impl<T, E> Residual<T> for Result<Infallible, E>

      Source§

      type TryType = Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2_residual)
      The “return” type of this meta-function.
      ","Residual","cu29_traits::CuResult"],["
      Source§

      impl<T, E> Result<&T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29_traits::CuResult"],["
      Source§

      impl<T, E> Result<&mut T, E>

      1.59.0 (const: 1.83.0) · Source

      pub const fn copied(self) -> Result<T, E>
      where\n T: Copy,

      Maps a Result<&mut T, E> to a Result<T, E> by copying the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
      \n
      1.59.0 · Source

      pub fn cloned(self) -> Result<T, E>
      where\n T: Clone,

      Maps a Result<&mut T, E> to a Result<T, E> by cloning the contents of the\nOk part.

      \n
      §Examples
      \n
      let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
      \n
      ",0,"cu29_traits::CuResult"],["
      Source§

      impl<T, E> Result<Option<T>, E>

      1.33.0 (const: 1.83.0) · Source

      pub const fn transpose(self) -> Option<Result<T, E>>

      Transposes a Result of an Option into an Option of a Result.

      \n

      Ok(None) will be mapped to None.\nOk(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)).

      \n
      §Examples
      \n
      #[derive(Debug, Eq, PartialEq)]\nstruct SomeErr;\n\nlet x: Result<Option<i32>, SomeErr> = Ok(Some(5));\nlet y: Option<Result<i32, SomeErr>> = Some(Ok(5));\nassert_eq!(x.transpose(), y);
      \n
      ",0,"cu29_traits::CuResult"],["
      Source§

      impl<T, E> Result<Result<T, E>, E>

      Source

      pub const fn flatten(self) -> Result<T, E>

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

      Converts from Result<Result<T, E>, E> to Result<T, E>

      \n
      §Examples
      \n
      #![feature(result_flattening)]\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Ok(\"hello\"));\nassert_eq!(Ok(\"hello\"), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));\nassert_eq!(Err(6), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Err(6);\nassert_eq!(Err(6), x.flatten());
      \n

      Flattening only removes one level of nesting at a time:

      \n\n
      #![feature(result_flattening)]\nlet x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok(\"hello\")));\nassert_eq!(Ok(Ok(\"hello\")), x.flatten());\nassert_eq!(Ok(\"hello\"), x.flatten().flatten());
      \n
      ",0,"cu29_traits::CuResult"],["
      Source§

      impl<T, E> Result<T, E>

      1.0.0 (const: 1.48.0) · Source

      pub const fn is_ok(&self) -> bool

      Returns true if the result is Ok.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_ok(), true);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_ok(), false);
      \n
      1.70.0 · Source

      pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool

      Returns true if the result is Ok and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.is_ok_and(|x| x > 1), true);\n\nlet x: Result<u32, &str> = Ok(0);\nassert_eq!(x.is_ok_and(|x| x > 1), false);\n\nlet x: Result<u32, &str> = Err(\"hey\");\nassert_eq!(x.is_ok_and(|x| x > 1), false);
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn is_err(&self) -> bool

      Returns true if the result is Err.

      \n
      §Examples
      \n
      let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_err(), false);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_err(), true);
      \n
      1.70.0 · Source

      pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool

      Returns true if the result is Err and the value inside of it matches a predicate.

      \n
      §Examples
      \n
      use std::io::{Error, ErrorKind};\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);\n\nlet x: Result<u32, Error> = Ok(123);\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
      \n
      1.0.0 · Source

      pub fn ok(self) -> Option<T>

      Converts from Result<T, E> to Option<T>.

      \n

      Converts self into an Option<T>, consuming self,\nand discarding the error, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.ok(), Some(2));\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.ok(), None);
      \n
      1.0.0 · Source

      pub fn err(self) -> Option<E>

      Converts from Result<T, E> to Option<E>.

      \n

      Converts self into an Option<E>, consuming self,\nand discarding the success value, if any.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.err(), None);\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.err(), Some(\"Nothing here\"));
      \n
      1.0.0 (const: 1.48.0) · Source

      pub const fn as_ref(&self) -> Result<&T, &E>

      Converts from &Result<T, E> to Result<&T, &E>.

      \n

      Produces a new Result, containing a reference\ninto the original, leaving the original in place.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.as_ref(), Ok(&2));\n\nlet x: Result<u32, &str> = Err(\"Error\");\nassert_eq!(x.as_ref(), Err(&\"Error\"));
      \n
      1.0.0 (const: 1.83.0) · Source

      pub const fn as_mut(&mut self) -> Result<&mut T, &mut E>

      Converts from &mut Result<T, E> to Result<&mut T, &mut E>.

      \n
      §Examples
      \n
      fn mutate(r: &mut Result<i32, i32>) {\n    match r.as_mut() {\n        Ok(v) => *v = 42,\n        Err(e) => *e = 0,\n    }\n}\n\nlet mut x: Result<i32, i32> = Ok(2);\nmutate(&mut x);\nassert_eq!(x.unwrap(), 42);\n\nlet mut x: Result<i32, i32> = Err(13);\nmutate(&mut x);\nassert_eq!(x.unwrap_err(), 0);
      \n
      1.0.0 · Source

      pub fn map<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to Result<U, E> by applying a function to a\ncontained Ok value, leaving an Err value untouched.

      \n

      This function can be used to compose the results of two functions.

      \n
      §Examples
      \n

      Print the numbers on each line of a string multiplied by two.

      \n\n
      let line = \"1\\n2\\n3\\n4\\n\";\n\nfor num in line.lines() {\n    match num.parse::<i32>().map(|i| i * 2) {\n        Ok(n) => println!(\"{n}\"),\n        Err(..) => {}\n    }\n}
      \n
      1.41.0 · Source

      pub fn map_or<U, F>(self, default: U, f: F) -> U
      where\n F: FnOnce(T) -> U,

      Returns the provided default (if Err), or\napplies a function to the contained value (if Ok).

      \n

      Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let x: Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or(42, |v| v.len()), 42);
      \n
      1.41.0 · Source

      pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
      where\n D: FnOnce(E) -> U,\n F: FnOnce(T) -> U,

      Maps a Result<T, E> to U by applying fallback function default to\na contained Err value, or function f to a contained Ok value.

      \n

      This function can be used to unpack a successful result\nwhile handling an error.

      \n
      §Examples
      \n
      let k = 21;\n\nlet x : Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);\n\nlet x : Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
      \n
      1.0.0 · Source

      pub fn map_err<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> F,

      Maps a Result<T, E> to Result<T, F> by applying a function to a\ncontained Err value, leaving an Ok value untouched.

      \n

      This function can be used to pass through a successful result while handling\nan error.

      \n
      §Examples
      \n
      fn stringify(x: u32) -> String { format!(\"error code: {x}\") }\n\nlet x: Result<u32, u32> = Ok(2);\nassert_eq!(x.map_err(stringify), Ok(2));\n\nlet x: Result<u32, u32> = Err(13);\nassert_eq!(x.map_err(stringify), Err(\"error code: 13\".to_string()));
      \n
      1.76.0 · Source

      pub fn inspect<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&T),

      Calls a function with a reference to the contained value if Ok.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      let x: u8 = \"4\"\n    .parse::<u8>()\n    .inspect(|x| println!(\"original: {x}\"))\n    .map(|x| x.pow(3))\n    .expect(\"failed to parse number\");
      \n
      1.76.0 · Source

      pub fn inspect_err<F>(self, f: F) -> Result<T, E>
      where\n F: FnOnce(&E),

      Calls a function with a reference to the contained value if Err.

      \n

      Returns the original result.

      \n
      §Examples
      \n
      use std::{fs, io};\n\nfn read() -> io::Result<String> {\n    fs::read_to_string(\"address.txt\")\n        .inspect_err(|e| eprintln!(\"failed to read file: {e}\"))\n}
      \n
      1.47.0 · Source

      pub fn as_deref(&self) -> Result<&<T as Deref>::Target, &E>
      where\n T: Deref,

      Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.

      \n

      Coerces the Ok variant of the original Result via Deref\nand returns the new Result.

      \n
      §Examples
      \n
      let x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&str, &u32> = Ok(\"hello\");\nassert_eq!(x.as_deref(), y);\n\nlet x: Result<String, u32> = Err(42);\nlet y: Result<&str, &u32> = Err(&42);\nassert_eq!(x.as_deref(), y);
      \n
      1.47.0 · Source

      pub fn as_deref_mut(&mut self) -> Result<&mut <T as Deref>::Target, &mut E>
      where\n T: DerefMut,

      Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.

      \n

      Coerces the Ok variant of the original Result via DerefMut\nand returns the new Result.

      \n
      §Examples
      \n
      let mut s = \"HELLO\".to_string();\nlet mut x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&mut str, &mut u32> = Ok(&mut s);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);\n\nlet mut i = 42;\nlet mut x: Result<String, u32> = Err(42);\nlet y: Result<&mut str, &mut u32> = Err(&mut i);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
      \n
      1.0.0 · Source

      pub fn iter(&self) -> Iter<'_, T>

      Returns an iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(7);\nassert_eq!(x.iter().next(), Some(&7));\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter().next(), None);
      \n
      1.0.0 · Source

      pub fn iter_mut(&mut self) -> IterMut<'_, T>

      Returns a mutable iterator over the possibly contained value.

      \n

      The iterator yields one value if the result is Result::Ok, otherwise none.

      \n
      §Examples
      \n
      let mut x: Result<u32, &str> = Ok(7);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 40,\n    None => {},\n}\nassert_eq!(x, Ok(40));\n\nlet mut x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter_mut().next(), None);
      \n
      1.4.0 · Source

      pub fn expect(self, msg: &str) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message including the\npassed message, and the content of the Err.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.expect(\"Testing expect\"); // panics with `Testing expect: emergency failure`
      \n
      §Recommended Message Style
      \n

      We recommend that expect messages are used to describe the reason you\nexpect the Result should be Ok.

      \n\n
      let path = std::env::var(\"IMPORTANT_PATH\")\n    .expect(\"env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`\");
      \n

      Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

      \n

      For more detail on expect message styles and the reasoning behind our recommendation please\nrefer to the section on “Common Message\nStyles” in the\nstd::error module docs.

      \n
      1.0.0 · Source

      pub fn unwrap(self) -> T
      where\n E: Debug,

      Returns the contained Ok value, consuming the self value.

      \n

      Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

      \n
      §Panics
      \n

      Panics if the value is an Err, with a panic message provided by the\nErr’s value.

      \n
      §Examples
      \n

      Basic usage:

      \n\n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.unwrap(), 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nx.unwrap(); // panics with `emergency failure`
      \n
      1.16.0 · Source

      pub fn unwrap_or_default(self) -> T
      where\n T: Default,

      Returns the contained Ok value or a default

      \n

      Consumes the self argument then, if Ok, returns the contained\nvalue, otherwise if Err, returns the default value for that\ntype.

      \n
      §Examples
      \n

      Converts a string to an integer, turning poorly-formed strings\ninto 0 (the default value for integers). parse converts\na string to any other type that implements FromStr, returning an\nErr on error.

      \n\n
      let good_year_from_input = \"1909\";\nlet bad_year_from_input = \"190blarg\";\nlet good_year = good_year_from_input.parse().unwrap_or_default();\nlet bad_year = bad_year_from_input.parse().unwrap_or_default();\n\nassert_eq!(1909, good_year);\nassert_eq!(0, bad_year);
      \n
      1.17.0 · Source

      pub fn expect_err(self, msg: &str) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a panic message including the\npassed message, and the content of the Ok.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(10);\nx.expect_err(\"Testing expect_err\"); // panics with `Testing expect_err: 10`
      \n
      1.0.0 · Source

      pub fn unwrap_err(self) -> E
      where\n T: Debug,

      Returns the contained Err value, consuming the self value.

      \n
      §Panics
      \n

      Panics if the value is an Ok, with a custom panic message provided\nby the Ok’s value.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nx.unwrap_err(); // panics with `2`
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(x.unwrap_err(), \"emergency failure\");
      \n
      Source

      pub fn into_ok(self) -> T
      where\n E: Into<!>,

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

      Returns the contained Ok value, but never panics.

      \n

      Unlike unwrap, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap as a maintainability safeguard that will fail\nto compile if the error type of the Result is later changed\nto an error that can actually occur.

      \n
      §Examples
      \n
      \nfn only_good_news() -> Result<String, !> {\n    Ok(\"this is fine\".into())\n}\n\nlet s: String = only_good_news().into_ok();\nprintln!(\"{s}\");
      \n
      Source

      pub fn into_err(self) -> E
      where\n T: Into<!>,

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

      Returns the contained Err value, but never panics.

      \n

      Unlike unwrap_err, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap_err as a maintainability safeguard that will fail\nto compile if the ok type of the Result is later changed\nto a type that can actually occur.

      \n
      §Examples
      \n
      \nfn only_bad_news() -> Result<!, String> {\n    Err(\"Oops, it failed\".into())\n}\n\nlet error: String = only_bad_news().into_err();\nprintln!(\"{error}\");
      \n
      1.0.0 · Source

      pub fn and<U>(self, res: Result<U, E>) -> Result<U, E>

      Returns res if the result is Ok, otherwise returns the Err value of self.

      \n

      Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<&str, &str> = Ok(\"foo\");\nassert_eq!(x.and(y), Err(\"early error\"));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"not a 2\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Ok(\"different result type\");\nassert_eq!(x.and(y), Ok(\"different result type\"));
      \n
      1.0.0 · Source

      pub fn and_then<U, F>(self, op: F) -> Result<U, E>
      where\n F: FnOnce(T) -> Result<U, E>,

      Calls op if the result is Ok, otherwise returns the Err value of self.

      \n

      This function can be used for control flow based on Result values.

      \n
      §Examples
      \n
      fn sq_then_to_string(x: u32) -> Result<String, &'static str> {\n    x.checked_mul(x).map(|sq| sq.to_string()).ok_or(\"overflowed\")\n}\n\nassert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));\nassert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err(\"overflowed\"));\nassert_eq!(Err(\"not a number\").and_then(sq_then_to_string), Err(\"not a number\"));
      \n

      Often used to chain fallible operations that may return Err.

      \n\n
      use std::{io::ErrorKind, path::Path};\n\n// Note: on Windows \"/\" maps to \"C:\\\"\nlet root_modified_time = Path::new(\"/\").metadata().and_then(|md| md.modified());\nassert!(root_modified_time.is_ok());\n\nlet should_fail = Path::new(\"/bad/path\").metadata().and_then(|md| md.modified());\nassert!(should_fail.is_err());\nassert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
      \n
      1.0.0 · Source

      pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>

      Returns res if the result is Err, otherwise returns the Ok value of self.

      \n

      Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<u32, &str> = Ok(2);\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Ok(100);\nassert_eq!(x.or(y), Ok(2));
      \n
      1.0.0 · Source

      pub fn or_else<F, O>(self, op: O) -> Result<T, F>
      where\n O: FnOnce(E) -> Result<T, F>,

      Calls op if the result is Err, otherwise returns the Ok value of self.

      \n

      This function can be used for control flow based on result values.

      \n
      §Examples
      \n
      fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }\nfn err(x: u32) -> Result<u32, u32> { Err(x) }\n\nassert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));\nassert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));\nassert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));\nassert_eq!(Err(3).or_else(err).or_else(err), Err(3));
      \n
      1.0.0 · Source

      pub fn unwrap_or(self, default: T) -> T

      Returns the contained Ok value or a provided default.

      \n

      Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

      \n
      §Examples
      \n
      let default = 2;\nlet x: Result<u32, &str> = Ok(9);\nassert_eq!(x.unwrap_or(default), 9);\n\nlet x: Result<u32, &str> = Err(\"error\");\nassert_eq!(x.unwrap_or(default), default);
      \n
      1.0.0 · Source

      pub fn unwrap_or_else<F>(self, op: F) -> T
      where\n F: FnOnce(E) -> T,

      Returns the contained Ok value or computes it from a closure.

      \n
      §Examples
      \n
      fn count(x: &str) -> usize { x.len() }\n\nassert_eq!(Ok(2).unwrap_or_else(count), 2);\nassert_eq!(Err(\"foo\").unwrap_or_else(count), 3);
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_unchecked(self) -> T

      Returns the contained Ok value, consuming the self value,\nwithout checking that the value is not an Err.

      \n
      §Safety
      \n

      Calling this method on an Err is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nassert_eq!(unsafe { x.unwrap_unchecked() }, 2);
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nunsafe { x.unwrap_unchecked(); } // Undefined behavior!
      \n
      1.58.0 · Source

      pub unsafe fn unwrap_err_unchecked(self) -> E

      Returns the contained Err value, consuming the self value,\nwithout checking that the value is not an Ok.

      \n
      §Safety
      \n

      Calling this method on an Ok is undefined behavior.

      \n
      §Examples
      \n
      let x: Result<u32, &str> = Ok(2);\nunsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
      \n\n
      let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(unsafe { x.unwrap_err_unchecked() }, \"emergency failure\");
      \n
      ",0,"cu29_traits::CuResult"],["
      Source§

      impl<T, E> Serialize for Result<T, E>
      where\n T: Serialize,\n E: Serialize,

      Source§

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

      Serialize this value into the given Serde serializer. Read more
      ","Serialize","cu29_traits::CuResult"],["
      1.16.0 · Source§

      impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
      where\n T: Sum<U>,

      Source§

      fn sum<I>(iter: I) -> Result<T, E>
      where\n I: Iterator<Item = Result<U, E>>,

      Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the sum of all elements is returned.

      \n
      §Examples
      \n

      This sums up every integer in a vector, rejecting the sum if a negative\nelement is encountered:

      \n\n
      let f = |&x: &i32| if x < 0 { Err(\"Negative element found\") } else { Ok(x) };\nlet v = vec![1, 2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Ok(3));\nlet v = vec![1, -2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Err(\"Negative element found\"));
      \n
      ","Sum>","cu29_traits::CuResult"],["
      1.61.0 · Source§

      impl<T, E> Termination for Result<T, E>
      where\n T: Termination,\n E: Debug,

      Source§

      fn report(self) -> ExitCode

      Is called to get the representation of the value as status code.\nThis status code is returned to the operating system.
      ","Termination","cu29_traits::CuResult"],["
      Source§

      impl<T, E> Try for Result<T, E>

      Source§

      type Output = T

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value produced by ? when not short-circuiting.
      Source§

      type Residual = Result<Infallible, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
      Source§

      fn from_output(output: <Result<T, E> as Try>::Output) -> Result<T, E>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Constructs the type from its Output type. Read more
      Source§

      fn branch(\n self,\n) -> ControlFlow<<Result<T, E> as Try>::Residual, <Result<T, E> as Try>::Output>

      🔬This is a nightly-only experimental API. (try_trait_v2)
      Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
      ","Try","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Copy for Result<T, E>
      where\n T: Copy,\n E: Copy,

      ","Copy","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> Eq for Result<T, E>
      where\n T: Eq,\n E: Eq,

      ","Eq","cu29_traits::CuResult"],["
      1.0.0 · Source§

      impl<T, E> StructuralPartialEq for Result<T, E>

      ","StructuralPartialEq","cu29_traits::CuResult"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/cu29/prelude/struct.CuDuration.js b/type.impl/cu29/prelude/struct.CuDuration.js index 835864846..816f23e98 100644 --- a/type.impl/cu29/prelude/struct.CuDuration.js +++ b/type.impl/cu29/prelude/struct.CuDuration.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["cu29",[["
      §

      impl Add for CuDuration

      §

      type Output = CuDuration

      The resulting type after applying the + operator.
      §

      fn add(self, rhs: CuDuration) -> <CuDuration as Add>::Output

      Performs the + operation. Read more
      ","Add","cu29::prelude::CuTime"],["
      §

      impl AddAssign for CuDuration

      §

      fn add_assign(&mut self, rhs: CuDuration)

      Performs the += operation. Read more
      ","AddAssign","cu29::prelude::CuTime"],["
      §

      impl<'de> BorrowDecode<'de> for CuDuration

      §

      fn borrow_decode<D>(decoder: &mut D) -> Result<CuDuration, DecodeError>
      where\n D: BorrowDecoder<'de>,

      Attempt to decode this type with the given BorrowDecode.
      ","BorrowDecode<'de>","cu29::prelude::CuTime"],["
      §

      impl Clone for CuDuration

      §

      fn clone(&self) -> CuDuration

      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
      ","Clone","cu29::prelude::CuTime"],["
      §

      impl CuDuration

      pub const MIN: CuDuration = _

      pub const MAX: CuDuration = _

      pub fn max(&self, p0: CuDuration) -> CuDuration

      pub fn min(&self, p0: CuDuration) -> CuDuration

      ",0,"cu29::prelude::CuTime"],["
      §

      impl Debug for CuDuration

      §

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

      Formats the value using the given formatter. Read more
      ","Debug","cu29::prelude::CuTime"],["
      §

      impl Decode for CuDuration

      §

      fn decode<D>(decoder: &mut D) -> Result<CuDuration, DecodeError>
      where\n D: Decoder,

      Attempt to decode this type with the given Decode.
      ","Decode","cu29::prelude::CuTime"],["
      §

      impl Default for CuDuration

      §

      fn default() -> CuDuration

      Returns the “default value” for a type. Read more
      ","Default","cu29::prelude::CuTime"],["
      §

      impl<'de> Deserialize<'de> for CuDuration

      §

      fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<CuDuration, <__D as Deserializer<'de>>::Error>
      where\n __D: Deserializer<'de>,

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","cu29::prelude::CuTime"],["
      §

      impl Display for CuDuration

      §

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

      Formats the value using the given formatter. Read more
      ","Display","cu29::prelude::CuTime"],["
      §

      impl<T> Div<T> for CuDuration
      where\n T: Into<u64>,

      §

      type Output = CuDuration

      The resulting type after applying the / operator.
      §

      fn div(self, rhs: T) -> CuDuration

      Performs the / operation. Read more
      ","Div","cu29::prelude::CuTime"],["
      §

      impl Encode for CuDuration

      §

      fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
      where\n E: Encoder,

      Encode a given type.
      ","Encode","cu29::prelude::CuTime"],["
      §

      impl From<Duration> for CuDuration

      bridge the API with standard Durations.

      \n
      §

      fn from(duration: Duration) -> CuDuration

      Converts to this type from the input type.
      ","From","cu29::prelude::CuTime"],["
      §

      impl From<u64> for CuDuration

      §

      fn from(duration: u64) -> CuDuration

      Converts to this type from the input type.
      ","From","cu29::prelude::CuTime"],["
      §

      impl<T> Mul<T> for CuDuration
      where\n T: Into<u64>,

      §

      type Output = CuDuration

      The resulting type after applying the * operator.
      §

      fn mul(self, rhs: T) -> CuDuration

      Performs the * operation. Read more
      ","Mul","cu29::prelude::CuTime"],["
      §

      impl Ord for CuDuration

      §

      fn cmp(&self, other: &CuDuration) -> Ordering

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

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

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

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

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

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

      Restrict a value to a certain interval. Read more
      ","Ord","cu29::prelude::CuTime"],["
      §

      impl PartialEq for CuDuration

      §

      fn eq(&self, other: &CuDuration) -> bool

      Tests for self and other values to be equal, and is used by ==.
      1.0.0 · Source§

      fn ne(&self, other: &Rhs) -> bool

      Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
      ","PartialEq","cu29::prelude::CuTime"],["
      §

      impl PartialOrd for CuDuration

      §

      fn partial_cmp(&self, other: &CuDuration) -> Option<Ordering>

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

      fn lt(&self, other: &Rhs) -> bool

      Tests less than (for self and other) and is used by the < operator. Read more
      1.0.0 · Source§

      fn le(&self, other: &Rhs) -> bool

      Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
      1.0.0 · Source§

      fn gt(&self, other: &Rhs) -> bool

      Tests greater than (for self and other) and is used by the >\noperator. Read more
      1.0.0 · Source§

      fn ge(&self, other: &Rhs) -> bool

      Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
      ","PartialOrd","cu29::prelude::CuTime"],["
      §

      impl Serialize for CuDuration

      §

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

      Serialize this value into the given Serde serializer. Read more
      ","Serialize","cu29::prelude::CuTime"],["
      §

      impl Sub for CuDuration

      §

      type Output = CuDuration

      The resulting type after applying the - operator.
      §

      fn sub(self, rhs: CuDuration) -> <CuDuration as Sub>::Output

      Performs the - operation. Read more
      ","Sub","cu29::prelude::CuTime"],["
      §

      impl Copy for CuDuration

      ","Copy","cu29::prelude::CuTime"],["
      §

      impl Eq for CuDuration

      ","Eq","cu29::prelude::CuTime"],["
      §

      impl StructuralPartialEq for CuDuration

      ","StructuralPartialEq","cu29::prelude::CuTime"]]]]); + var type_impls = Object.fromEntries([["cu29",[["
      §

      impl Add for CuDuration

      §

      type Output = CuDuration

      The resulting type after applying the + operator.
      §

      fn add(self, rhs: CuDuration) -> <CuDuration as Add>::Output

      Performs the + operation. Read more
      ","Add","cu29::prelude::CuTime"],["
      §

      impl AddAssign for CuDuration

      §

      fn add_assign(&mut self, rhs: CuDuration)

      Performs the += operation. Read more
      ","AddAssign","cu29::prelude::CuTime"],["
      §

      impl<'de> BorrowDecode<'de> for CuDuration

      §

      fn borrow_decode<D>(decoder: &mut D) -> Result<CuDuration, DecodeError>
      where\n D: BorrowDecoder<'de>,

      Attempt to decode this type with the given BorrowDecode.
      ","BorrowDecode<'de>","cu29::prelude::CuTime"],["
      §

      impl Clone for CuDuration

      §

      fn clone(&self) -> CuDuration

      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
      ","Clone","cu29::prelude::CuTime"],["
      §

      impl CuDuration

      pub const MIN: CuDuration = _

      pub const MAX: CuDuration = _

      pub fn max(&self, p0: CuDuration) -> CuDuration

      pub fn min(&self, p0: CuDuration) -> CuDuration

      ",0,"cu29::prelude::CuTime"],["
      §

      impl Debug for CuDuration

      §

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

      Formats the value using the given formatter. Read more
      ","Debug","cu29::prelude::CuTime"],["
      §

      impl Decode for CuDuration

      §

      fn decode<D>(decoder: &mut D) -> Result<CuDuration, DecodeError>
      where\n D: Decoder,

      Attempt to decode this type with the given Decode.
      ","Decode","cu29::prelude::CuTime"],["
      §

      impl Default for CuDuration

      §

      fn default() -> CuDuration

      Returns the “default value” for a type. Read more
      ","Default","cu29::prelude::CuTime"],["
      §

      impl<'de> Deserialize<'de> for CuDuration

      §

      fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<CuDuration, <__D as Deserializer<'de>>::Error>
      where\n __D: Deserializer<'de>,

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","cu29::prelude::CuTime"],["
      §

      impl Display for CuDuration

      §

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

      Formats the value using the given formatter. Read more
      ","Display","cu29::prelude::CuTime"],["
      §

      impl<T> Div<T> for CuDuration
      where\n T: Into<u64>,

      §

      type Output = CuDuration

      The resulting type after applying the / operator.
      §

      fn div(self, rhs: T) -> CuDuration

      Performs the / operation. Read more
      ","Div","cu29::prelude::CuTime"],["
      §

      impl Encode for CuDuration

      §

      fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
      where\n E: Encoder,

      Encode a given type.
      ","Encode","cu29::prelude::CuTime"],["
      §

      impl From<Duration> for CuDuration

      bridge the API with standard Durations.

      \n
      §

      fn from(duration: Duration) -> CuDuration

      Converts to this type from the input type.
      ","From","cu29::prelude::CuTime"],["
      §

      impl From<u64> for CuDuration

      §

      fn from(duration: u64) -> CuDuration

      Converts to this type from the input type.
      ","From","cu29::prelude::CuTime"],["
      §

      impl<T> Mul<T> for CuDuration
      where\n T: Into<u64>,

      §

      type Output = CuDuration

      The resulting type after applying the * operator.
      §

      fn mul(self, rhs: T) -> CuDuration

      Performs the * operation. Read more
      ","Mul","cu29::prelude::CuTime"],["
      §

      impl Ord for CuDuration

      §

      fn cmp(&self, other: &CuDuration) -> Ordering

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

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

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

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

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

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

      Restrict a value to a certain interval. Read more
      ","Ord","cu29::prelude::CuTime"],["
      §

      impl PartialEq for CuDuration

      §

      fn eq(&self, other: &CuDuration) -> bool

      Tests for self and other values to be equal, and is used by ==.
      1.0.0 · Source§

      fn ne(&self, other: &Rhs) -> bool

      Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
      ","PartialEq","cu29::prelude::CuTime"],["
      §

      impl PartialOrd for CuDuration

      §

      fn partial_cmp(&self, other: &CuDuration) -> Option<Ordering>

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

      fn lt(&self, other: &Rhs) -> bool

      Tests less than (for self and other) and is used by the < operator. Read more
      1.0.0 · Source§

      fn le(&self, other: &Rhs) -> bool

      Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
      1.0.0 · Source§

      fn gt(&self, other: &Rhs) -> bool

      Tests greater than (for self and other) and is used by the >\noperator. Read more
      1.0.0 · Source§

      fn ge(&self, other: &Rhs) -> bool

      Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
      ","PartialOrd","cu29::prelude::CuTime"],["
      §

      impl Serialize for CuDuration

      §

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

      Serialize this value into the given Serde serializer. Read more
      ","Serialize","cu29::prelude::CuTime"],["
      §

      impl Sub for CuDuration

      §

      type Output = CuDuration

      The resulting type after applying the - operator.
      §

      fn sub(self, rhs: CuDuration) -> <CuDuration as Sub>::Output

      Performs the - operation. Read more
      ","Sub","cu29::prelude::CuTime"],["
      §

      impl Copy for CuDuration

      ","Copy","cu29::prelude::CuTime"],["
      §

      impl Eq for CuDuration

      ","Eq","cu29::prelude::CuTime"],["
      §

      impl StructuralPartialEq for CuDuration

      ","StructuralPartialEq","cu29::prelude::CuTime"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/cu29_clock/struct.CuDuration.js b/type.impl/cu29_clock/struct.CuDuration.js index 823302ba0..8a095360d 100644 --- a/type.impl/cu29_clock/struct.CuDuration.js +++ b/type.impl/cu29_clock/struct.CuDuration.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["cu29_clock",[["
      Source§

      impl Add for CuDuration

      Source§

      type Output = CuDuration

      The resulting type after applying the + operator.
      Source§

      fn add(self, rhs: Self) -> Self::Output

      Performs the + operation. Read more
      ","Add","cu29_clock::CuTime"],["
      Source§

      impl AddAssign for CuDuration

      Source§

      fn add_assign(&mut self, rhs: Self)

      Performs the += operation. Read more
      ","AddAssign","cu29_clock::CuTime"],["
      Source§

      impl<'de> BorrowDecode<'de> for CuDuration

      Source§

      fn borrow_decode<D: BorrowDecoder<'de>>(\n decoder: &mut D,\n) -> Result<Self, DecodeError>

      Attempt to decode this type with the given BorrowDecode.
      ","BorrowDecode<'de>","cu29_clock::CuTime"],["
      Source§

      impl Clone for CuDuration

      Source§

      fn clone(&self) -> CuDuration

      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
      ","Clone","cu29_clock::CuTime"],["
      Source§

      impl CuDuration

      Source

      pub const MIN: CuDuration = _

      Source

      pub const MAX: CuDuration = _

      Source

      pub fn max(&self, p0: CuDuration) -> CuDuration

      Source

      pub fn min(&self, p0: CuDuration) -> CuDuration

      ",0,"cu29_clock::CuTime"],["
      Source§

      impl Debug for CuDuration

      Source§

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

      Formats the value using the given formatter. Read more
      ","Debug","cu29_clock::CuTime"],["
      Source§

      impl Decode for CuDuration

      Source§

      fn decode<D: Decoder>(decoder: &mut D) -> Result<Self, DecodeError>

      Attempt to decode this type with the given Decode.
      ","Decode","cu29_clock::CuTime"],["
      Source§

      impl Default for CuDuration

      Source§

      fn default() -> CuDuration

      Returns the “default value” for a type. Read more
      ","Default","cu29_clock::CuTime"],["
      Source§

      impl<'de> Deserialize<'de> for CuDuration

      Source§

      fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
      where\n __D: Deserializer<'de>,

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","cu29_clock::CuTime"],["
      Source§

      impl Display for CuDuration

      Source§

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

      Formats the value using the given formatter. Read more
      ","Display","cu29_clock::CuTime"],["
      Source§

      impl<T> Div<T> for CuDuration
      where\n T: Into<u64>,

      Source§

      type Output = CuDuration

      The resulting type after applying the / operator.
      Source§

      fn div(self, rhs: T) -> Self

      Performs the / operation. Read more
      ","Div","cu29_clock::CuTime"],["
      Source§

      impl Encode for CuDuration

      Source§

      fn encode<E: Encoder>(&self, encoder: &mut E) -> Result<(), EncodeError>

      Encode a given type.
      ","Encode","cu29_clock::CuTime"],["
      Source§

      impl From<Duration> for CuDuration

      bridge the API with standard Durations.

      \n
      Source§

      fn from(duration: Duration) -> Self

      Converts to this type from the input type.
      ","From","cu29_clock::CuTime"],["
      Source§

      impl From<u64> for CuDuration

      Source§

      fn from(duration: u64) -> Self

      Converts to this type from the input type.
      ","From","cu29_clock::CuTime"],["
      Source§

      impl<T> Mul<T> for CuDuration
      where\n T: Into<u64>,

      Source§

      type Output = CuDuration

      The resulting type after applying the * operator.
      Source§

      fn mul(self, rhs: T) -> CuDuration

      Performs the * operation. Read more
      ","Mul","cu29_clock::CuTime"],["
      Source§

      impl Ord for CuDuration

      Source§

      fn cmp(&self, other: &CuDuration) -> Ordering

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

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

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

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

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

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

      Restrict a value to a certain interval. Read more
      ","Ord","cu29_clock::CuTime"],["
      Source§

      impl PartialEq for CuDuration

      Source§

      fn eq(&self, other: &CuDuration) -> bool

      Tests for self and other values to be equal, and is used by ==.
      1.0.0 · Source§

      fn ne(&self, other: &Rhs) -> bool

      Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
      ","PartialEq","cu29_clock::CuTime"],["
      Source§

      impl PartialOrd for CuDuration

      Source§

      fn partial_cmp(&self, other: &CuDuration) -> Option<Ordering>

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

      fn lt(&self, other: &Rhs) -> bool

      Tests less than (for self and other) and is used by the < operator. Read more
      1.0.0 · Source§

      fn le(&self, other: &Rhs) -> bool

      Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
      1.0.0 · Source§

      fn gt(&self, other: &Rhs) -> bool

      Tests greater than (for self and other) and is used by the >\noperator. Read more
      1.0.0 · Source§

      fn ge(&self, other: &Rhs) -> bool

      Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
      ","PartialOrd","cu29_clock::CuTime"],["
      Source§

      impl Serialize for CuDuration

      Source§

      fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
      where\n __S: Serializer,

      Serialize this value into the given Serde serializer. Read more
      ","Serialize","cu29_clock::CuTime"],["
      Source§

      impl Sub for CuDuration

      Source§

      type Output = CuDuration

      The resulting type after applying the - operator.
      Source§

      fn sub(self, rhs: Self) -> Self::Output

      Performs the - operation. Read more
      ","Sub","cu29_clock::CuTime"],["
      Source§

      impl Copy for CuDuration

      ","Copy","cu29_clock::CuTime"],["
      Source§

      impl Eq for CuDuration

      ","Eq","cu29_clock::CuTime"],["
      Source§

      impl StructuralPartialEq for CuDuration

      ","StructuralPartialEq","cu29_clock::CuTime"]]]]); + var type_impls = Object.fromEntries([["cu29_clock",[["
      Source§

      impl Add for CuDuration

      Source§

      type Output = CuDuration

      The resulting type after applying the + operator.
      Source§

      fn add(self, rhs: Self) -> Self::Output

      Performs the + operation. Read more
      ","Add","cu29_clock::CuTime"],["
      Source§

      impl AddAssign for CuDuration

      Source§

      fn add_assign(&mut self, rhs: Self)

      Performs the += operation. Read more
      ","AddAssign","cu29_clock::CuTime"],["
      Source§

      impl<'de> BorrowDecode<'de> for CuDuration

      Source§

      fn borrow_decode<D: BorrowDecoder<'de>>(\n decoder: &mut D,\n) -> Result<Self, DecodeError>

      Attempt to decode this type with the given BorrowDecode.
      ","BorrowDecode<'de>","cu29_clock::CuTime"],["
      Source§

      impl Clone for CuDuration

      Source§

      fn clone(&self) -> CuDuration

      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
      ","Clone","cu29_clock::CuTime"],["
      Source§

      impl CuDuration

      Source

      pub const MIN: CuDuration = _

      Source

      pub const MAX: CuDuration = _

      Source

      pub fn max(&self, p0: CuDuration) -> CuDuration

      Source

      pub fn min(&self, p0: CuDuration) -> CuDuration

      ",0,"cu29_clock::CuTime"],["
      Source§

      impl Debug for CuDuration

      Source§

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

      Formats the value using the given formatter. Read more
      ","Debug","cu29_clock::CuTime"],["
      Source§

      impl Decode for CuDuration

      Source§

      fn decode<D: Decoder>(decoder: &mut D) -> Result<Self, DecodeError>

      Attempt to decode this type with the given Decode.
      ","Decode","cu29_clock::CuTime"],["
      Source§

      impl Default for CuDuration

      Source§

      fn default() -> CuDuration

      Returns the “default value” for a type. Read more
      ","Default","cu29_clock::CuTime"],["
      Source§

      impl<'de> Deserialize<'de> for CuDuration

      Source§

      fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
      where\n __D: Deserializer<'de>,

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","cu29_clock::CuTime"],["
      Source§

      impl Display for CuDuration

      Source§

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

      Formats the value using the given formatter. Read more
      ","Display","cu29_clock::CuTime"],["
      Source§

      impl<T> Div<T> for CuDuration
      where\n T: Into<u64>,

      Source§

      type Output = CuDuration

      The resulting type after applying the / operator.
      Source§

      fn div(self, rhs: T) -> Self

      Performs the / operation. Read more
      ","Div","cu29_clock::CuTime"],["
      Source§

      impl Encode for CuDuration

      Source§

      fn encode<E: Encoder>(&self, encoder: &mut E) -> Result<(), EncodeError>

      Encode a given type.
      ","Encode","cu29_clock::CuTime"],["
      Source§

      impl From<Duration> for CuDuration

      bridge the API with standard Durations.

      \n
      Source§

      fn from(duration: Duration) -> Self

      Converts to this type from the input type.
      ","From","cu29_clock::CuTime"],["
      Source§

      impl From<u64> for CuDuration

      Source§

      fn from(duration: u64) -> Self

      Converts to this type from the input type.
      ","From","cu29_clock::CuTime"],["
      Source§

      impl<T> Mul<T> for CuDuration
      where\n T: Into<u64>,

      Source§

      type Output = CuDuration

      The resulting type after applying the * operator.
      Source§

      fn mul(self, rhs: T) -> CuDuration

      Performs the * operation. Read more
      ","Mul","cu29_clock::CuTime"],["
      Source§

      impl Ord for CuDuration

      Source§

      fn cmp(&self, other: &CuDuration) -> Ordering

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

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

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

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

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

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

      Restrict a value to a certain interval. Read more
      ","Ord","cu29_clock::CuTime"],["
      Source§

      impl PartialEq for CuDuration

      Source§

      fn eq(&self, other: &CuDuration) -> bool

      Tests for self and other values to be equal, and is used by ==.
      1.0.0 · Source§

      fn ne(&self, other: &Rhs) -> bool

      Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
      ","PartialEq","cu29_clock::CuTime"],["
      Source§

      impl PartialOrd for CuDuration

      Source§

      fn partial_cmp(&self, other: &CuDuration) -> Option<Ordering>

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

      fn lt(&self, other: &Rhs) -> bool

      Tests less than (for self and other) and is used by the < operator. Read more
      1.0.0 · Source§

      fn le(&self, other: &Rhs) -> bool

      Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
      1.0.0 · Source§

      fn gt(&self, other: &Rhs) -> bool

      Tests greater than (for self and other) and is used by the >\noperator. Read more
      1.0.0 · Source§

      fn ge(&self, other: &Rhs) -> bool

      Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
      ","PartialOrd","cu29_clock::CuTime"],["
      Source§

      impl Serialize for CuDuration

      Source§

      fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
      where\n __S: Serializer,

      Serialize this value into the given Serde serializer. Read more
      ","Serialize","cu29_clock::CuTime"],["
      Source§

      impl Sub for CuDuration

      Source§

      type Output = CuDuration

      The resulting type after applying the - operator.
      Source§

      fn sub(self, rhs: Self) -> Self::Output

      Performs the - operation. Read more
      ","Sub","cu29_clock::CuTime"],["
      Source§

      impl Copy for CuDuration

      ","Copy","cu29_clock::CuTime"],["
      Source§

      impl Eq for CuDuration

      ","Eq","cu29_clock::CuTime"],["
      Source§

      impl StructuralPartialEq for CuDuration

      ","StructuralPartialEq","cu29_clock::CuTime"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else {