Added functions pop_char and shift_char to StrBuf struct along with appropriate unit tests, using the same test case as push_char.
Added functions pop_char and shift_char to StrBuf struct along with appropriate unit tests, using the same test case as push_char.

Changed StrBuf.shift_byte() that it no longer reallocates the buffer by just calling Vec.shift();

Added warning to shift_char()'s docs about it having to copy the whole buffer, as per the docs for
Vec.shift().

TheNeikos/rust,rprichard/rust,emk/rust,omasanori/rust,pczarn/rust,jroesch/rust,aturon/rust,aturon/rust,kimroen/rust,emk/rust,TheNeikos/rust,servo/rust,AerialX/rust,richo/rust,richo/rust,gifnksm/rust,P1start/rust,XMPPwocky/rust,reem/rust,0x73/rust,dwillmer/rust,graydon/rust,pshc/rust,huonw/rand,mihneadb/rust,quornian/rust,dwillmer/rust,KokaKiwi/rust,kwantam/rust,ejjeong/rust,rprichard/rust,andars/rust,aepsil0n/rust,TheNeikos/rust,jroesch/rust,krzysz00/rust,emk/rust,dwillmer/rust,untitaker/rust,zachwick/rust,untitaker/rust,pshc/rust,0x73/rust,carols10cents/rust,aidancully/rust,aepsil0n/rust,jashank/rust,nwin/rust,0x73/rust,kimroen/rust,l0kod/rust,miniupnp/rust,dwillmer/rust,retep998/rand,rprichard/rust,ejjeong/rust,mvdnes/rust,aneeshusa/rust,kimroen/rust,defuz/rust,philyoon/rust,rohitjoshi/rust,KokaKiwi/rust,gifnksm/rust,pczarn/rust,rprichard/rust,richo/rust,AerialX/rust-rt-minimal,gifnksm/rust,XMPPwocky/rust,nwin/rust,jroesch/rust,rohitjoshi/rust,mdinger/rust,jashank/rust,GBGamer/rust,sae-bom/rust,jashank/rust,TheNeikos/rust,zaeleus/rust,reem/rust,aidancully/rust,aepsil0n/rust,untitaker/rust,aidancully/rust,seanrivera/rust,defuz/rust,quornian/rust,pczarn/rust,mihneadb/rust,KokaKiwi/rust,ruud-v-a/rust,jbclements/rust,carols10cents/rust,mvdnes/rust,zachwick/rust,jbclements/rust,defuz/rust,jbclements/rust,jashank/rust,zachwick/rust,zubron/rust,zubron/rust,AerialX/rust,KokaKiwi/rust,mahkoh/rust,jbclements/rust,pelmers/rust,stepancheg/rust-ide-rust,zubron/rust,0x73/rust,aepsil0n/rust,vhbit/rust,GBGamer/rust,sae-bom/rust,graydon/rust,pshc/rust,zubron/rust,nwin/rust,rprichard/rust,aturon/rust,emk/rust,aneeshusa/rust,nham/rust,dinfuehr/rust,untitaker/rust,philyoon/rust,aneeshusa/rust,barosl/rust,miniupnp/rust,pelmers/rust,cllns/rust,rohitjoshi/rust,mihneadb/rust,AerialX/rust,GBGamer/rust,GBGamer/rust,robertg/rust,reem/rust,bombless/rust,arthurprs/rand,krzysz00/rust,P1start/rust,ktossell/rust,reem/rust,bombless/rust,andars/rust,ruud-v-a/rust,ebfull/rust,pshc/rust,servo/rust,kimroen/rust,philyoon/rust,jbclements/rust,krzysz00/rust,aturon/rust,quornian/rust,stepancheg/rust-ide-rust,rohitjoshi/rust,robertg/rust,erickt/rust,gifnksm/rust,andars/rust,stepancheg/rust-ide-rust,avdi/rust,aturon/rust,GrahamDennis/rand,mvdnes/rust,andars/rust,ejjeong/rust,emk/rust,sae-bom/rust,graydon/rust,carols10cents/rust,zachwick/rust,seanrivera/rust,jbclements/rust,robertg/rust,ktossell/rust,AerialX/rust-rt-minimal,cllns/rust,defuz/rust,zaeleus/rust,ktossell/rust,ebfull/rust,miniupnp/rust,victorvde/rust,zaeleus/rust,pshc/rust,ebfull/rust,victorvde/rust,andars/rust,stepancheg/rust-ide-rust,seanrivera/rust,ruud-v-a/rust,TheNeikos/rust,ejjeong/rust,erickt/rust,philyoon/rust,hauleth/rust,avdi/rust,ejjeong/rust,GBGamer/rust,aneeshusa/rust,bombless/rust-docs-chinese,zaeleus/rust,omasanori/rust,dinfuehr/rust,mvdnes/rust,bluss/rand,jashank/rust,quornian/rust,vhbit/rust,kwantam/rust,mihneadb/rust,zachwick/rust,krzysz00/rust,nham/rust,rohitjoshi/rust,vhbit/rust,vhbit/rust,aturon/rust,victorvde/rust,stepancheg/rust-ide-rust,hauleth/rust,jashank/rust,hauleth/rust,aepsil0n/rust,nwin/rust,nham/rust,AerialX/rust,servo/rust,victorvde/rust,dinfuehr/rust,jashank/rust,jbclements/rust,aneeshusa/rust,zaeleus/rust,pshc/rust,untitaker/rust,jroesch/rust,carols10cents/rust,victorvde/rust,dwillmer/rust,P1start/rust,reem/rust,ktossell/rust,dinfuehr/rust,miniupnp/rust,omasanori/rust,omasanori/rust,pelmers/rust,aepsil0n/rust,quornian/rust,krzysz00/rust,achanda/rand,l0kod/rust,nham/rust,robertg/rust,shepmaster/rand,nwin/rust,AerialX/rust-rt-minimal,erickt/rust,gifnksm/rust,seanrivera/rust,l0kod/rust,mihneadb/rust,erickt/rust,ktossell/rust,bombless/rust,bombless/rust,victorvde/rust,mvdnes/rust,AerialX/rust,GBGamer/rust,philyoon/rust,zubron/rust,ruud-v-a/rust,stepancheg/rust-ide-rust,AerialX/rust-rt-minimal,zubron/rust,pelmers/rust,miniupnp/rust,servo/rust,stepancheg/rust-ide-rust,KokaKiwi/rust,waynenilsen/rand,ebfull/rust,erickt/rust,AerialX/rust-rt-minimal,quornian/rust,mahkoh/rust,jashank/rust,carols10cents/rust,defuz/rust,P1start/rust,ebfull/rand,robertg/rust,untitaker/rust,graydon/rust,AerialX/rust-rt-minimal,KokaKiwi/rust,sae-bom/rust,l0kod/rust,bombless/rust,ejjeong/rust,l0kod/rust,l0kod/rust,barosl/rust,servo/rust,cllns/rust,mdinger/rust,dinfuehr/rust,cllns/rust,miniupnp/rust,krzysz00/rust,kimroen/rust,miniupnp/rust,barosl/rust,barosl/rust,miniupnp/rust,pczarn/rust,cllns/rust,nham/rust,gifnksm/rust,kwantam/rust,nwin/rust,pczarn/rust,avdi/rust,avdi/rust,defuz/rust,l0kod/rust,jroesch/rust,pshc/rust,pelmers/rust,barosl/rust,jbclements/rust,XMPPwocky/rust,hauleth/rust,mihneadb/rust,aidancully/rust,kwantam/rust,vhbit/rust,carols10cents/rust,ruud-v-a/rust,avdi/rust,seanrivera/rust,servo/rust,sae-bom/rust,cllns/rust,richo/rust,omasanori/rust,nham/rust,mdinger/rust,nwin/rust,dinfuehr/rust,kwantam/rust,mdinger/rust,GBGamer/rust,erickt/rust,zubron/rust,ebfull/rust,erickt/rust,vhbit/rust,jroesch/rust,nham/rust,ebfull/rust,vhbit/rust,richo/rust,kimroen/rust,mahkoh/rust,pczarn/rust,0x73/rust,seanrivera/rust,vhbit/rust,AerialX/rust,richo/rust,P1start/rust,omasanori/rust,servo/rust,mahkoh/rust,ruud-v-a/rust,emk/rust,bombless/rust,dwillmer/rust,kwantam/rust,quornian/rust,dwillmer/rust,avdi/rust,dwillmer/rust,andars/rust,aneeshusa/rust,aidancully/rust,barosl/rust,philyoon/rust,XMPPwocky/rust,reem/rust,graydon/rust,jroesch/rust,mdinger/rust,barosl/rust,l0kod/rust,0x73/rust,robertg/rust,jbclements/rust,bhickey/rand,pczarn/rust,aidancully/rust,zaeleus/rust,ktossell/rust,pelmers/rust,P1start/rust,mvdnes/rust,XMPPwocky/rust,nwin/rust,zachwick/rust,emk/rust,mahkoh/rust,hauleth/rust,hauleth/rust,zubron/rust,sae-bom/rust,ktossell/rust,P1start/rust,XMPPwocky/rust,GBGamer/rust,pshc/rust,TheNeikos/rust,graydon/rust,0x73/rust,mahkoh/rust,rprichard/rust,mdinger/rust,jroesch/rust,rohitjoshi/rust,kimroen/rust,aturon/rust