pub struct RefHandle<N>(/* private fields */)
where
N: NativeDrop;
Expand description
A wrapper type that represents a native type with a pointer to the native object.
Implementations§
§impl RefHandle<SkImageGenerator>
impl RefHandle<SkImageGenerator>
pub fn unique_id(&self) -> u32
pub fn encoded_data(&mut self) -> Option<RCHandle<SkData>>
pub fn info(&self) -> &Handle<SkImageInfo>
pub fn is_valid( &self, context: Option<&mut RCHandle<GrRecordingContext>>, ) -> bool
pub fn is_protected(self) -> bool
pub fn get_pixels( &mut self, info: &Handle<SkImageInfo>, pixels: &mut [u8], row_bytes: usize, ) -> bool
pub fn query_yuva_info( &self, supported_data_types: &Handle<SkYUVAPixmapInfo_SupportedDataTypes>, ) -> Option<Handle<SkYUVAPixmapInfo>>
pub fn is_texture_generator(&self) -> bool
pub fn from_encoded( _encoded: impl Into<RCHandle<SkData>>, ) -> Option<RefHandle<SkImageGenerator>>
None
. Use Image::deferred_from_encoded_data() or Codec::from_data()§impl RefHandle<GrBackendTexture>
impl RefHandle<GrBackendTexture>
pub unsafe fn new_gl( _: (i32, i32), mipmapped: skgpu_Mipmapped, gl_info: TextureInfo, ) -> RefHandle<GrBackendTexture>
pub unsafe fn new_gl_with_label( _: (i32, i32), mipmapped: skgpu_Mipmapped, gl_info: TextureInfo, label: impl AsRef<str>, ) -> RefHandle<GrBackendTexture>
pub fn dimensions(&self) -> ISize
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn label(&self) -> &str
pub fn mipmapped(&self) -> skgpu_Mipmapped
pub fn has_mip_maps(&self) -> bool
pub fn has_mipmaps(&self) -> bool
pub fn backend(&self) -> GrBackendApi
pub fn gl_texture_info(&self) -> Option<TextureInfo>
pub fn gl_texture_parameters_modified(&mut self)
pub fn backend_format(&self) -> Handle<GrBackendFormat>
pub fn set_mutable_state(&mut self, state: &RCHandle<skgpu_MutableTextureState>)
pub fn is_protected(&self) -> bool
pub fn is_valid(&self) -> bool
pub fn is_same_texture(&mut self, texture: &RefHandle<GrBackendTexture>) -> bool
§impl RefHandle<skia_textlayout_Paragraph>
impl RefHandle<skia_textlayout_Paragraph>
pub fn max_width(&self) -> f32
pub fn height(&self) -> f32
pub fn min_intrinsic_width(&self) -> f32
pub fn max_intrinsic_width(&self) -> f32
pub fn alphabetic_baseline(&self) -> f32
pub fn ideographic_baseline(&self) -> f32
pub fn longest_line(&self) -> f32
pub fn did_exceed_max_lines(&self) -> bool
pub fn layout(&mut self, width: f32)
pub fn paint(&self, canvas: &Canvas, p: impl Into<Point>)
pub fn get_rects_for_range(
&self,
range: Range<usize>,
rect_height_style: RectHeightStyle,
rect_width_style: RectWidthStyle,
) -> Vec<TextBox>
pub fn get_rects_for_range( &self, range: Range<usize>, rect_height_style: RectHeightStyle, rect_width_style: RectWidthStyle, ) -> Vec<TextBox>
Returns a vector of bounding boxes that enclose all text between start and end glyph indexes, including start and excluding end
pub fn get_rects_for_placeholders(&self) -> Vec<TextBox>
pub fn get_glyph_position_at_coordinate(
&self,
p: impl Into<Point>,
) -> skia_textlayout_PositionWithAffinity
pub fn get_glyph_position_at_coordinate( &self, p: impl Into<Point>, ) -> skia_textlayout_PositionWithAffinity
Returns the index of the glyph that corresponds to the provided coordinate, with the top left corner as the origin, and +y direction as down
pub fn get_word_boundary(&self, offset: u32) -> Range<usize> ⓘ
pub fn get_word_boundary(&self, offset: u32) -> Range<usize> ⓘ
Finds the first and last glyphs that define a word containing the glyph at index offset
pub fn get_line_metrics(&self) -> Vec<LineMetrics<'_>>
pub fn line_number(&self) -> usize
pub fn mark_dirty(&mut self)
pub fn unresolved_glyphs(&mut self) -> Option<usize>
pub fn unresolved_glyphs(&mut self) -> Option<usize>
This function will return the number of unresolved glyphs or
None
if not applicable (has not been shaped yet - valid case)
pub fn unresolved_codepoints(&mut self) -> Vec<i32>
pub fn visit<'a, F>(&mut self, visitor: F)
pub fn extended_visit<'a, F>(&mut self, visitor: F)
pub fn get_path_at(&mut self, line_number: usize) -> (usize, Handle<SkPath>)
pub fn get_path_at(&mut self, line_number: usize) -> (usize, Handle<SkPath>)
Returns path for a given line
line_number
- a line numberdest
- a resulting path Returns: a number glyphs that could not be converted to path
pub fn get_path(text_blob: &mut RCHandle<SkTextBlob>) -> Handle<SkPath>
pub fn get_path(text_blob: &mut RCHandle<SkTextBlob>) -> Handle<SkPath>
Returns path for a text blob
text_blob
- a text blob Returns: a path
pub fn contains_emoji(&mut self, text_blob: &mut RCHandle<SkTextBlob>) -> bool
pub fn contains_emoji(&mut self, text_blob: &mut RCHandle<SkTextBlob>) -> bool
Checks if a given text blob contains glyph with emoji
text_blob
- a text blob Returns:true
if there is such a glyph
pub fn contains_color_font_or_bitmap(
&mut self,
text_blob: &mut RCHandle<SkTextBlob>,
) -> bool
pub fn contains_color_font_or_bitmap( &mut self, text_blob: &mut RCHandle<SkTextBlob>, ) -> bool
Checks if a given text blob contains colored font or bitmap
text_blob
- a text blob Returns:true
if there is such a glyph
pub fn get_line_number_at(&self, code_unit_index: usize) -> Option<usize>
pub fn get_line_number_at(&self, code_unit_index: usize) -> Option<usize>
Finds the line number of the line that contains the given UTF-8 index.
index
- a UTF-8 TextIndex into the paragraph Returns: the line number the glyph that corresponds to the givencode_unit_index
is in, or -1 if thecode_unit_index
is out of bounds, or when the glyph is truncated or ellipsized away.
pub fn get_line_number_at_utf16_offset(
&self,
code_unit_index: usize,
) -> Option<usize>
pub fn get_line_number_at_utf16_offset( &self, code_unit_index: usize, ) -> Option<usize>
Finds the line number of the line that contains the given UTF-16 index.
index
- a UTF-16 offset into the paragraph Returns: the line number the glyph that corresponds to the givencode_unit_index
is in, or -1 if thecode_unit_index
is out of bounds, or when the glyph is truncated or ellipsized away.
pub fn get_line_metrics_at(&self, line_number: usize) -> Option<LineMetrics<'_>>
pub fn get_line_metrics_at(&self, line_number: usize) -> Option<LineMetrics<'_>>
Returns line metrics info for the line
line_number
- a line numberline_metrics
- an address to return the info (in case of null just skipped) Returns:true
if the line is found;false
if not
pub fn get_actual_text_range(
&self,
line_number: usize,
include_spaces: bool,
) -> Range<usize> ⓘ
pub fn get_actual_text_range( &self, line_number: usize, include_spaces: bool, ) -> Range<usize> ⓘ
Returns the visible text on the line (excluding a possible ellipsis)
line_number
- a line numberinclude_spaces
- indicates if the whitespaces should be included Returns: the range of the text that is shown in the line
pub fn get_glyph_cluster_at(
&self,
code_unit_index: usize,
) -> Option<GlyphClusterInfo>
pub fn get_glyph_cluster_at( &self, code_unit_index: usize, ) -> Option<GlyphClusterInfo>
Finds a glyph cluster for text index
code_unit_index
- a text indexglyph_info
- a glyph cluster info filled if not null Returns:true
if glyph cluster was found;false
if not
pub fn get_closest_glyph_cluster_at(
&self,
d: impl Into<Point>,
) -> Option<GlyphClusterInfo>
pub fn get_closest_glyph_cluster_at( &self, d: impl Into<Point>, ) -> Option<GlyphClusterInfo>
Finds the closest glyph cluster for a visual text position
dx
- x coordinatedy
- y coordinateglyph_info
- a glyph cluster info filled if not null Returns:true
if glyph cluster was found;false
if not (which usually means the paragraph is empty)
pub fn get_glyph_info_at_utf16_offset(
&mut self,
code_unit_index: usize,
) -> Option<GlyphInfo>
pub fn get_glyph_info_at_utf16_offset( &mut self, code_unit_index: usize, ) -> Option<GlyphInfo>
Retrieves the information associated with the glyph located at the given
code_unit_index
.
code_unit_index
- a UTF-16 offset into the paragraphglyph_info
- an optional GlyphInfo struct to hold the information associated with the glyph found at the given index Returns:false
only if the offset is out of bounds
pub fn get_closest_utf16_glyph_info_at(
&mut self,
d: impl Into<Point>,
) -> Option<GlyphInfo>
pub fn get_closest_utf16_glyph_info_at( &mut self, d: impl Into<Point>, ) -> Option<GlyphInfo>
Finds the information associated with the closest glyph to the given paragraph coordinates.
d
- x/y coordinateglyph_info
- an optional GlyphInfo struct to hold the information associated with the glyph found. The text indices and text ranges are described using UTF-16 offsets Returns:true
if a grapheme cluster was found;false
if not (which usually means the paragraph is empty)
pub fn get_font_at(&self, code_unit_index: usize) -> Handle<SkFont>
pub fn get_font_at(&self, code_unit_index: usize) -> Handle<SkFont>
Returns the font that is used to shape the text at the position
code_unit_index
- text index Returns: font info or an empty font info if the text is not found
pub fn get_font_at_utf16_offset(
&mut self,
code_unit_index: usize,
) -> Handle<SkFont>
pub fn get_font_at_utf16_offset( &mut self, code_unit_index: usize, ) -> Handle<SkFont>
Returns the font used to shape the text at the given UTF-16 offset.
code_unit_index
- a UTF-16 offset in the paragraph Returns: font info or an empty font info if the text is not found
§impl RefHandle<skia_textlayout_ParagraphBuilder>
impl RefHandle<skia_textlayout_ParagraphBuilder>
pub fn push_style( &mut self, style: &Handle<skia_textlayout_TextStyle>, ) -> &mut RefHandle<skia_textlayout_ParagraphBuilder>
pub fn pop(&mut self) -> &mut RefHandle<skia_textlayout_ParagraphBuilder>
pub fn peek_style(&mut self) -> Handle<skia_textlayout_TextStyle>
pub fn add_text( &mut self, str: impl AsRef<str>, ) -> &mut RefHandle<skia_textlayout_ParagraphBuilder>
pub fn add_placeholder( &mut self, placeholder_style: &PlaceholderStyle, ) -> &mut RefHandle<skia_textlayout_ParagraphBuilder>
pub fn build(&mut self) -> RefHandle<skia_textlayout_Paragraph>
pub fn get_text(&mut self) -> &str
pub fn get_paragraph_style(&self) -> RefHandle<skia_textlayout_ParagraphStyle>
pub fn reset(&mut self)
pub fn new( style: &RefHandle<skia_textlayout_ParagraphStyle>, font_collection: impl Into<RCHandle<skia_textlayout_FontCollection>>, ) -> RefHandle<skia_textlayout_ParagraphBuilder>
§impl RefHandle<skia_textlayout_ParagraphStyle>
impl RefHandle<skia_textlayout_ParagraphStyle>
pub fn new() -> RefHandle<skia_textlayout_ParagraphStyle>
pub fn strut_style(&self) -> &Handle<skia_textlayout_StrutStyle>
pub fn set_strut_style( &mut self, strut_style: Handle<skia_textlayout_StrutStyle>, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
pub fn text_style(&self) -> &Handle<skia_textlayout_TextStyle>
pub fn set_text_style( &mut self, text_style: &Handle<skia_textlayout_TextStyle>, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
pub fn text_direction(&self) -> skia_textlayout_TextDirection
pub fn set_text_direction( &mut self, direction: skia_textlayout_TextDirection, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
pub fn text_align(&self) -> skia_textlayout_TextAlign
pub fn set_text_align( &mut self, align: skia_textlayout_TextAlign, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
pub fn max_lines(&self) -> Option<usize>
pub fn set_max_lines( &mut self, lines: impl Into<Option<usize>>, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
pub fn ellipsis(&self) -> &str
pub fn set_ellipsis( &mut self, ellipsis: impl AsRef<str>, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
pub fn height(&self) -> f32
pub fn set_height( &mut self, height: f32, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
pub fn text_height_behavior(&self) -> skia_textlayout_TextHeightBehavior
pub fn set_text_height_behavior( &mut self, v: skia_textlayout_TextHeightBehavior, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
pub fn unlimited_lines(&self) -> bool
pub fn ellipsized(&self) -> bool
pub fn effective_align(&self) -> skia_textlayout_TextAlign
pub fn hinting_is_on(&self) -> bool
pub fn turn_hinting_off( &mut self, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
pub fn replace_tab_characters(&self) -> bool
pub fn set_replace_tab_characters( &mut self, value: bool, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
pub fn apply_rounding_hack(&self) -> bool
pub fn set_apply_rounding_hack( &mut self, value: bool, ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>
§impl RefHandle<SkShaper>
impl RefHandle<SkShaper>
pub fn new_primitive() -> RefHandle<SkShaper>
pub fn new_shaper_driven_wrapper( fallback_font_mgr: impl Into<Option<RCHandle<SkFontMgr>>>, ) -> Option<RefHandle<SkShaper>>
pub fn new_shape_then_wrap( fallback_font_mgr: impl Into<Option<RCHandle<SkFontMgr>>>, ) -> Option<RefHandle<SkShaper>>
pub fn new_shape_dont_wrap_or_reorder( fallback_font_mgr: impl Into<Option<RCHandle<SkFontMgr>>>, ) -> Option<RefHandle<SkShaper>>
pub fn purge_harf_buzz_cache()
pub fn new_core_text() -> Option<RefHandle<SkShaper>>
pub fn new( font_mgr: impl Into<Option<RCHandle<SkFontMgr>>>, ) -> RefHandle<SkShaper>
pub fn purge_caches()
§impl RefHandle<SkShaper_FontRunIterator>
impl RefHandle<SkShaper_FontRunIterator>
pub fn current_font(&self) -> &Handle<SkFont>
§impl RefHandle<SkShaper_BiDiRunIterator>
impl RefHandle<SkShaper_BiDiRunIterator>
pub fn current_level(&self) -> u8
§impl RefHandle<SkShaper>
impl RefHandle<SkShaper>
pub fn new_bidi_run_iterator( utf8: &str, bidi_level: u8, ) -> Option<Borrows<'_, RefHandle<SkShaper_BiDiRunIterator>>>
pub fn new_icu_bidi_run_iterator( utf8: &str, level: u8, ) -> Option<Borrows<'_, RefHandle<SkShaper_BiDiRunIterator>>>
pub fn new_trivial_bidi_run_iterator( bidi_level: u8, utf8_bytes: usize, ) -> RefHandle<SkShaper_BiDiRunIterator>
§impl RefHandle<SkShaper_ScriptRunIterator>
impl RefHandle<SkShaper_ScriptRunIterator>
pub fn current_script(&self) -> FourByteTag
§impl RefHandle<SkShaper>
impl RefHandle<SkShaper>
pub fn new_script_run_iterator( utf8: &str, script: FourByteTag, ) -> Borrows<'_, RefHandle<SkShaper_ScriptRunIterator>>
pub fn new_hb_icu_script_run_iterator( utf8: &str, ) -> Borrows<'_, RefHandle<SkShaper_ScriptRunIterator>>
pub fn new_trivial_script_run_iterator( bidi_level: u8, utf8_bytes: usize, ) -> RefHandle<SkShaper_ScriptRunIterator>
§impl RefHandle<SkShaper_LanguageRunIterator>
impl RefHandle<SkShaper_LanguageRunIterator>
pub fn current_language(&self) -> &CStr
§impl RefHandle<SkShaper>
impl RefHandle<SkShaper>
pub fn new_std_language_run_iterator( utf8: &str, ) -> Option<RefHandle<SkShaper_LanguageRunIterator>>
pub fn new_trivial_language_run_iterator( language: impl AsRef<str>, utf8_bytes: usize, ) -> RefHandle<SkShaper_LanguageRunIterator>
§impl RefHandle<SkShaper>
impl RefHandle<SkShaper>
pub fn shape<'a, 'b>(
&self,
utf8: &str,
font: &Handle<SkFont>,
left_to_right: bool,
width: f32,
run_handler: &'b mut impl AsRunHandler<'a>,
)where
'b: 'a,
pub fn shape_with_iterators<'a, 'b>(
&self,
utf8: &str,
font_run_iterator: &mut RefHandle<SkShaper_FontRunIterator>,
bidi_run_iterator: &mut RefHandle<SkShaper_BiDiRunIterator>,
script_run_iterator: &mut RefHandle<SkShaper_ScriptRunIterator>,
language_run_iterator: &mut RefHandle<SkShaper_LanguageRunIterator>,
width: f32,
run_handler: &'b mut impl AsRunHandler<'a>,
)where
'b: 'a,
pub fn shape_with_iterators_and_features<'a, 'b>(
&self,
utf8: &str,
font_run_iterator: &mut RefHandle<SkShaper_FontRunIterator>,
bidi_run_iterator: &mut RefHandle<SkShaper_BiDiRunIterator>,
script_run_iterator: &mut RefHandle<SkShaper_ScriptRunIterator>,
language_run_iterator: &mut RefHandle<SkShaper_LanguageRunIterator>,
features: &[SkShaper_Feature],
width: f32,
run_handler: &'b mut impl AsRunHandler<'a>,
)where
'b: 'a,
§impl RefHandle<Sk3DView>
impl RefHandle<Sk3DView>
pub fn new() -> RefHandle<Sk3DView>
pub fn save(&mut self) -> &mut RefHandle<Sk3DView>
pub fn restore(&mut self) -> &mut RefHandle<Sk3DView>
pub fn translate(&mut self, d: impl Into<V3>) -> &mut RefHandle<Sk3DView>
pub fn rotate_x(&mut self, deg: f32) -> &mut RefHandle<Sk3DView>
pub fn rotate_y(&mut self, deg: f32) -> &mut RefHandle<Sk3DView>
pub fn rotate_z(&mut self, deg: f32) -> &mut RefHandle<Sk3DView>
pub fn matrix(&self) -> Matrix
pub fn apply_to_canvas(&self, canvas: &Canvas) -> &RefHandle<Sk3DView>
pub fn dot_with_normal(&self, d: impl Into<V3>) -> f32
Trait Implementations§
§impl Iterator for RefHandle<SkTypeface_LocalizedStrings>
impl Iterator for RefHandle<SkTypeface_LocalizedStrings>
§type Item = LocalizedString
type Item = LocalizedString
§fn next(
&mut self,
) -> Option<<RefHandle<SkTypeface_LocalizedStrings> as Iterator>::Item>
fn next( &mut self, ) -> Option<<RefHandle<SkTypeface_LocalizedStrings> as Iterator>::Item>
source§fn next_chunk<const N: usize>(
&mut self,
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
fn next_chunk<const N: usize>(
&mut self,
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
iter_next_chunk
)N
values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
1.0.0 · source§fn count(self) -> usizewhere
Self: Sized,
fn count(self) -> usizewhere
Self: Sized,
1.0.0 · source§fn last(self) -> Option<Self::Item>where
Self: Sized,
fn last(self) -> Option<Self::Item>where
Self: Sized,
source§fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
iter_advance_by
)n
elements. Read more1.0.0 · source§fn nth(&mut self, n: usize) -> Option<Self::Item>
fn nth(&mut self, n: usize) -> Option<Self::Item>
n
th element of the iterator. Read more1.28.0 · source§fn step_by(self, step: usize) -> StepBy<Self>where
Self: Sized,
fn step_by(self, step: usize) -> StepBy<Self>where
Self: Sized,
1.0.0 · source§fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
1.0.0 · source§fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>where
Self: Sized,
U: IntoIterator,
fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>where
Self: Sized,
U: IntoIterator,
source§fn intersperse(self, separator: Self::Item) -> Intersperse<Self>
fn intersperse(self, separator: Self::Item) -> Intersperse<Self>
iter_intersperse
)separator
between adjacent
items of the original iterator. Read moresource§fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>
fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>
iter_intersperse
)separator
between adjacent items of the original iterator. Read more1.0.0 · source§fn map<B, F>(self, f: F) -> Map<Self, F>
fn map<B, F>(self, f: F) -> Map<Self, F>
1.0.0 · source§fn filter<P>(self, predicate: P) -> Filter<Self, P>
fn filter<P>(self, predicate: P) -> Filter<Self, P>
1.0.0 · source§fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
1.0.0 · source§fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
1.0.0 · source§fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
1.0.0 · source§fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
1.57.0 · source§fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
1.0.0 · source§fn skip(self, n: usize) -> Skip<Self>where
Self: Sized,
fn skip(self, n: usize) -> Skip<Self>where
Self: Sized,
n
elements. Read more1.0.0 · source§fn take(self, n: usize) -> Take<Self>where
Self: Sized,
fn take(self, n: usize) -> Take<Self>where
Self: Sized,
n
elements, or fewer
if the underlying iterator ends sooner. Read more1.0.0 · source§fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
source§fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
iter_map_windows
)f
for each contiguous window of size N
over
self
and returns an iterator over the outputs of f
. Like slice::windows()
,
the windows during mapping overlap as well. Read more1.0.0 · source§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
1.0.0 · source§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
source§fn collect_into<E>(self, collection: &mut E) -> &mut E
fn collect_into<E>(self, collection: &mut E) -> &mut E
iter_collect_into
)1.0.0 · source§fn partition<B, F>(self, f: F) -> (B, B)
fn partition<B, F>(self, f: F) -> (B, B)
source§fn is_partitioned<P>(self, predicate: P) -> bool
fn is_partitioned<P>(self, predicate: P) -> bool
iter_is_partitioned
)true
precede all those that return false
. Read more1.27.0 · source§fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
1.27.0 · source§fn try_for_each<F, R>(&mut self, f: F) -> R
fn try_for_each<F, R>(&mut self, f: F) -> R
1.0.0 · source§fn fold<B, F>(self, init: B, f: F) -> B
fn fold<B, F>(self, init: B, f: F) -> B
1.51.0 · source§fn reduce<F>(self, f: F) -> Option<Self::Item>
fn reduce<F>(self, f: F) -> Option<Self::Item>
source§fn try_reduce<R>(
&mut self,
f: impl FnMut(Self::Item, Self::Item) -> R,
) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
fn try_reduce<R>( &mut self, f: impl FnMut(Self::Item, Self::Item) -> R, ) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
iterator_try_reduce
)1.0.0 · source§fn all<F>(&mut self, f: F) -> bool
fn all<F>(&mut self, f: F) -> bool
1.0.0 · source§fn any<F>(&mut self, f: F) -> bool
fn any<F>(&mut self, f: F) -> bool
1.0.0 · source§fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
1.30.0 · source§fn find_map<B, F>(&mut self, f: F) -> Option<B>
fn find_map<B, F>(&mut self, f: F) -> Option<B>
source§fn try_find<R>(
&mut self,
f: impl FnMut(&Self::Item) -> R,
) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
fn try_find<R>( &mut self, f: impl FnMut(&Self::Item) -> R, ) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
try_find
)1.0.0 · source§fn position<P>(&mut self, predicate: P) -> Option<usize>
fn position<P>(&mut self, predicate: P) -> Option<usize>
1.6.0 · source§fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
1.15.0 · source§fn max_by<F>(self, compare: F) -> Option<Self::Item>
fn max_by<F>(self, compare: F) -> Option<Self::Item>
1.6.0 · source§fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
1.15.0 · source§fn min_by<F>(self, compare: F) -> Option<Self::Item>
fn min_by<F>(self, compare: F) -> Option<Self::Item>
1.0.0 · source§fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
1.36.0 · source§fn copied<'a, T>(self) -> Copied<Self>
fn copied<'a, T>(self) -> Copied<Self>
source§fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>where
Self: Sized,
fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>where
Self: Sized,
iter_array_chunks
)N
elements of the iterator at a time. Read more1.11.0 · source§fn product<P>(self) -> P
fn product<P>(self) -> P
source§fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
iter_order_by
)Iterator
with those
of another with respect to the specified comparison function. Read more1.5.0 · source§fn partial_cmp<I>(self, other: I) -> Option<Ordering>
fn partial_cmp<I>(self, other: I) -> Option<Ordering>
PartialOrd
elements of
this Iterator
with those of another. The comparison works like short-circuit
evaluation, returning a result without comparing the remaining elements.
As soon as an order can be determined, the evaluation stops and a result is returned. Read moresource§fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>where
Self: Sized,
I: IntoIterator,
F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,
fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>where
Self: Sized,
I: IntoIterator,
F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,
iter_order_by
)Iterator
with those
of another with respect to the specified comparison function. Read moresource§fn eq_by<I, F>(self, other: I, eq: F) -> bool
fn eq_by<I, F>(self, other: I, eq: F) -> bool
iter_order_by
)1.5.0 · source§fn lt<I>(self, other: I) -> bool
fn lt<I>(self, other: I) -> bool
Iterator
are lexicographically
less than those of another. Read more1.5.0 · source§fn le<I>(self, other: I) -> bool
fn le<I>(self, other: I) -> bool
Iterator
are lexicographically
less or equal to those of another. Read more1.5.0 · source§fn gt<I>(self, other: I) -> bool
fn gt<I>(self, other: I) -> bool
Iterator
are lexicographically
greater than those of another. Read more1.5.0 · source§fn ge<I>(self, other: I) -> bool
fn ge<I>(self, other: I) -> bool
Iterator
are lexicographically
greater than or equal to those of another. Read more1.82.0 · source§fn is_sorted_by<F>(self, compare: F) -> bool
fn is_sorted_by<F>(self, compare: F) -> bool
1.82.0 · source§fn is_sorted_by_key<F, K>(self, f: F) -> bool
fn is_sorted_by_key<F, K>(self, f: F) -> bool
§impl<N> PointerWrapper<N> for RefHandle<N>where
N: NativeDrop,
impl<N> PointerWrapper<N> for RefHandle<N>where
N: NativeDrop,
§impl<T> RunIterator for RefHandle<T>where
T: NativeDrop + NativeBase<SkShaper_RunIterator>,
impl<T> RunIterator for RefHandle<T>where
T: NativeDrop + NativeBase<SkShaper_RunIterator>,
impl Send for RefHandle<GrBackendTexture>
impl Send for RefHandle<Sk3DView>
impl Send for RefHandle<SkImageGenerator>
impl Send for RefHandle<SkShaper>
impl Send for RefHandle<skia_textlayout_ParagraphBuilder>
impl Send for RefHandle<skia_textlayout_ParagraphStyle>
impl Sync for RefHandle<GrBackendTexture>
impl Sync for RefHandle<Sk3DView>
impl Sync for RefHandle<SkImageGenerator>
impl Sync for RefHandle<SkShaper>
impl Sync for RefHandle<skia_textlayout_ParagraphBuilder>
impl Sync for RefHandle<skia_textlayout_ParagraphStyle>
Auto Trait Implementations§
impl<N> Freeze for RefHandle<N>
impl<N> RefUnwindSafe for RefHandle<N>where
N: RefUnwindSafe,
impl<N> !Send for RefHandle<N>
impl<N> !Sync for RefHandle<N>
impl<N> Unpin for RefHandle<N>
impl<N> UnwindSafe for RefHandle<N>where
N: RefUnwindSafe,
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.