rename function to ...try to indicate possible null return

This commit is contained in:
Vinzenz Schroeter 2025-06-22 12:59:13 +02:00
parent b4730ffdf3
commit 7a836783e1
9 changed files with 82 additions and 83 deletions

View file

@ -89,7 +89,7 @@ wrap_functions!(bitmap;
/// The provided [Bitmap] gets consumed.
///
/// Returns NULL in case of an error.
fn into_packet(
fn try_into_packet(
bitmap: NonNull<Bitmap>,
x: usize,
y: usize,

View file

@ -40,7 +40,7 @@ wrap_functions!(associate DisplayBitVec;
/// The provided [DisplayBitVec] gets consumed.
///
/// Returns NULL in case of an error.
fn into_packet(
fn try_into_packet(
bitvec: NonNull<DisplayBitVec>,
offset: usize,
operation: BinaryOperation,

View file

@ -59,7 +59,7 @@ wrap_functions!(associate BrightnessGrid;
/// The provided [BrightnessGrid] gets consumed.
///
/// Returns NULL in case of an error.
fn into_packet(
fn try_into_packet(
grid: NonNull<BrightnessGrid>,
x: usize,
y: usize,

View file

@ -47,7 +47,7 @@ wrap_functions!(associate CharGrid;
/// The provided [CharGrid] gets consumed.
///
/// Returns NULL in case of an error.
fn into_packet(
fn try_into_packet(
grid: NonNull<CharGrid>,
x: usize,
y: usize,

View file

@ -37,7 +37,7 @@ wrap_functions!(cp437grid;
/// The provided [Cp437Grid] gets consumed.
///
/// Returns NULL in case of an error.
fn into_packet(
fn try_into_packet(
grid: NonNull<Cp437Grid>,
x: usize,
y: usize,