Skip to content

What exactly is the CommonMarkViewer::id used for? #55

Closed
@emilk

Description

@emilk

CommonMarkViewer::new takes a source_id: impl std::hash::Hash as an argument. I have some questions about it:

What exactly is it used for? Is it only used for the scroll cache of show_scrollable? If so, perhaps it could be moved from the constructor to show_scrollable to clarify this.

Should the Id be globally unique, or just unique within the parent Ui? That is: is it used directly, or mixed with ui.id() first?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions