InputSet

Struct InputSet 

Source
pub struct InputSet<I: Input> {
    pub inputs: Vec<Vec<I>>,
}
Expand description

Struct that holds the inputs.

Fields§

§inputs: Vec<Vec<I>>

The inputs. The inputs are grouped by size.

Implementations§

Source§

impl<I: Input + Serialize> InputSet<I>

Source

pub fn serialize_json(&self, filename: &str)

Serializes the input set in a json file. The file will be created if it doesn’t exist, otherwise it will be overwritten.

§Arguments
  • filename - The name of the file to be created.
§Panics
  • Panics if the file cannot be created.
  • Panics if the input set cannot be serialized.

Trait Implementations§

Source§

impl<I> Serialize for InputSet<I>
where I: Serialize + Input,

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<I> Freeze for InputSet<I>

§

impl<I> RefUnwindSafe for InputSet<I>
where I: RefUnwindSafe,

§

impl<I> Send for InputSet<I>
where I: Send,

§

impl<I> Sync for InputSet<I>
where I: Sync,

§

impl<I> Unpin for InputSet<I>
where I: Unpin,

§

impl<I> UnwindSafe for InputSet<I>
where I: UnwindSafe,

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.

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V