rename function to ...try to indicate possible null return
This commit is contained in:
		
							parent
							
								
									b4730ffdf3
								
							
						
					
					
						commit
						7a836783e1
					
				
					 9 changed files with 82 additions and 83 deletions
				
			
		| 
						 | 
				
			
			@ -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,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue