#[repr(C)]pub struct Repeat { /* private fields */ }
Expand description
Graphics repeat introducer sequence.
The ! (2/1)
character introduces a repeat sequence. A repeat sequence lets you repeat a graphic character a specified number of times. You use the following format for the repeat sequence.
! | Pn | character |
---|---|---|
2/1 | ** | **** |
where:
- Pn is the repeat count. The repeat count can be any decimal value. For example, if you use a repeat count of 23, the next character repeats 23 times.
- character is the character to repeat. You can use any character in the range of
? (hex 3F)
to~ (hex 7E)
.
Implementations§
Source§impl Repeat
impl Repeat
Sourcepub const fn create(number: usize, character: SixelChar) -> Self
pub const fn create(number: usize, character: SixelChar) -> Self
Creates a new Repeat with the provided parameters.
Sourcepub fn set_number(&mut self, val: usize)
pub fn set_number(&mut self, val: usize)
Sets the number of SixelChars to repeat.
Sourcepub fn with_number(self, val: usize) -> Self
pub fn with_number(self, val: usize) -> Self
Builder function that sets the number of SixelChars to repeat.
Sourcepub fn set_character(&mut self, val: SixelChar)
pub fn set_character(&mut self, val: SixelChar)
Sets the SixelChar to repeat.
Sourcepub fn with_character(self, val: SixelChar) -> Self
pub fn with_character(self, val: SixelChar) -> Self
Builder function that sets the SixelChar to repeat.
Trait Implementations§
impl Copy for Repeat
impl StructuralPartialEq for Repeat
Auto Trait Implementations§
impl Freeze for Repeat
impl RefUnwindSafe for Repeat
impl Send for Repeat
impl Sync for Repeat
impl Unpin for Repeat
impl UnwindSafe for Repeat
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