/// Construct a new items manager.
Construct a new items manager.
Construct a new items manager .
pub(crate) fn new(item: Item, gen: Gen) -> Self {
        Self {
            inner: Rc::new(RefCell::new(Inner {
                id: item.last().and_then(ComponentRef::id).unwrap_or_default(),
                item,
                ids: Vec::new(),
                gen,
            })),
        }
    }
pub ( crate ) fn new ( item : Item , gen : Gen ) -> Self { Self { inner : Rc :: new ( RefCell :: new ( Inner { id : item . last ( ) . and_then ( ComponentRef :: id ) . unwrap_or_default ( ) , item , ids : Vec :: new ( ) , gen , } ) ) , } }
Construct a new items manager.
Construct a new items manager .
item
Item
gen
Gen