]>
git.proxmox.com Git - rustc.git/blob - vendor/windows-bindgen/src/extensions/mod/Win32/Foundation/BOOLEAN.rs
3 pub fn as_bool(self) -> bool
{
7 pub fn ok(self) -> ::windows
::core
::Result
<()> {
11 Err(::windows
::core
::Error
::from_win32())
21 pub fn expect(self, msg
: &str) {
22 self.ok().expect(msg
);
25 impl ::core
::convert
::From
<BOOLEAN
> for bool
{
26 fn from(value
: BOOLEAN
) -> Self {
30 impl ::core
::convert
::From
<&BOOLEAN
> for bool
{
31 fn from(value
: &BOOLEAN
) -> Self {
35 impl ::core
::convert
::From
<bool
> for BOOLEAN
{
36 fn from(value
: bool
) -> Self {
44 impl ::core
::convert
::From
<&bool
> for BOOLEAN
{
45 fn from(value
: &bool
) -> Self {
49 impl ::core
::cmp
::PartialEq
<bool
> for BOOLEAN
{
50 fn eq(&self, other
: &bool
) -> bool
{
51 self.as_bool() == *other
54 impl ::core
::cmp
::PartialEq
<BOOLEAN
> for bool
{
55 fn eq(&self, other
: &BOOLEAN
) -> bool
{
56 *self == other
.as_bool()
59 impl ::core
::ops
::Not
for BOOLEAN
{
61 fn not(self) -> Self::Output
{