pub struct WeightsBlock { /* private fields */ }Expand description
An alphabetically ordered and deduplicated list of transfer multiplicities.
Implementations§
Source§impl WeightsBlock
impl WeightsBlock
pub fn new_causes( size: Literal, post_nodes: Polynomial, pre_set: Polynomial, ) -> Result<Self, Box<dyn Error>>
pub fn new_effects( size: Literal, pre_nodes: Polynomial, post_set: Polynomial, ) -> Result<Self, Box<dyn Error>>
Trait Implementations§
Source§impl Clone for WeightsBlock
impl Clone for WeightsBlock
Source§fn clone(&self) -> WeightsBlock
fn clone(&self) -> WeightsBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Compilable for WeightsBlock
impl Compilable for WeightsBlock
Source§impl Debug for WeightsBlock
impl Debug for WeightsBlock
Source§impl Default for WeightsBlock
impl Default for WeightsBlock
Source§fn default() -> WeightsBlock
fn default() -> WeightsBlock
Returns the “default value” for a type. Read more
Source§impl From<WeightsBlock> for CesFileBlock
impl From<WeightsBlock> for CesFileBlock
Source§fn from(weights: WeightsBlock) -> Self
fn from(weights: WeightsBlock) -> Self
Converts to this type from the input type.
Source§impl FromStr for WeightsBlock
impl FromStr for WeightsBlock
Source§type Err = ParseError<usize, String, AscesisError>
type Err = ParseError<usize, String, AscesisError>
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<Self, ParseError<usize, String, AscesisError>>
fn from_str(s: &str) -> Result<Self, ParseError<usize, String, AscesisError>>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for WeightsBlock
impl PartialEq for WeightsBlock
impl Eq for WeightsBlock
impl StructuralPartialEq for WeightsBlock
Auto Trait Implementations§
impl Freeze for WeightsBlock
impl RefUnwindSafe for WeightsBlock
impl Send for WeightsBlock
impl Sync for WeightsBlock
impl Unpin for WeightsBlock
impl UnwindSafe for WeightsBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
Source§unsafe fn part_ptr(
ptr: *const <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::Ptr
unsafe fn part_ptr( ptr: *const <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::Ptr
Given a constant pointer to a target, produce a constant pointer to a part of it.
Source§unsafe fn part_ptr_mut(
ptr: *mut <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::PtrMut
unsafe fn part_ptr_mut( ptr: *mut <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::PtrMut
Given a mutable pointer to a target, produce a mutable pointer to a part of it.