fn align_to(self, alignment: Self) -> Self {

        // `!` operator will make 1 to 0 or make 0 to 1 for each bit for any integer type.
        (self + alignment - Self::INTEGER_UNIT) & !(alignment - Self::INTEGER_UNIT)
    }
/// align an integer to a specific alignment.
///
/// `alignment` must be the power of 2.
///
/// # Examples
///
/// ```
/// use crate::utils::IntegerAlignable;
///
/// assert_eq!(127.align_to(128), 128);
/// assert_eq!(129.align_to(128), 256);
/// ```
align an integer to a specific alignment.
`alignment` must be the power of 2.
align an integer to a specific alignment . ` alignment ` must be the power of 2 .
fn align_to(self, alignment: Self) -> Self {
        // `!` operator will make 1 to 0 or make 0 to 1 for each bit for any integer type.
        (self + alignment - Self::INTEGER_UNIT) & !(alignment - Self::INTEGER_UNIT)
    }
fn align_to ( self , alignment : Self ) -> Self { // `!` operator will make 1 to 0 or make 0 to 1 for each bit for any integer type. ( self + alignment - Self :: INTEGER_UNIT ) & ! ( alignment - Self :: INTEGER_UNIT ) }
align an integer to a specific alignment.
align an integer to a specific alignment .
self
alignment
Self
self
alignment
Self
examples
```
use crate::utils::IntegerAlignable.


` ` ` use crate :: utils :: IntegerAlignable .