The allyl cation has two contributing structures with a positive charge on the terminal carbon atoms. In the hybrid structure their charge is +. The full positive charge can also be depicted as delocalized among three carbon atoms.
The diborane molecule is described by contributing structures, each with electron-deficiency on different atoms. This reduces the electron-deficiency on each atom and stabilizes the molecule. Below are the contributing structures of an individual 3c-2e bond in diborane.