pub struct IdeasPanel { /* private fields */ }Expand description
The ideas panel.
Implementations§
Source§impl IdeasPanel
impl IdeasPanel
Sourcepub fn set_publishing(&mut self, available: bool)
pub fn set_publishing(&mut self, available: bool)
Shows the composer, or hides it when available is false.
Sourcepub fn set_browsing(&mut self, available: bool)
pub fn set_browsing(&mut self, available: bool)
Shows the feed, or hides it when available is false.
Sourcepub fn set_context(
&mut self,
symbol: impl Into<String>,
interval: impl Into<String>,
)
pub fn set_context( &mut self, symbol: impl Into<String>, interval: impl Into<String>, )
Sets the instrument and interval the draft is about, normally those of the chart.
Sourcepub fn add_page(&mut self, page: IdeaPage, replace: bool)
pub fn add_page(&mut self, page: IdeaPage, replace: bool)
Adds a page to the end of the feed, or replaces the feed when replace is set, as for the
first page or a refresh.
Sourcepub fn publish_succeeded(&mut self, id: impl Into<String>, link: Option<String>)
pub fn publish_succeeded(&mut self, id: impl Into<String>, link: Option<String>)
Records that the host published the draft as id, which clears the draft.
Sourcepub fn publish_failed(&mut self, reason: impl Into<String>)
pub fn publish_failed(&mut self, reason: impl Into<String>)
Records that publishing failed. The draft stays for another attempt.
Sourcepub fn show(&mut self, ui: &mut Ui) -> IdeasAction
pub fn show(&mut self, ui: &mut Ui) -> IdeasAction
Shows the panel in ui and returns what the user asked of the host.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IdeasPanel
impl RefUnwindSafe for IdeasPanel
impl Send for IdeasPanel
impl Sync for IdeasPanel
impl Unpin for IdeasPanel
impl UnsafeUnpin for IdeasPanel
impl UnwindSafe for IdeasPanel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more