mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Updated for latest changes to lifetimes
This commit is contained in:
@@ -285,7 +285,7 @@ pub enum KeyCode {
|
||||
out.write("
|
||||
}
|
||||
|
||||
type Cb<'self> = 'self |buf: &[u8]| -> bool;
|
||||
type Cb<'a> = 'a |buf: &[u8]| -> bool;
|
||||
impl IterBytes for KeyCode{
|
||||
|
||||
fn iter_bytes(&self, lsb0: bool, f: Cb) -> bool {
|
||||
|
||||
@@ -293,7 +293,7 @@ pub enum ScanCode {
|
||||
}
|
||||
|
||||
|
||||
type Cb<'self> = 'self |buf: &[u8]| -> bool;
|
||||
type Cb<'a> = 'a |buf: &[u8]| -> bool;
|
||||
impl IterBytes for ScanCode {
|
||||
|
||||
fn iter_bytes(&self, lsb0: bool, f: Cb) -> bool {
|
||||
|
||||
@@ -245,7 +245,7 @@ pub enum KeyCode {
|
||||
|
||||
}
|
||||
|
||||
type Cb<'self> = 'self |buf: &[u8]| -> bool;
|
||||
type Cb<'a> = 'a |buf: &[u8]| -> bool;
|
||||
impl IterBytes for KeyCode{
|
||||
|
||||
fn iter_bytes(&self, lsb0: bool, f: Cb) -> bool {
|
||||
|
||||
@@ -252,7 +252,7 @@ pub enum ScanCode {
|
||||
}
|
||||
|
||||
|
||||
type Cb<'self> = 'self |buf: &[u8]| -> bool;
|
||||
type Cb<'a> = 'a |buf: &[u8]| -> bool;
|
||||
impl IterBytes for ScanCode {
|
||||
|
||||
fn iter_bytes(&self, lsb0: bool, f: Cb) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user