notcurses_align

Function notcurses_align 

Source
pub fn notcurses_align(
    avail_u: u32,
    align: impl Into<NcAlign_u32>,
    u: u32,
) -> NcResult_i32
Expand description

Returns the offset into avail_u at which u ought be output given the requirements of align.

Returns -NcResult_i32::MAX if NCALIGN_UNALIGNED or invalid align.

Method: Nc.align().