pub fn from_elem(value: bool, len: usize) -> Vob<usize> {
        let mut v = Vob {
            len,
            vec: vec![if value { !0 } else { 0 }; blocks_required::<usize>(len)],
        };
        v.mask_last_block();
        v
    }
/// Creates a Vob that holds `len` elements, setting each element to `value`.
///
/// # Examples
/// ```
/// use vob::Vob;
/// let v = Vob::from_elem(true, 2);
/// assert_eq!(v.len(), 2);
/// assert_eq!(v.get(0), Some(true));
/// ```
Creates a Vob that holds `len` elements, setting each element to `value`.
Creates a Vob that holds ` len ` elements setting each element to ` value ` .
pub fn from_elem(value: bool, len: usize) -> Vob<usize> {
        let mut v = Vob {
            len,
            vec: vec![if value { !0 } else { 0 }; blocks_required::<usize>(len)],
        };
        v.mask_last_block();
        v
    }
pub fn from_elem ( value : bool , len : usize ) -> Vob < usize > { let mut v = Vob { len , vec : vec ! [ if value { 0 } else { 0 } blocks_required usize ( len ) ] , } ; v . mask_last_block ( ) ; v }
Creates a Vob that holds `len` elements, setting each element to `value`.
Creates a Vob that holds ` len ` elements setting each element to ` value ` .
value
bool
len
usize
value
bool
len
usize
examples
None