/// A node in a data structure.
////// This structure represents a single node that stores a value of type `T`
/// and optionally links to the next node in the list.
pubstructNode<T>{/// The value stored in this node.
pubvalue: T,
/// The next node in the structure
/// or `None` if this is the last node.
pubnext:Option<Box<Node<T>>>,
}impl<T>Node<T>{/// Creates a new node with the given value.
pubfnnew(value: T, next:Option<Box<Node<T>>>)->Self{
Node {
value,
next,}}}