Mojo struct
FileDescriptor
File descriptor of a file.
Fieldsβ
- βvalue (
Int
): The underlying value of the file descriptor.
Implemented traitsβ
AnyType
,
Copyable
,
Movable
Methodsβ
__init__
β
__init__(inout self: Self)
Default constructor to stdout.
__init__(inout self: Self, x: Int)
Constructs the file descriptor from an integer.
Args:
- βx (
Int
): The integer.
__init__(inout self: Self, f: FileHandle)
Constructs the file descriptor from a file handle.
Args:
- βf (
FileHandle
): The file handle.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?