Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing values of variables in data structures #15

Open
npmaling opened this issue Apr 13, 2023 · 0 comments
Open

Accessing values of variables in data structures #15

npmaling opened this issue Apr 13, 2023 · 0 comments

Comments

@npmaling
Copy link

Hi,

Is there a simpler way to get at the values of the data structure, such that when I do:

println!("Name: {:?}", &name.value);

which results in:

Name: Some("Robert Eugene /Williams/")

ideally results in

Name: "Robert Eugene /Williams/"

without the "Some()" parts?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant