Adds a node that extracts a sub-array corresponding to a given slice from the array associated with the node. Applies [Graph::get_slice] to the parent graph, `this` node and `slice`. # Example ``` # use ciphercore_base::graphs::{create_context, SliceElement}; # use ciphercore_base::data_types::{INT32, array_type}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let t = arr
(&self, slice: Slice)
| 1001 | /// let n2 = n1.get_slice(slice).unwrap(); |
| 1002 | /// ``` |
| 1003 | pub fn get_slice(&self, slice: Slice) -> Result<Node> { |
| 1004 | self.get_graph().get_slice(self.clone(), slice) |
| 1005 | } |
| 1006 | |
| 1007 | /// Adds a node to the parent graph that reshapes a value associated with the node to a given compatible type. |
| 1008 | /// |