2020-07-30 17:38:55 +00:00
|
|
|
#![deny(broken_intra_doc_links)]
|
2020-07-07 02:35:07 +00:00
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
#![no_core]
|
2020-07-08 15:20:43 +00:00
|
|
|
#![crate_type = "rlib"]
|
2020-07-07 02:35:07 +00:00
|
|
|
|
2020-07-07 17:39:10 +00:00
|
|
|
|
2020-11-29 01:25:41 +00:00
|
|
|
// @has prim_methods_local/index.html
|
2021-05-05 03:36:33 +00:00
|
|
|
// @has - '//*[@id="main"]//a[@href="{{channel}}/std/primitive.char.html"]' 'char'
|
|
|
|
// @has - '//*[@id="main"]//a[@href="{{channel}}/std/primitive.char.html#method.len_utf8"]' 'char::len_utf8'
|
2020-07-07 17:23:29 +00:00
|
|
|
|
2020-07-07 02:35:07 +00:00
|
|
|
//! A [`char`] and its [`char::len_utf8`].
|
|
|
|
|
|
|
|
#[lang = "char"]
|
|
|
|
impl char {
|
|
|
|
pub fn len_utf8(self) -> usize {
|
|
|
|
42
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[lang = "sized"]
|
|
|
|
pub trait Sized {}
|
|
|
|
|
|
|
|
#[lang = "clone"]
|
|
|
|
pub trait Clone: Sized {}
|
|
|
|
|
|
|
|
#[lang = "copy"]
|
|
|
|
pub trait Copy: Clone {}
|