You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since many functions mimic what's available in Rust, documentation from there can be adapted for Rune, such as this example from is_alphabetic (see Rust version here). The appropriate licensing attribution will be added before this is released.
/// Returns `true` if this `char` has the `Alphabetic` property.////// `Alphabetic` is described in Chapter 4 (Character Properties) of the [Unicode Standard] and/// specified in the [Unicode Character Database][ucd] [`DerivedCoreProperties.txt`].////// [Unicode Standard]: https://www.unicode.org/versions/latest//// [ucd]: https://www.unicode.org/reports/tr44//// [`DerivedCoreProperties.txt`]: https://www.unicode.org/Public/UCD/latest/ucd/DerivedCoreProperties.txt////// # Examples////// ```rune/// assert!('a'.is_alphabetic());/// assert!('京'.is_alphabetic());////// let c = '💝';/// // love is many things, but it is not alphabetic/// assert!(!c.is_alphabetic());/// ```#[rune::function(instance)]#[inline]fnis_alphabetic(c:char) -> bool{
char::is_alphabetic(c)}
Future
Type and variant level documentation is not yet supported. But is expected to be produced through the Any derive.
Documentation for vm-accelerated functionality is still missing. Such as vector indexing. Once support for this is added, those will be added to this as well.
The text was updated successfully, but these errors were encountered:
Since #464, native modules can now be documented.
Missing features:
This is a tracking issue for modules and functions which are still lacking documentation.
::std::any
::std::bytes
::std::char
::std::cmp
::std::collections
::std::core
::std::float
::std::fmt
::std::future
::std::generator
::std::int
::std::io
::std::iter
::std::macros
::std::mem
(More associated documentation #474)::std::object
::std::ops
::std::option
::std::result
::std::stream
::std::string
::std::test
::std::vec
Since many functions mimic what's available in Rust, documentation from there can be adapted for Rune, such as this example from
is_alphabetic
(see Rust version here). The appropriate licensing attribution will be added before this is released.Future
Any
derive.The text was updated successfully, but these errors were encountered: