{"action":"created","issue":{"url":"https://api.github.com/repos/shepmaster/sxd-xpath/issues/67","labels_url":"https://api.github.com/repos/shepmaster/sxd-xpath/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/shepmaster/sxd-xpath/issues/67/comments","events_url":"https://api.github.com/repos/shepmaster/sxd-xpath/issues/67/events","html_url":"https://github.com/shepmaster/sxd-xpath/issues/67","id":114252847,"number":67,"title":"Public Expression::evaluate() returns private Error","user":{"login":"flying-sheep","id":291575,"avatar_url":"https://avatars.githubusercontent.com/u/291575?v=3","gravatar_id":"","url":"https://api.github.com/users/flying-sheep","html_url":"https://github.com/flying-sheep","followers_url":"https://api.github.com/users/flying-sheep/followers","following_url":"https://api.github.com/users/flying-sheep/following{/other_user}","gists_url":"https://api.github.com/users/flying-sheep/gists{/gist_id}","starred_url":"https://api.github.com/users/flying-sheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flying-sheep/subscriptions","organizations_url":"https://api.github.com/users/flying-sheep/orgs","repos_url":"https://api.github.com/users/flying-sheep/repos","events_url":"https://api.github.com/users/flying-sheep/events{/privacy}","received_events_url":"https://api.github.com/users/flying-sheep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-30T11:34:32Z","updated_at":"2015-10-30T16:26:04Z","closed_at":null,"body":"[the expression crate is private](http://jakegoulding.com/sxd-xpath/sxd_xpath/trait.Expression.html#tymethod.evaluate)\r\n```rust\r\npub trait Expression: Debug {\r\n    fn evaluate<'a, 'd>(&self, context: &sxd_xpath::EvaluationContext<'a, 'd>)\r\n        -> Result<sxd_xpath::Value<'d>, sxd_xpath::expression::Error>;\r\n}\r\n```\r\n\r\nso if i’m not missing something, this crate is actually unusable for its main purpose: evaluating XPath expressions :laughing: "},"comment":{"url":"https://api.github.com/repos/shepmaster/sxd-xpath/issues/comments/152576949","html_url":"https://github.com/shepmaster/sxd-xpath/issues/67#issuecomment-152576949","issue_url":"https://api.github.com/repos/shepmaster/sxd-xpath/issues/67","id":152576949,"user":{"login":"flying-sheep","id":291575,"avatar_url":"https://avatars.githubusercontent.com/u/291575?v=3","gravatar_id":"","url":"https://api.github.com/users/flying-sheep","html_url":"https://github.com/flying-sheep","followers_url":"https://api.github.com/users/flying-sheep/followers","following_url":"https://api.github.com/users/flying-sheep/following{/other_user}","gists_url":"https://api.github.com/users/flying-sheep/gists{/gist_id}","starred_url":"https://api.github.com/users/flying-sheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flying-sheep/subscriptions","organizations_url":"https://api.github.com/users/flying-sheep/orgs","repos_url":"https://api.github.com/users/flying-sheep/repos","events_url":"https://api.github.com/users/flying-sheep/events{/privacy}","received_events_url":"https://api.github.com/users/flying-sheep/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T16:26:04Z","updated_at":"2015-10-30T16:26:04Z","body":"oh, sorry, of course it’s not impossible!\r\n\r\n\r\nsmall code example:\r\n\r\n```rust\r\nuse sxd_xpath::expression;\r\n\r\n...\r\n\r\nmatch xpath.evaluate(&context) {\r\n\tOk(value) => ...,\r\n\tErr(e) => match e {\r\n            UnknownFunction(f) => //do stuff with f,\r\n            UnknownVariable(v) => //do stuff with v,\r\n            _ => ()\r\n        }\r\n}\r\n```"}}