API catalog¶
Use the standard-library guides when learning a feature. Use this catalog when you need to look up an exact public declaration, including an overload, property, or enum choice.
Reading a signature¶
name: Type gives a parameter or field's type. A value after = is the default when you leave an argument out. The type after a method's closing ) is its result.
staticmeans you call a member on its type, such asMath.sqrt(9.0).- A regular method needs a value of that type, such as
names.push("Ada"). getandsetdescribe properties; usevalue.length, without parentheses.constructordescribes the arguments used when creating a value.asyncmeans you wait for completion with.awaitinside an async function.Option<T>means a value may be absent. Check it before using it.Result<T, E>means an operation may fail. HandleOkandErr, or pass the failure to your caller with?.borrowmeans the call uses a value without taking ownership. Ownership explains when to use it.<T>names a type parameter. A condition such asT : Comparable<T>limits the types accepted.
Error conventions explains when an API returns Option, returns Result, or panics.
These declaration snippets show the interface; they are not complete programs. The linked guides contain examples. Availability and integration requirements are explained in those guides; a declaration alone does not establish platform support.