Struct Connection
pub struct Connection<S: GraphSample = f32> {
pub source: Source,
pub destination: Destination,
pub gain: S,
}Expand description
Parallel connections add in declaration order. Gains must be finite.
Fields§
§source: Source§destination: Destination§gain: STrait Implementations§
§impl<S: Clone + GraphSample> Clone for Connection<S>
impl<S: Clone + GraphSample> Clone for Connection<S>
§fn clone(&self) -> Connection<S>
fn clone(&self) -> Connection<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<S: Copy + GraphSample> Copy for Connection<S>
§impl<S: Debug + GraphSample> Debug for Connection<S>
impl<S: Debug + GraphSample> Debug for Connection<S>
§impl<S: PartialEq + GraphSample> PartialEq for Connection<S>
impl<S: PartialEq + GraphSample> PartialEq for Connection<S>
impl<S: PartialEq + GraphSample> StructuralPartialEq for Connection<S>
Auto Trait Implementations§
impl<S> Freeze for Connection<S>where
S: Freeze,
impl<S> RefUnwindSafe for Connection<S>where
S: RefUnwindSafe,
impl<S> Send for Connection<S>
impl<S> Sync for Connection<S>where
S: Sync,
impl<S> Unpin for Connection<S>where
S: Unpin,
impl<S> UnsafeUnpin for Connection<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Connection<S>where
S: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more