pub fn clear(&self) -> Result<(), String> {
    if unsafe { SDL_RenderClear(self.ptr) } == 0 {
      Ok(())
    } else {
      Err(get_error())
    }
  }
/// Clears the render target with the current draw color.
Clears the render target with the current draw color.
Clears the render target with the current draw color .
pub fn clear(&self) -> Result<(), String> {
    if unsafe { SDL_RenderClear(self.ptr) } == 0 {
      Ok(())
    } else {
      Err(get_error())
    }
  }
pub fn clear ( & self ) -> Result < ( ) , String > { if unsafe { SDL_RenderClear ( self . ptr ) } == 0 { Ok ( ( ) ) } else { Err ( get_error ( ) ) } }
Clears the render target with the current draw color.
Clears the render target with the current draw color .
&self
&self