pub enum SizeHint {
ProbablySmall,
UnknownSize,
}Expand description
bun.sys.File.SizeHint — pre-reserve hint for read_to_end_with_array_list.
Mirrors Zig’s enum { probably_small, unknown_size } (File.zig:298).
Variants§
ProbablySmall
Reserve a small fixed buffer (64B).
UnknownSize
fstat() the fd to pre-size the buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizeHint
impl RefUnwindSafe for SizeHint
impl Send for SizeHint
impl Sync for SizeHint
impl Unpin for SizeHint
impl UnsafeUnpin for SizeHint
impl UnwindSafe for SizeHint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more