Docsy / docs

RUST · RUSTDOC

Rust · rustdoc

Real stable rustdoc HTML output from the checked-in rust fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.

19 symbols3 categoriesrust

Enums

Validation failures returned by the greeting API.

Values

EmptyName

Methods

method

borrow

Source § fn borrow (&self) -> &T Immutably borrows from an owned value. Read more

Parameters

selfunknown

Returns

&T
method

borrow

Source § fn borrow (&self) -> &T Immutably borrows from an owned value. Read more

Parameters

selfunknown

Returns

&T

Source § fn borrow_mut (&mut self) -> &mut T Mutably borrows from an owned value. Read more

Parameters

self&mut

Returns

&mut T

Source § fn borrow_mut (&mut self) -> &mut T Mutably borrows from an owned value. Read more

Parameters

self&mut

Returns

&mut T
method

from

Returns the argument unchanged.

Parameters

tT

Returns

T
method

from

Returns the argument unchanged.

Parameters

tT

Returns

T
method

greet

Greet a reader.

Parameters

name&str

Returns

String

Reject an empty reader name.

Errors

Result::Err

Returns GreetingError::EmptyName when name is empty.

Parameters

name&str

Returns

Result<String, GreetingError>

Greet several readers while preserving input order.

Parameters

names&[&str]

Returns

Vec<String>
method

into

Calls U::from(self) .

Returns

U
method

into

Calls U::from(self) .

Returns

U
method

try_from

Source § fn try_from (value: U) -> Result <T, <T as TryFrom <U>>:: Error > Performs the conversion.

Parameters

valueU

Returns

Result<T, <T as TryFrom<U>>::Error>
method

try_from

Source § fn try_from (value: U) -> Result <T, <T as TryFrom <U>>:: Error > Performs the conversion.

Parameters

valueU

Returns

Result<T, <T as TryFrom<U>>::Error>
method

try_into

Source § fn try_into (self) -> Result <U, <U as TryFrom <T>>:: Error > Performs the conversion.

Returns

Result<U, <U as TryFrom<T>>::Error>
method

try_into

Source § fn try_into (self) -> Result <U, <U as TryFrom <T>>:: Error > Performs the conversion.

Returns

Result<U, <U as TryFrom<T>>::Error>
method

type_id

Source § fn type_id (&self) -> TypeId Gets the TypeId of self . Read more

Parameters

selfunknown

Returns

TypeId
method

type_id

Source § fn type_id (&self) -> TypeId Gets the TypeId of self . Read more

Parameters

selfunknown

Returns

TypeId

Structs

struct

Greeter

Build personalized greetings without network access.

Properties

prefixString
—