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

Error on calling method "origin" on type Value #385

Closed
hkr1990 opened this issue Oct 19, 2022 · 3 comments
Closed

Error on calling method "origin" on type Value #385

hkr1990 opened this issue Oct 19, 2022 · 3 comments

Comments

@hkr1990
Copy link

hkr1990 commented Oct 19, 2022

I'm trying to call this public function "origin" on a Value type and I'm getting this error "^^^^^ private field, not a method". Also, the method is public in the code but not in the API documentation.

Defined in value.rs
/// Get the description of the original location of the value.
pub fn origin(&self) -> Option<&str> {
self.origin.as_ref().map(AsRef::as_ref)
}

@matthiasbeyer
Copy link
Member

matthiasbeyer commented Oct 19, 2022

The commit that added the Value::origin() method is not yet released on crates.io!

You can use the crate from the master branch if you need this function.

@hkr1990
Copy link
Author

hkr1990 commented Oct 19, 2022

The commit that added the Value::origin() method is not yet released on crates.io!

You can use the crate from the master branch if you need this function.

Do you know when will the commit get released?

@matthiasbeyer
Copy link
Member

Sorry for not coming back to your question until now.

I will publish the next release when I think it is appropriate. I don't think it is right now. The crate is not that actively developed, there is not much progress here. Also because I fail to drive my attempt on re-thinking the crate from grounds up (see #376 ). Not because I have no idea how to do it, but simply because I cannot find the motivation to get started.

FWIW, until the next release, you can use the master branch of this crate to get that method!

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

2 participants