pub fn slice_to(&self, len: usize) -> Slice {
        if self.len < len {
            panic!("Sliced past the end of an appendbuf::Slice,
                   the length was {:?} and the desired length was {:?}",
                   self.len, len);
        }

        self.allocinfo().increment();

        Slice {
            alloc: self.alloc,
            offset: self.offset,
            len: len
        }
    }
/// Get a subslice of the first len elements.
Get a subslice of the first len elements.
Get a subslice of the first len elements .
pub fn slice_to(&self, len: usize) -> Slice {
        if self.len < len {
            panic!("Sliced past the end of an appendbuf::Slice,
                   the length was {:?} and the desired length was {:?}",
                   self.len, len);
        }
        self.allocinfo().increment();
        Slice {
            alloc: self.alloc,
            offset: self.offset,
            len: len
        }
    }
pub fn slice_to ( & self , len : usize ) -> Slice { if self . len < len { panic ! ( " " self len len ) ; } self . allocinfo ( ) . increment ( ) ; Slice { alloc : self . alloc , offset : self . offset , len : len } }
Get a subslice of the first len elements.
Get a subslice of the first len elements .
&self
len
usize