pub struct CapacitiesBlock { /* private fields */ }Expand description
A map from nodes to their capacities.
Implementations§
Source§impl CapacitiesBlock
impl CapacitiesBlock
pub fn with_nodes( self, size: Literal, nodes: Polynomial, ) -> Result<Self, Box<dyn Error>>
Trait Implementations§
Source§impl Clone for CapacitiesBlock
impl Clone for CapacitiesBlock
Source§fn clone(&self) -> CapacitiesBlock
fn clone(&self) -> CapacitiesBlock
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 CapacitiesBlock
impl Compilable for CapacitiesBlock
Source§impl Debug for CapacitiesBlock
impl Debug for CapacitiesBlock
Source§impl Default for CapacitiesBlock
impl Default for CapacitiesBlock
Source§fn default() -> CapacitiesBlock
fn default() -> CapacitiesBlock
Returns the “default value” for a type. Read more
Source§impl From<CapacitiesBlock> for CesFileBlock
impl From<CapacitiesBlock> for CesFileBlock
Source§fn from(caps: CapacitiesBlock) -> Self
fn from(caps: CapacitiesBlock) -> Self
Converts to this type from the input type.
Source§impl FromStr for CapacitiesBlock
impl FromStr for CapacitiesBlock
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 CapacitiesBlock
impl PartialEq for CapacitiesBlock
impl Eq for CapacitiesBlock
impl StructuralPartialEq for CapacitiesBlock
Auto Trait Implementations§
impl Freeze for CapacitiesBlock
impl RefUnwindSafe for CapacitiesBlock
impl Send for CapacitiesBlock
impl Sync for CapacitiesBlock
impl Unpin for CapacitiesBlock
impl UnwindSafe for CapacitiesBlock
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.