pub struct Scg<T> { /* private fields */ }
Implementations§
Source§impl<T> Scg<T>
impl<T> Scg<T>
pub fn new() -> Self
pub fn clear(&mut self)
pub fn get(&self, index: NodeIndex) -> Option<&Node>
pub fn get_value(&self, index: NodeIndex) -> Option<&T>
pub fn constant(&mut self, name: impl ToString, data: T) -> NodeIndex
pub fn operation(
&mut self,
inputs: impl IntoIterator<Item = NodeIndex>,
operation: impl Into<Op>,
result: Option<T>,
) -> Result<NodeIndex>where
T: Default,
pub fn variable(&mut self, value: T) -> NodeIndex
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Scg<T>
impl<T> RefUnwindSafe for Scg<T>where
T: RefUnwindSafe,
impl<T> Send for Scg<T>where
T: Send,
impl<T> Sync for Scg<T>where
T: Sync,
impl<T> Unpin for Scg<T>where
T: Unpin,
impl<T> UnwindSafe for Scg<T>where
T: RefUnwindSafe + UnwindSafe,
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