Skip to content

Commit

Permalink
We can use Self, as long as the surrounding extern "..." (#846)
Browse files Browse the repository at this point in the history
block only has a single type declaration in it!
  • Loading branch information
Montel authored Feb 9, 2024
1 parent bf7c760 commit 4978415
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/cxx-qt-lib/src/core/qbytearray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ mod ffi {
type QByteArray = super::QByteArray;

/// Clears the contents of the byte array and makes it null.
fn clear(self: &mut QByteArray);
fn clear(self: &mut Self);
/// Returns true if the byte array has size 0; otherwise returns false.
#[rust_name = "is_empty"]
fn isEmpty(self: &QByteArray) -> bool;
fn isEmpty(self: &Self) -> bool;
/// Returns true if this byte array is lowercase, that is, if it's identical to its toLower() folding.
#[rust_name = "is_lower"]
fn isLower(self: &QByteArray) -> bool;
fn isLower(self: &Self) -> bool;
/// Returns true if this byte array is null; otherwise returns false.
#[rust_name = "is_null"]
fn isNull(self: &QByteArray) -> bool;
fn isNull(self: &Self) -> bool;
/// Returns true if this byte array is uppercase, that is, if it's identical to its toUpper() folding.
#[rust_name = "is_upper"]
fn isUpper(self: &QByteArray) -> bool;
fn isUpper(self: &Self) -> bool;
/// Releases any memory not required to store the array's data.
fn squeeze(self: &mut QByteArray);
fn squeeze(self: &mut Self);
}

#[namespace = "rust::cxxqtlib1"]
Expand Down

0 comments on commit 4978415

Please sign in to comment.