[−][src]Struct rc_dlist_deque::dlist::Node1
Node on a simple list.
For when each node is only on one list.
T is your own data. You will often want T to be a Cell or a
RefCell, since you won't generally have mutable access to it.
Normally you will refer to nodes via Pointer1,
which contains an Rc<Node1>, or via Cursor1,
which is Option<Pointer1<_>>
struct Node1<T>
Methods
impl<T> Node1<T>[src]
pub fn new(data: T) -> Self[src]
Wraps up data into a node struct.
You'll normally want pointer instead.
pub fn pointer(data: T) -> Pointer1<T>[src]
Wraps up data into a node and an Rc,
giving a pointer (a reference) ready to be put onto a list.
Trait Implementations
impl<T> Default for Node1<T> where
T: Default, [src]
T: Default,
impl<T> Deref for Node1<T>[src]
impl<T> DerefMut for Node1<T>[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Node1<T>
impl<T> !Send for Node1<T>
impl<T> !Sync for Node1<T>
impl<T> Unpin for Node1<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for Node1<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,