pub(crate) unsafe fn push(v: &mut Vec<u8>, x: u8) {
    let len = v.len();
    debug_assert!(len < v.capacity());
    // SAFETY: The caller must ensure that the capacity is enough.
    unsafe {
        *v.as_mut_ptr().add(len) = x;
        v.set_len(len + 1);
    }
}
/// Pushes a raw byte without checking bounds.
///
/// # Safety
///
/// `v.len() + 1` must not exceed `v.capacity()`.
Pushes a raw byte without checking bounds.
Pushes a raw byte without checking bounds .
pub(crate) unsafe fn push(v: &mut Vec<u8>, x: u8) {
    let len = v.len();
    debug_assert!(len < v.capacity());
    // SAFETY: The caller must ensure that the capacity is enough.
    unsafe {
        *v.as_mut_ptr().add(len) = x;
        v.set_len(len + 1);
    }
}
pub ( crate ) unsafe fn push ( v : & mut Vec < u8 > , x : u8 ) { let len = v . len ( ) ; debug_assert ! ( len v capacity ( ) ) ; // SAFETY: The caller must ensure that the capacity is enough. unsafe { * v . as_mut_ptr ( ) . add ( len ) = x ; v . set_len ( len + 1 ) ; } }
Pushes a raw byte without checking bounds.
Pushes a raw byte without checking bounds .
v
&mut Vec<u8>
x
u8
v
&mut Vec<u8>
x
u8
safety
`v.len() + 1` must not exceed `v.capacity()`.
` v . len () + 1 ` must not exceed ` v . capacity () ` .