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

refactor: Rename Indentifible trait to AsIdentifier #11

Merged
merged 1 commit into from
May 17, 2021

Conversation

jakeswenson
Copy link
Owner

Also try to improve the usability of it

@jakeswenson jakeswenson enabled auto-merge (squash) May 17, 2021 15:24
@jakeswenson jakeswenson merged commit 59613be into main May 17, 2021
@jakeswenson jakeswenson deleted the clean-up-identifible branch May 17, 2021 15:26
self
impl From<PageId> for BlockId {
fn from(page_id: PageId) -> Self {
BlockId(page_id.0.clone())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was noticing that page_id didn't have a to_string() method whereas database_id did. What is the 0 accessing?


fn id(&self) -> &Self::Type {
self
impl From<PageId> for BlockId {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this now that you can identify a BlockId directly from the Page object?

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

Successfully merging this pull request may close these issues.

2 participants