more type name based naming
This commit is contained in:
		
							parent
							
								
									8f13ba61f0
								
							
						
					
					
						commit
						8116375fd0
					
				
					 27 changed files with 787 additions and 750 deletions
				
			
		| 
						 | 
				
			
			@ -9,8 +9,8 @@ use servicepoint::{
 | 
			
		|||
};
 | 
			
		||||
use std::ptr::NonNull;
 | 
			
		||||
 | 
			
		||||
wrap_clone!(bitmap::Bitmap);
 | 
			
		||||
wrap_free!(bitmap::Bitmap);
 | 
			
		||||
wrap_clone!(Bitmap);
 | 
			
		||||
wrap_free!(Bitmap);
 | 
			
		||||
 | 
			
		||||
wrap_functions!(bitmap;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -105,8 +105,7 @@ wrap_functions!(bitmap;
 | 
			
		|||
    }
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(
 | 
			
		||||
    bitmap::Bitmap;
 | 
			
		||||
wrap_methods!(Bitmap;
 | 
			
		||||
 | 
			
		||||
    /// Gets the current value at the specified position.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -55,11 +55,10 @@ wrap_functions!(bitvec;
 | 
			
		|||
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
wrap_clone!(bitvec::DisplayBitVec);
 | 
			
		||||
wrap_free!(bitvec::DisplayBitVec);
 | 
			
		||||
wrap_clone!(DisplayBitVec);
 | 
			
		||||
wrap_free!(DisplayBitVec);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(
 | 
			
		||||
    bitvec::DisplayBitVec;
 | 
			
		||||
wrap_methods!(DisplayBitVec;
 | 
			
		||||
 | 
			
		||||
    /// Gets the value of a bit.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -71,11 +71,10 @@ wrap_functions!(brightnessgrid;
 | 
			
		|||
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
wrap_clone!(brightnessgrid::BrightnessGrid);
 | 
			
		||||
wrap_free!(brightnessgrid::BrightnessGrid);
 | 
			
		||||
wrap_clone!(BrightnessGrid);
 | 
			
		||||
wrap_free!(BrightnessGrid);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(
 | 
			
		||||
    brightnessgrid::BrightnessGrid;
 | 
			
		||||
wrap_methods!(BrightnessGrid;
 | 
			
		||||
 | 
			
		||||
    /// Gets the current value at the specified position.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,6 +36,7 @@ impl ByteSlice {
 | 
			
		|||
        unsafe { std::slice::from_raw_parts(self.start, self.length) }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #[allow(clippy::mut_from_ref, reason = "This is used to get a pointer from the C side")]
 | 
			
		||||
    pub(crate) unsafe fn as_slice_mut(&self) -> &mut [u8] {
 | 
			
		||||
        unsafe { std::slice::from_raw_parts_mut(self.start, self.length) }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -58,11 +58,10 @@ wrap_functions!(chargrid;
 | 
			
		|||
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
wrap_clone!(chargrid::CharGrid);
 | 
			
		||||
wrap_free!(chargrid::CharGrid);
 | 
			
		||||
wrap_clone!(CharGrid);
 | 
			
		||||
wrap_free!(CharGrid);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(
 | 
			
		||||
    chargrid::CharGrid;
 | 
			
		||||
wrap_methods!(CharGrid;
 | 
			
		||||
 | 
			
		||||
    /// Returns the current value at the specified position.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,11 +50,10 @@ wrap_functions!(cp437grid;
 | 
			
		|||
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
wrap_clone!(cp437grid::Cp437Grid);
 | 
			
		||||
wrap_free!(cp437grid::Cp437Grid);
 | 
			
		||||
wrap_clone!(Cp437Grid);
 | 
			
		||||
wrap_free!(Cp437Grid);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(
 | 
			
		||||
    cp437grid::Cp437Grid;
 | 
			
		||||
wrap_methods!(Cp437Grid;
 | 
			
		||||
    /// Gets the current value at the specified position.
 | 
			
		||||
    ///
 | 
			
		||||
    /// # Arguments
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue