pub struct SetMediaTextBuilder { /* private fields */ }Implementations§
Source§impl SetMediaTextBuilder
impl SetMediaTextBuilder
pub fn style_sheet_id(self, style_sheet_id: impl Into<StyleSheetId>) -> Self
pub fn range(self, range: impl Into<SourceRange>) -> Self
pub fn text(self, text: impl Into<String>) -> Self
pub fn build(self) -> Result<SetMediaText, String>
Trait Implementations§
Source§impl Clone for SetMediaTextBuilder
impl Clone for SetMediaTextBuilder
Source§fn clone(&self) -> SetMediaTextBuilder
fn clone(&self) -> SetMediaTextBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SetMediaTextBuilder
impl Default for SetMediaTextBuilder
Source§fn default() -> SetMediaTextBuilder
fn default() -> SetMediaTextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetMediaTextBuilder
impl RefUnwindSafe for SetMediaTextBuilder
impl Send for SetMediaTextBuilder
impl Sync for SetMediaTextBuilder
impl Unpin for SetMediaTextBuilder
impl UnsafeUnpin for SetMediaTextBuilder
impl UnwindSafe for SetMediaTextBuilder
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