pub struct Terminal { /* private fields */ }Available on crate feature
tui only.Implementations§
Source§impl Terminal
impl Terminal
pub fn new(size: PointU16) -> Result<Self, IoError>
pub fn size(&self) -> Result<PointU16, IoError>
pub fn resize(&mut self, num_cols: u16, num_rows: u16) -> Result<(), IoError>
pub fn set_title<T: Display>(&mut self, title: T) -> Result<&mut Self, IoError>
pub fn draw<F: FnOnce(&mut Frame<'_>) -> Result<(), AnyhowError>>( &mut self, draw_fn: F, ) -> Result<&mut Self, IoError>
pub fn take_byte_str(&mut self) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl Freeze for Terminal
impl RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl UnwindSafe for Terminal
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Convert the source color to the destination color using the specified
method.
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default.
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Cast a collection of colors into a collection of arrays.
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
Cast this collection of arrays into a collection of colors.
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
Source§impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
The number type that’s used in
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
Converts
self into C, using the provided parameters.Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Cast a collection of colors into a collection of color components.
Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
Performs a conversion from
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
Converts
other into Self, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
Performs a conversion into
T.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
The number type that’s used in
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
Converts
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
Converts
self into T, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
The error for when
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Try to cast this collection of color components into a collection of
colors. Read more
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds error is returned which contains
the unclamped color. Read moreSource§impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
Source§fn uints_from(colors: C) -> U
fn uints_from(colors: C) -> U
Cast a collection of colors into a collection of unsigned integers.
Source§impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
Source§fn uints_into(self) -> C
fn uints_into(self) -> C
Cast this collection of unsigned integers into a collection of colors.
Source§impl<T> Utils for Twhere
T: ?Sized,
impl<T> Utils for Twhere
T: ?Sized,
const CRLF: &str = "\r\n"
const DEFAULT_ROPE_BUILDER_BUFFER_SIZE: usize = 8192
const IS_EXTENDED: bool = true
const LF: &str = "\n"
const READ_FROM_CLIPBOARD_COMMAND: &str = "pbpaste"
const WRITE_TO_CLIPBOARD_COMMAND: &str = "pbcopy"
Source§async fn abort_all_and_wait<T: 'static>(&mut self)
async fn abort_all_and_wait<T: 'static>(&mut self)
Available on crate feature
async only.Source§fn absolute_utf8(&self) -> Result<Cow<'_, Utf8Path>, IoError>
fn absolute_utf8(&self) -> Result<Cow<'_, Utf8Path>, IoError>
Available on crate feature
fs only.async fn achain<T: Future>(self, rhs: T) -> T::Output
Source§fn add_span<'a, T: Into<Span<'a>>>(self, span: T) -> Line<'a>
fn add_span<'a, T: Into<Span<'a>>>(self, span: T) -> Line<'a>
Available on crate feature
tui only.Source§fn anyhow_msg_error(self) -> AnyhowError
fn anyhow_msg_error(self) -> AnyhowError
Available on crate features
async or fs or process or reqwest or socket or tui only.Source§fn anyhow_error(self) -> AnyhowErrorwhere
Self: Into<AnyhowError>,
fn anyhow_error(self) -> AnyhowErrorwhere
Self: Into<AnyhowError>,
Available on crate features
async or fs or process or reqwest or socket or tui only.Source§fn anyhow_result<T, E: Into<AnyhowError>>(self) -> Result<T, AnyhowError>where
Self: Is<Result<T, E>>,
fn anyhow_result<T, E: Into<AnyhowError>>(self) -> Result<T, AnyhowError>where
Self: Is<Result<T, E>>,
Available on crate features
async or fs or process or reqwest or socket or tui only.fn arc(self) -> Arc<Self>where
Self: Sized,
async fn async_with<T>(self, next: impl Future<Output = T>) -> T
fn as_borrowed<'a, B: ?Sized + ToOwned>(&'a self) -> &'a B
fn as_immut(&mut self) -> &Self
fn as_ptr(&self) -> *const Self
fn as_ptr_mut(&mut self) -> *mut Self
fn as_utf8(&self) -> Result<&str, Utf8Error>
Source§fn as_utf8_path(&self) -> &Utf8Path
fn as_utf8_path(&self) -> &Utf8Path
Available on crate feature
fs only.Source§fn as_rope_slice(&self) -> RopeSlice<'_>
fn as_rope_slice(&self) -> RopeSlice<'_>
Available on crate feature
ropey only.Source§fn as_valuable(&self) -> Value<'_>where
Self: AsValuable,
fn as_valuable(&self) -> Value<'_>where
Self: AsValuable,
Available on crate feature
serde only.Source§fn bordered_block<'a>(self) -> Block<'a>
fn bordered_block<'a>(self) -> Block<'a>
Available on crate feature
tui only.fn buf_reader(self) -> BufReader<Self>
Source§fn buf_reader_async(self) -> TokioBufReader<Self>
fn buf_reader_async(self) -> TokioBufReader<Self>
Available on crate features
async or ropey only.fn buf_writer(self) -> BufWriter<Self> ⓘ
Source§fn buf_writer_async(self) -> TokioBufWriter<Self>where
Self: AsyncWrite + Sized,
fn buf_writer_async(self) -> TokioBufWriter<Self>where
Self: AsyncWrite + Sized,
Available on crate feature
async only.Source§fn cast_or_max<T: Bounded + NumCast>(self) -> Twhere
Self: Sized + ToPrimitive,
fn cast_or_max<T: Bounded + NumCast>(self) -> Twhere
Self: Sized + ToPrimitive,
Available on crate features
ropey or misc or tui only.fn cast_ref<T>(&self) -> &T
fn cat<T: Display>(&self, rhs: T) -> Stringwhere
Self: Display,
Source§fn check_next<T>(self) -> Result<T, AnyhowError>where
Self: Is<Option<T>>,
fn check_next<T>(self) -> Result<T, AnyhowError>where
Self: Is<Option<T>>,
Available on crate features
async or fs or process or reqwest or socket or tui only.Source§fn check_present<T>(self) -> Result<T, AnyhowError>where
Self: Is<Option<T>>,
fn check_present<T>(self) -> Result<T, AnyhowError>where
Self: Is<Option<T>>,
Available on crate features
async or fs or process or reqwest or socket or tui only.Source§async fn check_status(self) -> Result<Response, AnyhowError>where
Self: Is<Response>,
async fn check_status(self) -> Result<Response, AnyhowError>where
Self: Is<Response>,
Available on crate feature
reqwest only.Source§fn clamped(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd + Sized,
fn clamped(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd + Sized,
Available on crate features
ropey or misc or tui only.fn convert<T: From<Self>>(self) -> Twhere
Self: Sized,
fn contains_eq<Q, K>(&self, query: Q) -> bool
Source§fn context_path<T, E, C: 'static + Display + Send + Sync, P: AsRef<Path>>(
self,
context: C,
path: P,
) -> Result<T, AnyhowError>
fn context_path<T, E, C: 'static + Display + Send + Sync, P: AsRef<Path>>( self, context: C, path: P, ) -> Result<T, AnyhowError>
Available on crate features
async or fs or process or reqwest or socket or tui only.fn copied(&self) -> Self
Source§async fn write_to_clipboard(&self) -> Result<ExitStatus, AnyhowError>
async fn write_to_clipboard(&self) -> Result<ExitStatus, AnyhowError>
Available on crate feature
process only.Source§async fn read_from_clipboard() -> Result<String, AnyhowError>
async fn read_from_clipboard() -> Result<String, AnyhowError>
Available on crate feature
process only.fn create(&self) -> Result<File, IoError>
fn create_dir_all(&self) -> Result<(), IoError>
Source§fn cycle_in_place(&mut self, amount: isize, total: usize)
fn cycle_in_place(&mut self, amount: isize, total: usize)
Available on crate feature
misc only.Source§fn deserialize_from_seq<'de, D: Deserializer<'de>, X: Deserialize<'de>, Y, E: Display, F: Fn(X) -> Result<Y, E>>(
deserializer: D,
func: F,
) -> Result<Self, D::Error>
fn deserialize_from_seq<'de, D: Deserializer<'de>, X: Deserialize<'de>, Y, E: Display, F: Fn(X) -> Result<Y, E>>( deserializer: D, func: F, ) -> Result<Self, D::Error>
Available on crate features
serde or tui only.Source§fn end_err<T>(self) -> Output<T, Self>where
Self: Sized,
fn end_err<T>(self) -> Output<T, Self>where
Self: Sized,
Available on crate feature
output only.fn err<T>(self) -> Result<T, Self>where
Self: Sized,
Source§fn expand_user(&self) -> Cow<'_, Utf8Path>
fn expand_user(&self) -> Cow<'_, Utf8Path>
Available on crate feature
fs only.Source§fn unexpand_user(&self) -> Cow<'_, Utf8Path>
fn unexpand_user(&self) -> Cow<'_, Utf8Path>
Available on crate feature
fs only.Source§fn extended_graphemes(&self) -> Graphemes<'_>
fn extended_graphemes(&self) -> Graphemes<'_>
Available on crate features
ropey or tui only.Source§fn extended_grapheme_indices(&self) -> GraphemeIndices<'_>
fn extended_grapheme_indices(&self) -> GraphemeIndices<'_>
Available on crate features
ropey or tui only.Source§fn extended_graphemes_at<'a>(
self,
extended_graphemes_index_range: Range<usize>,
) -> impl Iterator<Item = &'a str>where
Self: Is<RopeSlice<'a>>,
fn extended_graphemes_at<'a>(
self,
extended_graphemes_index_range: Range<usize>,
) -> impl Iterator<Item = &'a str>where
Self: Is<RopeSlice<'a>>,
Available on crate feature
ropey only.Source§fn extended_graphemes_at_rect<'a>(
self,
lines_index_range: Range<usize>,
extended_graphemes_index_range: Range<usize>,
) -> impl Iterator<Item = impl Iterator<Item = &'a str>>where
Self: Is<RopeSlice<'a>>,
fn extended_graphemes_at_rect<'a>(
self,
lines_index_range: Range<usize>,
extended_graphemes_index_range: Range<usize>,
) -> impl Iterator<Item = impl Iterator<Item = &'a str>>where
Self: Is<RopeSlice<'a>>,
Available on crate feature
ropey only.Source§fn extended_grapheme_substring(&self, range: Range<usize>) -> &str
fn extended_grapheme_substring(&self, range: Range<usize>) -> &str
Available on crate features
ropey or tui only.Source§fn filter_sync(
self,
func: impl FnMut(&Self::Item) -> bool,
) -> Filter<Self, Ready<bool>, impl FnMut(&Self::Item) -> Ready<bool>>
fn filter_sync( self, func: impl FnMut(&Self::Item) -> bool, ) -> Filter<Self, Ready<bool>, impl FnMut(&Self::Item) -> Ready<bool>>
Available on crate feature
async only.Source§fn file_name_ok(&self) -> Result<&str, AnyhowError>
fn file_name_ok(&self) -> Result<&str, AnyhowError>
Available on crate feature
fs only.fn find_eq<Q, K>(&self, query: Q) -> Option<(usize, &K)>
fn has_happened(self) -> boolwhere
Self: Is<Instant>,
Source§fn home_dirpath() -> Option<Utf8PathBuf>
fn home_dirpath() -> Option<Utf8PathBuf>
Available on crate feature
fs only.fn if_else<T>(self, true_value: T, false_value: T) -> Twhere
Self: Is<bool>,
fn immutable(&mut self) -> &Self
Source§fn increment(&mut self)where
Self: One + SaturatingAdd,
fn increment(&mut self)where
Self: One + SaturatingAdd,
Available on crate feature
tui only.fn index_into<T: Index<Self> + ?Sized>(self, collection: &T) -> &T::Outputwhere
Self: Sized,
fn index_into_mut<T: IndexMut<Self> + ?Sized>(
self,
collection: &mut T,
) -> &mut T::Outputwhere
Self: Sized,
fn insert_mut<'a, K: 'a + Eq + Hash, V>( &'a mut self, key: K, value: V, ) -> &'a mut V
Source§fn interpolate(
self,
old_min: impl ToPrimitive,
old_max: impl ToPrimitive,
new_min: impl ToPrimitive,
new_max: impl ToPrimitive,
) -> Self
fn interpolate( self, old_min: impl ToPrimitive, old_max: impl ToPrimitive, new_min: impl ToPrimitive, new_max: impl ToPrimitive, ) -> Self
Available on crate features
ropey or misc or tui only.fn into_box(self) -> Box<Self>where
Self: Sized,
fn into_break<C>(self) -> ControlFlow<Self, C>where
Self: Sized,
Source§fn into_color<T>(self) -> Twhere
Self: IntoColor<T>,
fn into_color<T>(self) -> Twhere
Self: IntoColor<T>,
Available on crate feature
tui only.fn into_common<T>(self) -> Twhere
Self: Is<Result<T, T>>,
fn into_continue<B>(self) -> ControlFlow<B, Self>where
Self: Sized,
fn into_cow_owned<B: ?Sized + ToOwned<Owned = Self>>(self) -> Cow<'static, B>where
Self: Sized,
Source§fn into_endpoint(self) -> impl Endpoint<Output = Self>
fn into_endpoint(self) -> impl Endpoint<Output = Self>
Available on crate feature
poem only.Source§fn into_interval(self) -> Intervalwhere
Self: Is<Duration>,
fn into_interval(self) -> Intervalwhere
Self: Is<Duration>,
Available on crate feature
async only.Source§fn into_left<R>(self) -> Either<Self, R>where
Self: Sized,
fn into_left<R>(self) -> Either<Self, R>where
Self: Sized,
Available on crate feature
async only.fn into_manually_drop(self) -> ManuallyDrop<Self>where
Self: Sized,
Source§fn into_stream_reader<B: Buf, E: Into<IoError>>(self) -> StreamReader<Self, B>
fn into_stream_reader<B: Buf, E: Into<IoError>>(self) -> StreamReader<Self, B>
Available on crate feature
async only.Source§fn into_length_delimited_frames(self) -> Framed<Self, LengthDelimitedCodec>where
Self: Sized,
fn into_length_delimited_frames(self) -> Framed<Self, LengthDelimitedCodec>where
Self: Sized,
Available on crate feature
async only.Source§fn into_line_frames(self) -> Framed<Self, LinesCodec>where
Self: Sized,
fn into_line_frames(self) -> Framed<Self, LinesCodec>where
Self: Sized,
Available on crate feature
async only.Source§fn into_right<L>(self) -> Either<L, Self>where
Self: Sized,
fn into_right<L>(self) -> Either<L, Self>where
Self: Sized,
Available on crate feature
async only.Source§fn into_parse_request_payload_result<T>(
self,
) -> Result<T, ParseRequestPayloadError>where
Self: Is<Result<T, SerdeJsonError>>,
fn into_parse_request_payload_result<T>(
self,
) -> Result<T, ParseRequestPayloadError>where
Self: Is<Result<T, SerdeJsonError>>,
Available on crate feature
poem only.Source§async fn into_select<T: Future>(self, rhs: T) -> Either<Self::Output, T::Output>
async fn into_select<T: Future>(self, rhs: T) -> Either<Self::Output, T::Output>
Available on crate feature
async only.Source§fn into_status<T, E>(self) -> Status<T, E>where
Self: Is<Result<T, E>>,
fn into_status<T, E>(self) -> Status<T, E>where
Self: Is<Result<T, E>>,
Available on crate feature
tracing only.Source§fn into_stream(self) -> Self::Streamwhere
Self: IntoStream + Sized,
fn into_stream(self) -> Self::Streamwhere
Self: IntoStream + Sized,
Available on crate feature
async only.Source§fn into_string(self) -> Result<String, AnyhowError>where
Self: Is<PathBuf>,
fn into_string(self) -> Result<String, AnyhowError>where
Self: Is<PathBuf>,
Available on crate feature
fs only.Source§fn into_value_from_json<T: DeserializeOwned>(self) -> Result<T, SerdeJsonError>where
Self: Is<Json>,
fn into_value_from_json<T: DeserializeOwned>(self) -> Result<T, SerdeJsonError>where
Self: Is<Json>,
Available on crate feature
serde only.Source§fn invalid_utf8_err<T>(&self) -> Result<T, AnyhowError>where
Self: Debug,
fn invalid_utf8_err<T>(&self) -> Result<T, AnyhowError>where
Self: Debug,
Available on crate feature
fs only.fn io_error(self) -> IoError
fn io_result<T, E: Into<Box<dyn StdError + Send + Sync>>>(
self,
) -> Result<T, IoError>where
Self: Is<Result<T, E>>,
fn is_non_empty<T: Iterator>(&mut self) -> bool
fn is_empty<T: Iterator>(&mut self) -> bool
fn is_less_than<T: PartialOrd>(self, rhs: T) -> boolwhere
Self: Into<T>,
Source§fn is_positive(&self) -> boolwhere
Self: PartialOrd + Zero,
fn is_positive(&self) -> boolwhere
Self: PartialOrd + Zero,
Available on crate features
ropey or misc or tui only.fn is_newline(&self) -> bool
Source§fn len_extended_graphemes(&self) -> usize
fn len_extended_graphemes(&self) -> usize
Available on crate features
ropey or tui only.Source§fn log_if_error<T, E: Display>(self) -> Self
fn log_if_error<T, E: Display>(self) -> Self
Available on crate features
tui or tracing only.fn map_collect<Y, T: FromIterator<Y>>(
self,
func: impl FnMut(Self::Item) -> Y,
) -> Twhere
Self: IntoIterator + Sized,
fn map_into<Y, X: Into<Y>>(self) -> Option<Y>where
Self: Is<Option<X>>,
fn map_as_ref<'a, Y: ?Sized, X: 'a + AsRef<Y>>(&'a self) -> Option<&'a Y>
fn mem_drop(self)where
Self: Sized,
fn mem_replace(&mut self, value: Self) -> Selfwhere
Self: Sized,
fn mem_take(&mut self) -> Selfwhere
Self: Default,
Source§async fn metadata_async(&self) -> Result<Metadata, IoError>
async fn metadata_async(&self) -> Result<Metadata, IoError>
Available on crate feature
async only.fn mut_push<T>(&mut self, item: T) -> &mut T
fn iter_next(&mut self) -> Option<Self::Item>where
Self: Iterator,
fn none<T>(&self) -> Option<T>
Source§fn num_lines_and_extended_graphemes<'a>(self) -> PointUsizewhere
Self: Is<RopeSlice<'a>>,
fn num_lines_and_extended_graphemes<'a>(self) -> PointUsizewhere
Self: Is<RopeSlice<'a>>,
Available on crate feature
ropey only.fn ok<E>(self) -> Result<Self, E>where
Self: Sized,
fn once(self) -> Once<Self>where
Self: Sized,
fn open(&self) -> Result<File, IoError>
Source§async fn open_async(&self) -> Result<TokioFile, IoError>
async fn open_async(&self) -> Result<TokioFile, IoError>
Available on crate features
ropey or async only.Source§fn optional_display(&self) -> OptionalDisplay<'_, Self>
fn optional_display(&self) -> OptionalDisplay<'_, Self>
Available on crate feature
fmt only.Source§fn output_ok<E>(self) -> Output<Self, E>where
Self: Sized,
fn output_ok<E>(self) -> Output<Self, E>where
Self: Sized,
Available on crate feature
output only.fn pair<T>(self, rhs: T) -> (Self, T)where
Self: Sized,
fn pin(self) -> Pin<Box<Self>>where
Self: Sized,
fn pipe<X, Y, Z, F: FnMut(Y) -> Z>(self, func: F) -> impl FnMut(X) -> Z
fn poll_ready(self) -> Poll<Self>where
Self: Sized,
fn pipe_into<T, F: FnOnce(Self) -> T>(self, func: F) -> Twhere
Self: Sized,
Source§fn poem_binary(self) -> PoemBinary<Self>where
Self: Sized,
fn poem_binary(self) -> PoemBinary<Self>where
Self: Sized,
Available on crate feature
poem only.Source§fn poem_binary_message(self) -> PoemMessage
fn poem_binary_message(self) -> PoemMessage
Available on crate feature
poem only.Source§fn poem_stream_body<O: 'static + Into<Bytes>, E: 'static + Into<IoError>>(
self,
) -> PoemBinary<PoemBody>
fn poem_stream_body<O: 'static + Into<Bytes>, E: 'static + Into<IoError>>( self, ) -> PoemBinary<PoemBody>
Available on crate feature
poem only.Source§fn poem_text_message(self) -> PoemMessagewhere
Self: Is<String>,
fn poem_text_message(self) -> PoemMessagewhere
Self: Is<String>,
Available on crate feature
poem only.fn println(&self)where
Self: Display,
fn print(&self)where
Self: Display,
fn push_to<T: Extend<Self>>(self, collection: &mut T)where
Self: Sized,
fn push_all_to<T: Extend<Self::Item>>(self, collection: &mut T)where
Self: IntoIterator + Sized,
Source§fn query_all<T: Serialize>(
self,
name: &str,
values: impl IntoIterator<Item = T>,
) -> RequestBuilderwhere
Self: Is<RequestBuilder>,
fn query_all<T: Serialize>(
self,
name: &str,
values: impl IntoIterator<Item = T>,
) -> RequestBuilderwhere
Self: Is<RequestBuilder>,
Available on crate feature
reqwest only.Source§fn query_one<T: Serialize>(
self,
name: &str,
value: impl Into<Option<T>>,
) -> RequestBuilderwhere
Self: Is<RequestBuilder>,
fn query_one<T: Serialize>(
self,
name: &str,
value: impl Into<Option<T>>,
) -> RequestBuilderwhere
Self: Is<RequestBuilder>,
Available on crate feature
reqwest only.fn range_from_len(self, len: Self) -> Range<Self>
Source§fn ratatui_rect(self) -> Rect
fn ratatui_rect(self) -> Rect
Available on crate feature
tui only.Source§async fn read_to_string_async(&mut self) -> Result<String, IoError>where
Self: AsyncReadExt + Unpin,
async fn read_to_string_async(&mut self) -> Result<String, IoError>where
Self: AsyncReadExt + Unpin,
Available on crate features
async or process only.Source§async fn read_to_string_fs_async(self) -> ReadValue<Self>
async fn read_to_string_fs_async(self) -> ReadValue<Self>
Available on crate feature
async only.fn ready(self) -> Ready<Self>where
Self: Sized,
fn ref_immut(&self) -> &Self
fn ref_mut(&mut self) -> &mut Self
fn repeat(self) -> Repeat<Self>where
Self: Clone,
fn reversed<X, Y>(self) -> (Y, X)where
Self: Is<(X, Y)>,
Source§async fn rope<const N: usize>(&self) -> Result<Rope, IoError>
async fn rope<const N: usize>(&self) -> Result<Rope, IoError>
Available on crate feature
ropey only.Source§async fn run_for(
self,
duration: Duration,
) -> Result<Self, RunForError<Self::Output>>
async fn run_for( self, duration: Duration, ) -> Result<Self, RunForError<Self::Output>>
Available on crate feature
async only.fn remove_file(&self) -> Result<(), IoError>
Source§async fn respond_to<T: Request<Response = Self>>(
&self,
socket: impl BorrowMut<Socket>,
) -> Result<(), AnyhowError>
async fn respond_to<T: Request<Response = Self>>( &self, socket: impl BorrowMut<Socket>, ) -> Result<(), AnyhowError>
Available on crate feature
socket only.Source§fn saturating_chunks_at_extended_grapheme<'a>(
self,
extended_grapheme_index: usize,
) -> Chunks<'a>where
Self: Is<RopeSlice<'a>>,
fn saturating_chunks_at_extended_grapheme<'a>(
self,
extended_grapheme_index: usize,
) -> Chunks<'a>where
Self: Is<RopeSlice<'a>>,
Available on crate feature
ropey only.Source§fn saturating_chunks_at_char<'a>(self, char_index: usize) -> Chunks<'a>where
Self: Is<RopeSlice<'a>>,
fn saturating_chunks_at_char<'a>(self, char_index: usize) -> Chunks<'a>where
Self: Is<RopeSlice<'a>>,
Available on crate feature
ropey only.Source§fn saturating_lines_at<'a>(self, line_index: usize) -> Lines<'a>where
Self: Is<RopeSlice<'a>>,
fn saturating_lines_at<'a>(self, line_index: usize) -> Lines<'a>where
Self: Is<RopeSlice<'a>>,
Available on crate feature
ropey only.Source§fn saturating_add_assign(&mut self, rhs: &Self)where
Self: SaturatingAdd,
fn saturating_add_assign(&mut self, rhs: &Self)where
Self: SaturatingAdd,
Available on crate feature
tui only.Source§fn saturating_add_or_sub_in_place_with_max(
&mut self,
rhs: Self,
max_value: Self,
add: bool,
)
fn saturating_add_or_sub_in_place_with_max( &mut self, rhs: Self, max_value: Self, add: bool, )
Available on crate feature
tui only.Source§fn saturating_sub_assign(&mut self, rhs: &Self)where
Self: SaturatingSub,
fn saturating_sub_assign(&mut self, rhs: &Self)where
Self: SaturatingSub,
Available on crate feature
tui only.Source§fn scroll_count(
&self,
scroll_count: ScrollCount,
orientation: Orientation,
) -> usizewhere
Self: Scrollable,
fn scroll_count(
&self,
scroll_count: ScrollCount,
orientation: Orientation,
) -> usizewhere
Self: Scrollable,
Available on crate feature
tui only.Source§fn max_scroll_offset(
&self,
scroll_when: ScrollWhen,
content_size: PointUsize,
) -> PointUsizewhere
Self: Scrollable,
fn max_scroll_offset(
&self,
scroll_when: ScrollWhen,
content_size: PointUsize,
) -> PointUsizewhere
Self: Scrollable,
Available on crate feature
tui only.Source§fn scroll(
&mut self,
scroll_count: ScrollCount,
scroll_when: ScrollWhen,
content_size: PointUsize,
orientation: Orientation,
add: bool,
)where
Self: Scrollable,
fn scroll(
&mut self,
scroll_count: ScrollCount,
scroll_when: ScrollWhen,
content_size: PointUsize,
orientation: Orientation,
add: bool,
)where
Self: Scrollable,
Available on crate feature
tui only.Source§fn scroll_down(
&mut self,
scroll_count: ScrollCount,
content_size: PointUsize,
scroll_when: ScrollWhen,
)where
Self: Scrollable,
fn scroll_down(
&mut self,
scroll_count: ScrollCount,
content_size: PointUsize,
scroll_when: ScrollWhen,
)where
Self: Scrollable,
Available on crate feature
tui only.Source§fn scroll_up(
&mut self,
scroll_count: ScrollCount,
content_size: PointUsize,
scroll_when: ScrollWhen,
)where
Self: Scrollable,
fn scroll_up(
&mut self,
scroll_count: ScrollCount,
content_size: PointUsize,
scroll_when: ScrollWhen,
)where
Self: Scrollable,
Available on crate feature
tui only.Source§fn scroll_left(
&mut self,
scroll_count: ScrollCount,
content_size: PointUsize,
scroll_when: ScrollWhen,
)where
Self: Scrollable,
fn scroll_left(
&mut self,
scroll_count: ScrollCount,
content_size: PointUsize,
scroll_when: ScrollWhen,
)where
Self: Scrollable,
Available on crate feature
tui only.Source§fn scroll_right(
&mut self,
scroll_count: ScrollCount,
content_size: PointUsize,
scroll_when: ScrollWhen,
)where
Self: Scrollable,
fn scroll_right(
&mut self,
scroll_count: ScrollCount,
content_size: PointUsize,
scroll_when: ScrollWhen,
)where
Self: Scrollable,
Available on crate feature
tui only.Source§async fn select_all(self) -> <<Self as IntoIterator>::Item as Future>::Output
async fn select_all(self) -> <<Self as IntoIterator>::Item as Future>::Output
Available on crate feature
async only.Source§async fn send_to<T: Sink<Self> + Unpin>(self, sink: T) -> Result<(), T::Error>where
Self: Sized,
async fn send_to<T: Sink<Self> + Unpin>(self, sink: T) -> Result<(), T::Error>where
Self: Sized,
Available on crate feature
async only.Source§fn send_to_oneshot(self, sender: OneshotSender<Self>) -> Result<(), AnyhowError>where
Self: Sized,
fn send_to_oneshot(self, sender: OneshotSender<Self>) -> Result<(), AnyhowError>where
Self: Sized,
Available on crate feature
async only.fn set_true(&mut self) -> bool
fn set_false(&mut self) -> bool
fn some(self) -> Option<Self>where
Self: Sized,
Source§fn spawn_task(self) -> JoinHandle<Self::Output>
fn spawn_task(self) -> JoinHandle<Self::Output>
Available on crate feature
async only.Source§fn split_along_extended_graphemes(&self, max_prefix_size: usize) -> (&str, &str)
fn split_along_extended_graphemes(&self, max_prefix_size: usize) -> (&str, &str)
Available on crate features
ropey or tui only.fn split_at(&self, index: usize) -> (&str, &str)
fn substr_interval(&self, query: &[u8]) -> Option<(usize, usize)>
Source§fn take_json<T: DeserializeOwned>(
&mut self,
index: impl SerdeJsonIndex,
) -> Result<T, SerdeJsonError>
fn take_json<T: DeserializeOwned>( &mut self, index: impl SerdeJsonIndex, ) -> Result<T, SerdeJsonError>
Available on crate feature
serde only.fn to_cow_borrowed(&self) -> Cow<'_, Self>where
Self: ToOwned,
fn toggle(&mut self)
Source§fn to_json(&self) -> Result<Json, SerdeJsonError>where
Self: Serialize,
fn to_json(&self) -> Result<Json, SerdeJsonError>where
Self: Serialize,
Available on crate feature
serde only.Source§fn to_json_byte_str(&self) -> Result<Vec<u8>, SerdeJsonError>where
Self: Serialize,
fn to_json_byte_str(&self) -> Result<Vec<u8>, SerdeJsonError>where
Self: Serialize,
Available on crate feature
serde only.Source§fn to_json_object(&self, key: &str) -> Jsonwhere
Self: Serialize,
fn to_json_object(&self, key: &str) -> Jsonwhere
Self: Serialize,
Available on crate feature
serde only.Source§fn to_json_str(&self) -> Result<String, SerdeJsonError>where
Self: Serialize,
fn to_json_str(&self) -> Result<String, SerdeJsonError>where
Self: Serialize,
Available on crate feature
serde only.Source§fn to_rmp_byte_str(&self) -> Result<Vec<u8>, RmpEncodeError>where
Self: Serialize,
fn to_rmp_byte_str(&self) -> Result<Vec<u8>, RmpEncodeError>where
Self: Serialize,
Available on crate feature
rmp only.Source§fn to_value_from_json_slice<'a, T: Deserialize<'a>>(
&'a self,
) -> Result<T, SerdeJsonError>
fn to_value_from_json_slice<'a, T: Deserialize<'a>>( &'a self, ) -> Result<T, SerdeJsonError>
Available on crate feature
serde only.Source§fn to_value_from_json_reader<T: DeserializeOwned>(
self,
) -> Result<T, SerdeJsonError>
fn to_value_from_json_reader<T: DeserializeOwned>( self, ) -> Result<T, SerdeJsonError>
Available on crate feature
serde only.Source§fn to_value_from_rmp_slice<'a, T: Deserialize<'a>>(
&'a self,
) -> Result<T, RmpDecodeError>
fn to_value_from_rmp_slice<'a, T: Deserialize<'a>>( &'a self, ) -> Result<T, RmpDecodeError>
Available on crate feature
rmp only.Source§fn to_value_from_value<T: DeserializeOwned>(&self) -> Result<T, SerdeJsonError>where
Self: Serialize,
fn to_value_from_value<T: DeserializeOwned>(&self) -> Result<T, SerdeJsonError>where
Self: Serialize,
Available on crate feature
serde only.Source§fn to_value_from_yaml_slice<'a, T: Deserialize<'a>>(
&'a self,
) -> Result<T, SerdeYamlError>
fn to_value_from_yaml_slice<'a, T: Deserialize<'a>>( &'a self, ) -> Result<T, SerdeYamlError>
Available on crate feature
serde only.Source§fn to_value_from_yaml_reader<T: DeserializeOwned>(
self,
) -> Result<T, SerdeYamlError>
fn to_value_from_yaml_reader<T: DeserializeOwned>( self, ) -> Result<T, SerdeYamlError>
Available on crate feature
serde only.Source§fn translate_to(&mut self, value: Self) -> Selfwhere
Self: SaturatingSub,
fn translate_to(&mut self, value: Self) -> Selfwhere
Self: SaturatingSub,
Available on crate feature
tui only.fn try_convert<T: TryFrom<Self>>(self) -> Result<T, T::Error>where
Self: Sized,
Source§async fn try_join_all<T, E>(self) -> Result<T, E>
async fn try_join_all<T, E>(self) -> Result<T, E>
Available on crate feature
async only.Source§async fn try_wait<T, E: 'static + Send + Sync>(self) -> Result<T, AnyhowError>
async fn try_wait<T, E: 'static + Send + Sync>(self) -> Result<T, AnyhowError>
Available on crate feature
async only.fn type_name() -> &'static str
fn unit(&self)
async fn wait_then_unwrap_or_pending<T>(self) -> T
async fn unwrap_or_pending_then_wait<F: Future + Unpin>(&mut self) -> F::Output
fn with<T>(&self, value: T) -> T
fn with_item_pushed<T>(self, item: T) -> Vec<T>where
Self: Is<Vec<T>>,
fn with_str_pushed(self, rhs: &str) -> Stringwhere
Self: Is<String>,
Source§fn write_as_json_to<T: Write>(&self, writer: T) -> Result<(), SerdeJsonError>where
Self: Serialize,
fn write_as_json_to<T: Write>(&self, writer: T) -> Result<(), SerdeJsonError>where
Self: Serialize,
Available on crate feature
serde only.fn write_all_then(&mut self, byte_str: &[u8]) -> Result<&mut Self, IoError>where
Self: Write,
Source§async fn write_all_then_async(
&mut self,
byte_str: &[u8],
) -> Result<&mut Self, IoError>where
Self: AsyncWriteExt + Unpin,
async fn write_all_then_async(
&mut self,
byte_str: &[u8],
) -> Result<&mut Self, IoError>where
Self: AsyncWriteExt + Unpin,
Available on crate features
async or process only.