Skip to content

Bool

Bool

from_bytes classmethod

from_bytes(bytes_: bytes, ver: Version = Version(0)) -> bool

from_file classmethod

from_file(filepath: str) -> bool

from_stream classmethod

from_stream(value: ByteStream, ver: Version = Version(0)) -> bool

to_bytes classmethod

to_bytes(value: bool) -> bytes

to_file classmethod

to_file(filepath: str, value: bool)

bool8

Bases: Bool

[De]serialize a bool by reading a num: u8 and evaluating num != 0

bool16

Bases: Bool

[De]serialize a bool by reading a num: u16 and evaluating num != 0

bool32

Bases: Bool

[De]serialize a bool by reading a num: u32 and evaluating num != 0

bool64

Bases: Bool

[De]serialize a bool by reading a num: u64 and evaluating num != 0

bool128

Bases: Bool

[De]serialize a bool by reading a num: u128 and evaluating num != 0